CN109525445A - Link switch-over method, link redundancy backup network and computer readable storage medium - Google Patents
Link switch-over method, link redundancy backup network and computer readable storage medium Download PDFInfo
- Publication number
- CN109525445A CN109525445A CN201811644041.9A CN201811644041A CN109525445A CN 109525445 A CN109525445 A CN 109525445A CN 201811644041 A CN201811644041 A CN 201811644041A CN 109525445 A CN109525445 A CN 109525445A
- Authority
- CN
- China
- Prior art keywords
- interannular
- looped network
- node
- port
- state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/42—Loop networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of link switch-over methods, link redundancy backup network and computer readable storage medium, a kind of link switch-over method is applied to the redundancy backup network including at least two looped networks, it include: that interannular redundancy backup port in the first looped network is in each node of blocked state and passes through interannular redundancy backup port respectively periodically to sending interannular interaction notice message, when any node in the second looped network determines that a central port in the second looped network is in an off state, send the first interannular interaction push-notification-answer message, after at least one node in the first looped network receives the first interannular interaction push-notification-answer message, selection one is set as forwarding state from the interannular redundancy backup port in blocked state.Link switch-over method, link redundancy backup network and computer readable storage medium disclosed by the invention can lead to the presence of two links for being unable to intercommunication in ring due to two central port failures to avoid the node in looped network.
Description
Technical field
The present embodiments relate to network technology more particularly to a kind of link switch-over method, link redundancy backup network and
Computer readable storage medium.
Background technique
In industrial network, for the reliability of improve data transfer, ring topology is generallyd use to provide data transmission
Redundancy protecting.When using ring topology, it is necessary to avoid generating broadcast wind in network using the corresponding loop network control mechanism
Cruelly, it and can be switched in real time on reserve link when link failure or node failure occurs in looped network to guarantee data message
Normal transmission.
For example, distributed redundancy protocol (Distributed Redundancy Protocol, DRP) is a kind of dedicated
Looped network protection agreement, by a certain equipment in looped network carry out regularly topology detection or by the active reportings of all devices come
Know network topology change situation.But in existing DRP agreement, when realizing redundancy backup, the switching of interannular backup port
It unilateral can only realize, the ring for being only configured with backup port can carry out cutting for backup port according to the real-time condition of link
It changes, without the side looped network of configuration backup port, the equipment connection status of oneself can not be notified to the ring of opposite end, because
This, it is right if causing there are both links to be unable to intercommunication in ring without two central port failures in the ring of the ring of configuration backup port
The reliability of industrial network has an impact.
Summary of the invention
The present invention provides a kind of link switch-over method, link redundancy backup network and computer readable storage medium, can be with
Avoiding the problem that the node in looped network leads in ring that there are the links that two are unable to intercommunication due to two central port failures.
In a first aspect, the embodiment of the present invention provides a kind of link switch-over method, applied to superfluous including at least two looped networks
Remaining backup network, includes at least three nodes in each looped network, and at least two looped networks include the first looped network and the second looped network, and first
At least two nodes in looped network pass through interannular backup link respectively and connect with each node in the second looped network, in the first looped network extremely
It with the node in the second looped network by the port that interannular backup link is connect is interannular redundancy backup port on few two nodes,
In in the first looped network the interannular redundancy backup port of a node be forwarding state, remaining interannular redundancy backup in the first looped network
Port is blocked state, and method includes:
Each node that interannular redundancy backup port in first looped network is in blocked state passes through interannular redundancy backup respectively
Port periodically sends interannular interaction notice message to the second looped network;
After each node in second looped network receives interannular interaction notice message by interannular backup link, each node is determined
Central port connection status in the second looped network;
When any node in the second looped network determines that a central port in the second looped network is in an off state, pass through
The interannular backup link connecting with the first looped network sends the first interannular interaction push-notification-answer message to the first looped network;
After at least one node in the first looped network receives the first interannular interaction push-notification-answer message, in the first looped network
The node of the first interannular interaction push-notification-answer message is received by presetting mechanism, from the interannular redundancy backup end for being in blocked state
To be switched interannular redundancy backup port is selected in mouthful, and sets forwarding shape for the state of to be switched interannular redundancy backup port
State.
In a kind of possible implementation of first aspect, when at least one node in the first looped network receives the first ring
Between after interaction push-notification-answer message, the node that the first interannular interaction push-notification-answer message is received in the first looped network passes through default machine
System selects to be switched interannular redundancy backup port from the interannular redundancy backup port in blocked state, and by ring change to be cut
Between the state of redundancy backup port be set as forwarding state, comprising:
After at least one node in the first looped network receives the first interannular interaction push-notification-answer message, the first ring is parsed
Between interaction push-notification-answer message, determine the first interannular interaction push-notification-answer message in spanning tree stp state be forwarding state when,
The node of first interannular interaction push-notification-answer message is received in first looped network by presetting mechanism, from blocked state
Select to be switched interannular redundancy backup port in interannular redundancy backup port, and by the state of to be switched interannular redundancy backup port
It is set as forwarding state.
In a kind of possible implementation of first aspect, when at least one node in the first looped network receives the first ring
Between after interaction push-notification-answer message, the node that the first interannular interaction push-notification-answer message is received in the first looped network passes through default machine
System selects to be switched interannular redundancy backup port from the interannular redundancy backup port in blocked state, and by ring change to be cut
Between the state of redundancy backup port be set as forwarding state, comprising:
After at least one node in the first looped network receives the first interannular interaction push-notification-answer message, in the first looped network
The node for receiving the first interannular interaction push-notification-answer message is connect according to node each in the first looped network with each node in the second looped network
Interannular backup link link-quality, select the optimal interannular backup link corresponding interannular redundancy backup port of link-quality
Forwarding state is set as to be switched interannular redundancy backup port, and by the state of to be switched interannular redundancy backup port.
In a kind of possible implementation of first aspect, when at least one node in the first looped network receives the first ring
Between after interaction push-notification-answer message, the node that the first interannular interaction push-notification-answer message is received in the first looped network passes through default machine
System selects to be switched interannular redundancy backup port from the interannular redundancy backup port in blocked state, and by ring change to be cut
Between the state of redundancy backup port be set as after forwarding state, method further include:
When the node for sending the first interannular interaction push-notification-answer message to the first looped network in the second looped network is determining in the second ring
When whole central ports in net are in connection status, sent out by the interannular backup link being connect with the first looped network to the first looped network
The second interannular interaction push-notification-answer message is sent, the stp state in the second interannular interaction push-notification-answer message is blocked state;
After node in first looped network receives the second interannular interaction push-notification-answer message by interannular redundancy backup port,
The second interannular interaction push-notification-answer message is parsed, determines the stp state in the second interannular interaction push-notification-answer message for obstruction shape
State, and itself interannular redundancy backup port is forwarding state, then by the state of the interannular redundancy backup port in forwarding state
It is set as blocked state.
In a kind of possible implementation of first aspect, interannular interaction notice message, the first interannular interaction push-notification-answer
Message, the second interannular interaction push-notification-answer message include version number, type of message, port-mark of giving out a contract for a project, port of giving out a contract for a project STP shape
At least one of ring mark where state, node of giving out a contract for a project.
Second aspect, the embodiment of the invention also provides a kind of link redundancy backup network, link redundancy backup network packets
At least two looped networks are included, include at least three nodes in each looped network, at least two looped networks include the first looped network and the second looped network,
At least two nodes in first looped network pass through interannular backup link respectively and connect with each node in the second looped network, in the first looped network
At least two nodes and the node in the second looped network by the port that interannular backup link is connect be interannular redundancy backup port,
Wherein the interannular redundancy backup port of a node is forwarding state in the first looped network, remaining interannular redundancy in the first looped network is standby
Part port is blocked state;
Node in first looped network is used for when interannular redundancy backup port is in blocked state, passes through redundancy backup respectively
Port periodically sends interannular interaction notice message to the second looped network;
Node in second looped network is used for after receiving interannular interaction notice message by interannular backup link, is determined each
Central port connection status of the node in the second looped network;
Node in second looped network is also used to lead to when the central port determined in the second looped network is in an off state
It crosses the interannular backup link connecting with the first looped network and sends the first interannular interaction push-notification-answer message to the first looped network;
Node in first looped network is also used to after receiving the first interannular interaction push-notification-answer message, by presetting machine
System selects to be switched interannular redundancy backup port from the interannular redundancy backup port in blocked state, and by ring change to be cut
Between the state of redundancy backup port be set as forwarding state.
In a kind of possible implementation of second aspect, the node in the first looped network, which is specifically used for working as, receives the first ring
Between interaction push-notification-answer message after, parsing the first interannular interaction push-notification-answer message, determine the first interannular interaction push-notification-answer report
When spanning tree stp state in text is forwarding state, by presetting mechanism, from the interannular redundancy backup port for being in blocked state
Middle selection to be switched interannular redundancy backup port, and forwarding state is set by the state of to be switched interannular redundancy backup port.
In a kind of possible implementation of second aspect, the node in the first looped network, which is specifically used for working as, receives the first ring
Between after interaction push-notification-answer message, the interannular backup link that is connect according to node each in the first looped network with each node in the second looped network
Link-quality, the interannular backup link corresponding interannular redundancy backup port for selecting link-quality optimal is as to be switched interannular
Redundancy backup port, and forwarding state is set by the state of to be switched interannular redundancy backup port.
In a kind of possible implementation of second aspect, the node in the second looped network is also used to, and is sent out to the first looped network
After sending the first interannular interaction push-notification-answer message, when determining that whole central ports in the second looped network are in connection status, lead to
It crosses the interannular backup link connecting with the first looped network and sends the second interannular interaction push-notification-answer message, the second interannular to the first looped network
Stp state in interaction push-notification-answer message is blocked state;
Node in first looped network is also used to, and is rung when receiving the second interannular interaction notice by interannular redundancy backup port
After answering message, parsing the second interannular interaction push-notification-answer message determines the stp state in the second interannular interaction push-notification-answer message
For blocked state, and itself interannular redundancy backup port is forwarding state, then will be in the interannular redundancy backup end of forwarding state
The state of mouth is set as blocked state.
The third aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer
Program, which is characterized in that the link such as any possible implementation of first aspect is realized when the program is executed by processor
Switching method.
Link switch-over method, link redundancy backup network and computer readable storage medium provided in an embodiment of the present invention,
Applied to the redundancy backup network including at least two looped networks, resistance is in by the interannular redundancy backup port in the first looped network first
Each node of plug-like state passes through redundancy backup port respectively and periodically sends interannular interaction notice message to the second looped network, when the
After each node in two looped networks receives interannular interaction notice message by interannular backup link, determine each node in the second looped network
In central port connection status, then when any node in the second looped network determines that a central port in the second looped network is in
When off-state, the first interannular interaction push-notification-answer is sent to the first looped network by the interannular backup link connecting with the first looped network
Message, in this way after at least one node in the first looped network receives the first interannular interaction push-notification-answer message, the first looped network
In receive the first interannular interaction push-notification-answer message node by preset mechanism, from be in blocked state interannular redundancy backup
To be switched interannular redundancy backup port is selected in port, and sets forwarding shape for the state of to be switched interannular redundancy backup port
State, so as to so that the multiple nodes being not configured in the second looped network of interannular redundancy backup port disconnect in the second looped network
When, network still can be accessed, avoids the problem that the node in looped network is opened due to central port failure from network interruption.
Detailed description of the invention
Fig. 1 is the loop network schematic diagram for being configured with redundancy backup link;
Fig. 2 is the flow chart of link switch-over method embodiment one provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram for being configured with interannular redundancy and carrying out interannular redundancy backup port switching for the node of port;
Fig. 4 is the link switching schematic diagram of link switch-over method provided in an embodiment of the present invention;
Fig. 5 is the flow chart of link switch-over method embodiment two provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of link redundancy backup network embodiment one provided in an embodiment of the present invention.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Industrial network refers to applied in industrial environment, the network serviced by industrial production, the reliability of industrial network
Very big on industrial influence, therefore, the reliability of industrial network is mostly important performance parameter.In order to improve industrial network
The reliability of network is all made of certain redundancy protocol in industrial network and provides redundancy protecting to the data transmission in network.Example
Such as, DRP is exactly a kind of protection agreement of looped network protection employed in industrial network, by a certain equipment in looped network periodically into
Row topology detection knows network topology change situation by all devices active reporting, and when network breaks down, uses
Certain mechanism carries out redundancy backup.
But existing DRP technology, when realizing redundancy backup, the switching of interannular backup port unilateral can only be realized, only match
The ring for having set interannular redundancy backup port can carry out the switching of interannular redundancy backup port according to the real-time condition of link, and
There is no the side looped network of configuration backup port, the equipment connection status of oneself can not be notified to the ring of opposite end, therefore, if
There is link disconnection in the equipment for not configuring more connections in the ring of interannular redundancy backup port, so that more connections are set
The standby connection with other equipment in ring disconnects, and is isolated and can not be connected to then will lead to these equipment interconnected, to work
The reliability of industry network has an impact.As shown in FIG. 1, FIG. 1 is the loop network schematic diagrames for being configured with redundancy backup link, are scheming
In 1, the first looped network 11 and the second looped network 12 are two looped networks in industrial network.It wherein, include first segment in the first looped network 11
113 3 111, third node 112 and the 5th node nodes are put, include second node 121, fourth node in the second looped network 12
122 and 124 4 the 6th node 123, the 8th node nodes.Wherein, the number of nodes in the first looped network 11 and the second looped network 12
Not to be limited in scheming, as long as including three or more nodes in each looped network, redundancy backup link can be carried out between looped network
Connection.
Each node in first looped network 11 and the second looped network 12 realizes connection by ring inner port in looped network respectively, and
And when applying DPR agreement, each node in looped network may be implemented to switch in ring, for example, first node 111 and third section
When connection between point 112 is broken down, the ring inner port of first node 111 and the 5th node 113 can be attached, be realized
Intercommunication in looped network.And between looped network, it is to realize to connect by interannular backup link, interannular backup link is in two rings
Different nodes between establish, such as backup link 131, third node between first node 111 and second node 121
Backup link 132 between 112 and the 4th 2 node 121, certainly can also be between the first looped network 11 and the second looped network 12
Other backup links are established between each node, such as interannular backup link is established between first node 111 and fourth node 122
Or interannular backup link is established between the 5th node 123 and the 6th node 123.Wherein there was only first in the first looped network 11
The first interannular redundancy backup port 141 and the second interannular redundancy backup port have been respectively configured on node 111 and second node 112
142.But in order to avoid generating broadcast storm in looped network, multiple backup links between two looped networks only have one in the same time
It is a to be in forwarding state, it can be normally carried out the forwarding of message, and other backup links are in blocked state, can not carry out industry
Be engaged in message forwarding and control message can only be transmitted, such as between the first looped network 11 and the second looped network 12, only the first interannular
Redundancy backup port 141 is in forwarding state, and the second interannular redundancy backup port 142 is in blocked state.
And in two looped networks for establishing interannular backup link, it is standby that the node in only one looped network is configured with interannular redundancy
Part port, when also the node just only in the looped network for being configured with interannular redundancy backup port is disconnected all ring inner ports,
It can be carried out the switching of backup link.And for the looped network of no configuration interannular redundancy backup port, if some node in looped network
Ring inner port disconnect, then the node will be isolated to network.Such case, may be to industrial production for industrial network
Bring serious influence.Such as in the redundancy backup network that the first looped network 11 and the second looped network 12 form, in the first looped network 11
Each node be configured with interannular redundancy backup port, then if the ring inner port company of disconnection of certain node in the first looped network 11
It connects, then the switching that redundancy backup port can be carried out by isolated node in the first looped network 11, it can will be in the first looped network 11
Forwarding state is switched to by blocked state by the interannular redundancy backup port of isolated node, to realize the switching of backup link.
Such as when the equal failure in the port 152 of the third node 112 in the first looped network 11 and port 154 causes third node 112 to isolate,
Since third node 112 is configured with the second interannular redundancy backup port 142, then when the second interannular redundancy backup port 142 is examined
When measuring two central ports of third node 112 and disconnecting, the second interannular redundancy backup port 142 is switched to by blocked state
Forwarding state makes 132 link switching of the second backup link connect (link) state, to pass through backup link switching realization the
Three nodes 112 access the first looped network 11.
But if two ring inner ports of some node in the second looped network 12, which disconnect failure, causes it to be isolated, due to
Each node in second looped network 12 does not configure interannular redundancy backup port, then the node disconnected in the second looped network 12 is just
It can not realize and connect with the node of other in network.For example, when the port 156 and end of the fourth node 122 in the second looped network 12
When 157 equal failures of mouth cause fourth node 122 to isolate, since interannular redundancy backup is not configured in each node in the second looped network 12
Port, then fourth node 122 will be unable to access network.
When multiple nodes interconnected in the first looped network 11 are disconnected with other nodes in ring, such as first node
Connection between 111 and third node 112 is broken down, and the connection between the 5th node 113 and first node 111 also goes out
Existing failure is isolated to network then third node 112 and the 5th node 113 will be cyclic alone.And the node in the first looped network 11
Still the switching that interannular redundancy backup port can be carried out can make as long as the second backup link 132 is changed to connection status
It obtains third node 112 and the 5th node 113 and passes through the node access networks network in the second looped network 12.And if more in the second looped network 12
A node interconnected is disconnected with other nodes in ring, such as the connection between second node 121 and fourth node 122
It breaks down, and the connection between the 6th node 123 and second node 121 is also broken down, due in the second looped network 12
Each node does not configure interannular redundancy backup port, then the node disconnected in the second looped network 12 just can not in network
Other nodes realize connection.
To solve the above-mentioned problems, the embodiment of the present application provides a kind of link switch-over method and link redundancy backup network,
For solving in link redundancy backup network, the node not configured in the looped network of interannular redundancy backup port disconnects looped network inner end
Mouthful when, the problem of node can not access network.
Link switch-over method provided by the embodiments of the present application is applied to the redundancy backup network including at least two looped networks,
In include at least two nodes in each looped network.For the redundancy backup network shown in Fig. 1, i.e., redundancy backup network includes first
Looped network 11 and the second looped network 12 include first node 111, third node 112, the 5th node 113 3 sections in first looped network 11
Point includes second node 121, fourth node 122,124 4 the 6th node 123, the 8th node nodes in the second looped network 12.The
First node 111 and third node 112 in one looped network 11 pass through the node in interannular backup link and the second looped network 12 respectively
Connection.Each node is that interannular is superfluous by the port that interannular backup link is connect with each node in the second looped network 12 in first looped network 11
Remaining backup port, wherein the interannular redundancy backup port 141 of first node 111 is forwarding state, the first ring in the first looped network 11
Interannular redundancy backup port 142 in net 11 is blocked state, it is, only one interannular redundancy backup in the first looped network 11
Port is forwarding state, remaining interannular redundancy backup port is blocked state.Link switching side provided by the embodiment of the present application
Redundancy backup network applied by method is not limited to redundancy backup network shown in FIG. 1, as long as in redundancy backup network including two
Above looped network, and the number of nodes in each looped network is two or more.
Fig. 2 is the flow chart of link switch-over method embodiment one provided in an embodiment of the present invention, as shown in Fig. 2, this implementation
Example provide method include:
Step S201, it is superfluous that the node that the interannular redundancy backup port in the first looped network is in blocked state passes through interannular respectively
Remaining backup port periodically sends interannular interaction notice message to the second looped network.
For redundancy backup network shown in FIG. 1, since the first looped network 11 and the second looped network 12 are ring-like network structure,
Therefore each node in the first looped network 11 and the second looped network 12, if the only one central port, that is, ring inner port being located in ring occurs
Failure is in an off state, then central port, that is, ring inner port inside the first looped network 11 and the second looped network 12 can carry out automatically
It switches.For example, if the port 151 connected between first node 111 and third node 112 or port 152 disconnect, then can fall
Shift to the port 153 connected between first node 111 and the 5th node 113.
And if the port 151 connected between first node 111 and third node 112 or port 152 disconnect, and Section five
The port 153 or port 155 connected between point 113 and first node 111 also disconnects, then third node 112 and the 5th node
113 other nodes that will be isolated in network.And since each node in the first looped network 11 is configured with interannular redundancy backup end
Mouthful, then being detected when being isolated to other nodes in network in third node 112 and the 5th node 113, can trigger at originally
In the second interannular redundancy backup port 142 of blocked state be forwarding state, then third node 112 and the 5th node 113 are just
It can be connect by the second interannular redundancy backup port 142 with the second looped network 12, realize data forwarding, so as to by third section
Point 112 and 113 re-accessing network of the 5th node.As shown in figure 3, Fig. 3 is to be configured with interannular redundancy to carry out for the node of port
The schematic diagram of interannular redundancy backup port switching.
But for each node in the second looped network 12, due to there is no configuring redundancy backup port, if occurring such as above-mentioned the
The case where three nodes 112 and occurred the 5th node 114, then the switching of interannular redundancy backup port can not be carried out, also just can not
Re-accessing network.Such as if the port 156 connected between second node 121 and fourth node 122 or port 158 disconnect, and
And the 6th the port 159 connected between node 123 and the 8th node 124 or port 150 also disconnect, then 122 He of fourth node
Other nodes that 6th node 123 will be isolated in network, and can not re-accessing network.
Therefore, in the present embodiment, a kind of link switch-over method is proposed, for the looped network for being configured with interannular redundancy backup port
In each node configure an additional message, be referred to as interannular interaction notice message.Port in blocked state can be with
Hair control message, but it is unable to sending service message.Interannular redundancy backup port in first looped network 11 is in each section of blocked state
Point periodically sends interannular interaction notice message to the second looped network 12 by interannular redundancy backup port respectively, and interannular interaction is logical
The purpose for knowing message is the interaction in order to carry out interannular backup link state between the looped network for establishing interannular backup link.Ring
Between interaction notice message be a kind of control message, the interannular redundancy backup port in blocked state can send the message.And
Interannular redundancy backup port in connection status, due to can carry out the forwarding of service message, even if where the port
Node disconnects in this looped network, still can access network by the interannular redundancy backup port.Interannular interaction notice report
In text include but is not limited to version number, type of message, port-mark of giving out a contract for a project, port of giving out a contract for a project spanning tree (Spanning Tree
Protocol, STP) state, at least one of node place ring mark of giving out a contract for a project.The sending cycle of interannular interaction notice message can
To be configured according to actual needs, each it is configured in the node of interannular redundancy backup port and configures in the first looped network 11
There is a timer, as long as timer is then, interannular interaction notice is sent by the interannular redundancy backup port that node configures
Message.
Step S202, after each node in the second looped network receives interannular interaction notice message by interannular backup link,
Determine central port connection status of each node in the second looped network.
When each node that the interannular redundancy backup port in the first looped network 11 is in blocked state passes through ring redundancy backup end
After mouth sends interannular interaction notice message, the port connecting in the second looped network 12 with each node of the first looped network 11 will receive interannular
Interaction notice message.After receiving interannular interaction notice message, each node in the second looped network 12 will determine each node the
Central port, that is, ring inner port connection status in two looped networks 12.Wherein, each node in the second looped network 12 is in the second looped network 12
In central port connection status, refer to the shape for the ring inner port that each node in the second looped network 12 connects inside the second looped network 12
State does not include the state for the port being connect by interannular backup link with each node in the first looped network 11.Such as Section four
Point 122, it is thus necessary to determine that the state of port 156 and port 157, for the 6th node 123, it is thus necessary to determine that port 150 and port 160
State.
Step S203 disconnects shape when any node in the second looped network determines that a central port in the second looped network is in
When state, the first interannular interaction push-notification-answer message is sent to the first looped network by the interannular backup link connecting with the first looped network.
When received in the second looped network 12 interannular interaction notice message node in the central port in the second looped network 12 institute
Some central ports are in connection status, then the node can by the second looped network 12 be in connection status central port
It is connect with other nodes in the second looped network 12, and in a network by the access of other nodes of connection.And if the second looped network 12
In any node after receiving interannular interaction notice message, determine that a port in the second looped network 12 is in and disconnect shape
When state, it would be possible that since the central port for other nodes connecting with the node also disconnects, and lead to multiple sections interconnected
Point is cyclic alone, can not access network.For example, if the port 156 of fourth node 122 disconnects, and the end of the 6th node 123
Mouthfuls 150 also disconnect, then fourth node 122 and the 6th node 123 will be switched off in the second looped network 12 between other nodes
Connection, and the second interannular backup link 132 is in blocked state, therefore fourth node 122 and the 6th node 123 will be only
From cyclization connection can not be established with the node of other in network.So the node can be by connecting with the first looped network 11
Interannular backup link sends the first interannular interaction push-notification-answer message to the first looped network 11.If such as and in the second looped network 12
Four nodes 122 determine any one the ring end of fourth node 122 in the second looped network 12 after receiving interannular interaction notice message
When mouth is in an off state, then fourth node 122 may make since other nodes connected also have the central port of disconnection
Multiple nodes are obtained to open from network interruption.Fourth node 122 by by the interannular backup link that is connect with the first looped network 11 to
One looped network 11 sends the first interannular interaction push-notification-answer message.First interannular interaction push-notification-answer message is used for the first looped network 11
A central port of the fourth node 122 in the second looped network 12 is notified to be in an off state.In the present embodiment, fourth node
122 send the first interannular interaction push-notification-answer message to third node 112 by the second backup link 132.The interaction of first interannular
In push-notification-answer message include but is not limited to version number, type of message, port-mark of giving out a contract for a project, port of giving out a contract for a project stp state, give out a contract for a project
At least one of ring mark where node.Meanwhile and if the 6th node 123 in the second looped network 12 is receiving interannular interaction
After notice message, when determining that any one central port of the 6th node 123 in the second looped network 12 is in an off state, then Section six
Point 123 will send the first interannular interaction push-notification-answer to the first looped network 11 by the interannular backup link connecting with the first looped network 11
Message.
Step S204, after at least one node in the first looped network receives the first interannular interaction push-notification-answer message,
The node of the first interannular interaction push-notification-answer message is received in first looped network by presetting mechanism, from the interannular for being in blocked state
To be switched interannular redundancy backup port is selected in redundancy backup port, and the state of to be switched interannular redundancy backup port is arranged
For forwarding state.
When the node in the second looped network 12 has sent the first interannular interaction notice by interannular backup link connected to it
After response message, it is logical that the interaction of the first interannular will be received by the node in interannular backup link the first looped network 11 connected to it
Know response message.Since interannular interaction notice message is each section that redundancy backup port is in blocked state between the first looped network middle ring
What point was sent, then the first interannular interaction push-notification-answer message can be also in obstruction shape by least one interannular redundancy backup port
The node of state receives.The node that the first interannular interaction push-notification-answer message is received in so the first looped network 11 would know that second
It is off-state that the node that the first interannular interaction push-notification-answer message is sent in looped network 12, which has at least one ring inner port, and the
The topological structure of network is also preserved in each node in one looped network 11, and the first interannular interaction notice is received in the first looped network and is rung
Answer the node of message that can judge cyclic alone with the presence or absence of two or more in the second looped network 12 according to this and save with other
The node that point disconnects.If it exists, then the node in the first looped network can be standby by an interannular redundancy in blocked state
The state of part port is set as forwarding state, so that several nodes cyclic alone be made to pass through the interannular redundancy backup end after conversion
The corresponding redundancy backup link of mouth accesses the first looped network 11.Such as fourth node 122 and the 6th node 123 have at least one ring
Inner port is off-state.Since each node in the first looped network 11 preserves the loop network topology structure in the second looped network 12,
Therefore each node in the first looped network 11 can be according to the first interannular interaction push-notification-answer message to the network in the second looped network 12
Topology is judged, determines that fourth node 122 and the 6th node 123 are disconnected from the second network 12.And due to third section
Point 112 is connect with fourth node 122 by the second backup link 132, therefore can be by the second backup link 132 corresponding second
The state of interannular redundancy backup port 142 is switched to forwarding state from blocked state, connects so that the second backup link 132 be made to be in
State is connect, then fourth node 122 and the 6th node 123 can access the first looped network 11 by the second backup link 132.
If there is also the interannular redundancy backup ends that other are in blocked state and between the first looped network 11 and the second looped network 12
Mouthful, such as the third backup link 133 between the 5th node 113 and the 6th node 123 also has on the 5th node 113 and is in
The third interannular redundancy backup port 143 of blocked state, then since third node 112 and the 5th node 113 all receive respectively
The the first interannular interaction push-notification-answer message sent to fourth node 122 and the 6th node 123, then if simultaneously by the second backup
The corresponding redundancy backup port 142 of link 132 and the corresponding redundancy backup port 143 of third backup link 133 all become forwarding
State then may establish closed ring between third node 112, fourth node 122, the 6th node 123, the 5th node 113
Shape circuit leads to the generation of broadcast storm.Therefore, it is necessary to the first interannular interaction push-notification-answer message is received in the first looped network 11
Node in preset the selection mechanism of an interannular redundancy backup port, connect from the first looped network 11 with the second looped network 12 more
In a interannular redundancy backup port in blocked state, a to be switched interannular redundancy backup port is selected, and by its state
It is set as forwarding state.The selection of to be switched interannular redundancy backup port can be it is randomly selected, can also be according to each interannular
The parameter of redundancy backup port is selected according to certain mechanism.When setting forwarding state for be switched interannular redundancy backup port
Afterwards, the node in the first looped network 11 can forward data to the second looped network 12 by the redundancy backup port after switching, i.e., logical
Redundancy backup port after crossing switching is realized with the first looped network 11 to be connect, and is avoided in this way when standby without configuration interannular redundancy
The node of part port is when ring inner port all disconnects, the problem of can not connecting network.And due to fourth node 122 and the 6th node
The 123 ring inner port in the second looped network 12 is all in off-state, although by the first interannular redundancy backup port 141 and second
The state of interannular redundancy backup port 142 has been both configured to forwarding state, will not make occur broadcast storm in whole network
The problem of.As shown in figure 4, Fig. 4 is the link switching schematic diagram of link switch-over method provided in an embodiment of the present invention.
Specifically, fourth node 122 needs to wrap into the first interannular interaction push-notification-answer message that the first looped network 11 is sent
Corresponding information is included, so that the third node 112 for receiving the first interannular interaction push-notification-answer message knows fourth node
The information that a 122 ring inner port disconnects.Wherein it is possible to which the stp state in the first interannular interaction push-notification-answer message is set
It is set to forwarding state.It is logical that the interaction of first interannular is received by the second interannular redundancy backup port 142 when third node 112 in this way
When knowing response message, parsing the first interannular interaction push-notification-answer message can determine in the first interannular interaction push-notification-answer message
Stp state be forwarding state, that is, know fourth node 122 a ring inner port disconnect.Meanwhile the 6th node 123
Into the first interannular interaction push-notification-answer message that the first looped network 11 is sent, it is also desirable to including corresponding information, so that connecing
The 5th node 113 for receiving the first interannular interaction push-notification-answer message knows what a ring inner port of the 6th node 123 disconnected
Information.In this way when the 5th node 113 receives the first interannular interaction push-notification-answer report by third interannular redundancy backup port 143
Wen Shi, parsing the first interannular interaction push-notification-answer message, that is, can determine the stp state in the first interannular interaction push-notification-answer message
For forwarding state, that is, know that a ring inner port of the 6th node 123 disconnects.Then, the first ring is received in the first looped network
Between interaction push-notification-answer message node also it needs to be determined that the second interannular redundancy backup port 142 and third interannular redundancy backup end
Whether mouthfuls 143 be blocked state, if the second interannular redundancy backup port 142 or third interannular redundancy backup port 143 by
It is set as forwarding state, then fourth node 122 and the 6th node 123 can pass through the second interannular redundancy backup port
142 or third interannular redundancy backup port 143 connect with the first looped network 11, also just no longer need to reset interannular redundancy backup end
Mouthful.And if the second interannular redundancy backup port 142 and third interannular redundancy backup port 143 are blocked state, then in order to
So that fourth node 122 and the 6th node 123 is accessed the first looped network 11, then needs in the second interannular redundancy backup port 142 and the
Selected in three interannular redundancy backup ports 143, determine a port be to be switched interannular redundancy backup port, and by its
State is set as forwarding state.
Link switch-over method provided in this embodiment, applied to the redundancy backup network including at least two looped networks, first
Redundancy backup port periodicity is passed through by each node that the interannular redundancy backup port in the first looped network is in blocked state respectively
Ground sends interannular interaction notice message to the second looped network, when each node in the second looped network receives ring by interannular backup link
Between interaction notice message after, determine central port connection status of each node in the second looped network, then when in the second looped network appoint
When one node determines that a central port in the second looped network is in an off state, backed up by the interannular being connect with the first looped network
The first looped network of chain road direction sends the first interannular interaction push-notification-answer message, in this way when at least one node in the first looped network receives
To after the first interannular interaction push-notification-answer message, the node that the first interannular interaction push-notification-answer message is received in the first looped network passes through
Default mechanism, selects to be switched interannular redundancy backup port from the interannular redundancy backup port in blocked state, and will be to
The state of switching interannular redundancy backup port is set as forwarding state, so as to so as to which the of interannular redundancy backup port is not configured
When multiple nodes in two looped networks disconnect in the second looped network, still can access network, avoid node in looped network by
In central port failure is opened from network interruption the problem of.
Fig. 5 is the flow chart of link switch-over method embodiment two provided in an embodiment of the present invention, as shown in figure 3, this implementation
Example provide method include:
Step S501, each node that the interannular redundancy backup port in the first looped network is in blocked state pass through redundancy respectively
Backup port periodically sends interannular interaction notice message to the second looped network.
Step S502, after each node in the second looped network receives interannular interaction notice message by interannular backup link,
Determine central port connection status of each node in the second looped network.
Step S503 disconnects shape when any node in the second looped network determines that a central port in the second looped network is in
When state, the first interannular interaction push-notification-answer message is sent to the first looped network by the interannular backup link connecting with the first looped network.
Step S504, after at least one node in the first looped network receives the first interannular interaction push-notification-answer message,
The node of the first interannular interaction push-notification-answer message is received in first looped network by presetting mechanism, from the interannular for being in blocked state
To be switched interannular redundancy backup port is selected in redundancy backup port, and the state of to be switched interannular redundancy backup port is arranged
For forwarding state.
Step S501- step S504 is identical as step S201- step S204, and details are not described herein again.
Step S505, when the node for sending the first interannular interaction push-notification-answer message to the first looped network in the second looped network is determining
When whole central ports in the second looped network are in connection status, by the interannular backup link that is connect with the first looped network to
One looped network sends the second interannular interaction push-notification-answer message, and the stp state in the second interannular interaction push-notification-answer message is obstruction
State.
When in the second looped network 12 to the first looped network 11 send the first interannular interaction push-notification-answer message node pass through fresh cut
After being changed to the redundancy backup link access network of connection status, it is also necessary to the central port state of itself is detected, this be by
If after the central port of the node is all in connection status centainly the second looped network 12, and entire net can be accessed by central port
There are more than two redundancy backup links for being in connection status in network, occurs broadcast storm in network then will lead to.Such as
If two central ports of the fourth node 122 in the second looped network 12 are all restored, and the first interannular redundancy backup port 141 and second
Interannular redundancy backup port 142 is all in forwarding state, i.e. the first backup link 131 and the second backup link 132 all in even
State is connect, then will be in the first looped network 11 and the second looped network 12, first node 111, second node 121,122 and of fourth node
Third node 112 will form closed annular connection and generate loop, occur broadcast storm in network to will lead to.In order to keep away
Exempt from the generation of this problem, is needed in the second looped network 12 to the node that the first looped network 11 sends the first interannular interaction push-notification-answer message
Will the central port state constantly to itself detect, when detecting that the node is complete in the central port in the second looped network 12
Portion central port is in connection status, then the node can pass through central port in the second looped network 12 and the second looped network 12
In the connection of other nodes, that is, have access in the second looped network 12.It has been determined that whole central ports are equal in central port at this time
The interannular backup link that node in connection status just needs to connect by the first looped network 11 sends second to the first looped network 11
Interannular interacts push-notification-answer message.Wherein, including above-mentioned fourth node 122 or the 6th node 123.Second interannular interaction notice is rung
Answering the stp state in message is blocked state, that is, needs to block backup link, prevent the generation of broadcast storm.Second interannular
Interaction push-notification-answer message includes version number, type of message, port-mark of giving out a contract for a project, the stp state for port of giving out a contract for a project, node institute of giving out a contract for a project
In at least one of ring mark.
Step S306, the node in the first looped network receive the second interannular interaction notice by interannular redundancy backup port and ring
After answering message, parsing the second interannular interaction push-notification-answer message determines the stp state in the second interannular interaction push-notification-answer message
For blocked state, and itself interannular redundancy backup port is forwarding state, then will be in the interannular redundancy backup end of forwarding state
The state of mouth is set as blocked state.
After node in first looped network receives the second interannular interaction push-notification-answer message by interannular redundancy backup port,
The second interannular interaction push-notification-answer message is parsed, determines the stp state in the second interannular interaction push-notification-answer message for obstruction shape
When state and the state of the interannular redundancy backup port of oneself are forwarding state, it can determine that the interannular redundancy backup port of oneself exists
The state of the ring inner end of the peer node of second looped network, reverts to forwarding state by disconnection, if still maintaining the interannular of oneself
Backup link is in connection status, then occurs looped network in network so as to cause network storm, therefore, the interannular redundancy of oneself is standby
The state of part port is set as blocked state by forwarding state.
When setting forwarding state section for the state of interannular redundancy backup port in blocked state in the first looped network 11
When point receives the second interannular interaction push-notification-answer message by interannular redundancy backup port, it is meant that before in the second looped network 12
The node disconnected has accessed the second looped network 12 again, connects if still maintaining more than two interannular backup links and being in
State is connect, then will lead to internet storm occurring in network.Therefore when the interannular redundancy that will be in blocked state in the first looped network 11
The node that the state of backup port is set as forwarding state receives the second interannular interaction notice by interannular redundancy backup port
When response message, parsing the second interannular interaction push-notification-answer message determines the STP shape in the second interannular interaction push-notification-answer message
State is blocked state, and itself interannular redundancy backup port is forwarding state, then will be in the interannular redundancy backup of forwarding state
The state of port is set as blocked state.If such as in step S504, third node 112 is by the second interannular redundancy backup port
Switch from blocked state for forwarding state, then when third node 112 is received by the second interannular redundancy backup port 142
Second interannular interacts push-notification-answer message, and third node 112 determines second by parsing the second interannular interaction push-notification-answer message
Interannular interacts the stp state in push-notification-answer message will to know that fourth node 122 or the 6th node 123 exist after blocked state
Whole central ports recovered connection in second looped network 12, then fourth node 122 and the 6th node 123 can access
Second looped network 12.In order to avoid the generation of broadcast storm, third node 112 needs to set the second redundancy backup port 142 to
Blocked state, then the backup link for being in connection status will be only existed between the first looped network 11 and the second looped network 12, from
And it can be to avoid the generation of broadcast storm.The state in network is converted into state shown in FIG. 1 from state shown in Fig. 4.
Further, in Fig. 2 or embodiment illustrated in fig. 5, if there is the first looped network 11 two or more to be in blocked state
Interannular redundancy backup port, when each node in the first looped network 11 receive the first interannular interaction push-notification-answer message after,
The interannular that each node in first looped network 11 can be connect according to each node in the first looped network 11 with each node in the second looped network 12
The information such as link-quality, link state, IP address, the MAC Address of backup link, the interannular backup chain for selecting link-quality optimal
The corresponding redundancy backup port in road is as to be switched interannular redundancy backup port, and by the shape of to be switched interannular redundancy backup port
State is set as forwarding state.Forwarding state is set by the optimal interannular backup link of link-quality, the first looped network can be made
11 and the second interannular backup link between looped network 12 in forwarding state quality it is higher, it is ensured that the first looped network 11 and the second ring
The quality of connection of net 12.
Fig. 6 is the structural schematic diagram of link redundancy backup network embodiment one provided in an embodiment of the present invention, such as Fig. 6 institute
Show, link redundancy backup network provided in this embodiment includes:
First looped network 61 and the second looped network 62 include first node 611, third node 612 and the 5th in first looped network 61
Node 613 includes second node 621, fourth node 622, the 6th node 623 and the 8th node 624 in second looped network 62.First
Each node in looped network 61 passes through interannular backup link respectively and connect with each node in the second looped network 62, respectively saves in the first looped network 61
Point is interannular redundancy backup port by the port that interannular backup link is connect with each node in the second looped network 62, wherein the first ring
The redundancy backup port 631 of first node 611 is forwarding state in net 61, remaining redundancy backup port in the first looped network 61,
Redundancy backup port 632, redundancy backup port 633 are blocked state.With two looped networks in the present embodiment, wrapped in the first looped network 11
It includes three nodes, includes being illustrated for four nodes, but link provided by the embodiment of the present application is superfluous in the second looped network 12
Remaining backup network is not as example, includes extremely in each looped network in link redundancy backup network as long as including at least two looped networks
Few three nodes.
Each node in first looped network 61 is used for when interannular redundancy backup port is in blocked state, passes through redundancy respectively
Backup port periodically sends interannular interaction notice message to the second looped network 62.
Each node in second looped network 62 is used for after receiving interannular interaction notice message by interannular backup link, really
Fixed central port connection status of each node in the second looped network 62.
Node in second looped network 62 is also used to when the central port determined in the second looped network is in an off state,
The first interannular interaction push-notification-answer message is sent to the first looped network by the interannular backup link connecting with the first looped network.
Node in first looped network 61, which is also used to work as, receives the first interannular interaction push-notification-answer message and the friendship of the second interannular
Mutually after notice response message, by presetting mechanism, ring change to be cut is selected from the interannular redundancy backup port in blocked state
Between redundancy backup port, and set forwarding state for the state of to be switched interannular redundancy backup port.
Link redundancy backup network provided in this embodiment for realizing embodiment illustrated in fig. 2 link redundancy backup side
Method, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Further, in the embodiment shown in fig. 6, each node in the first looped network 61, which is specifically used for working as, receives the first ring
Between interaction push-notification-answer message after, parsing the first interannular interaction push-notification-answer message, determine the first interannular interaction push-notification-answer report
When stp state in text is forwarding state, by presetting mechanism, selected from the interannular redundancy backup port in blocked state
To be switched interannular redundancy backup port, and forwarding state is set by the state of to be switched interannular redundancy backup port.
Further, in the embodiment shown in fig. 6, the node in the first looped network 11, which is specifically used for working as, receives the first interannular
After interaction push-notification-answer message, the interannular backup chain that is connect according to each node in the first looped network 11 with each node in the second looped network 12
The link-quality on road, the interannular backup link corresponding interannular redundancy backup port for selecting link-quality optimal is as ring change to be cut
Between redundancy backup port, and set forwarding state for the state of to be switched interannular redundancy backup port.
Further, in the embodiment shown in fig. 6, the node in the second looped network 12 is also used to, and is sent out to the first looped network 11
After sending the first interannular interaction push-notification-answer message, when determining that whole central ports in the second looped network 12 are in connection status,
The second interannular interaction push-notification-answer message is sent to the first looped network 11 by the interannular backup link connecting with the first looped network 11, the
Stp state in two interannulars interaction push-notification-answer message is blocked state;Node in first looped network 11 is also used to, when passing through ring
Between redundancy backup port receive the second interannular interaction push-notification-answer message after, parsing the second interannular interaction push-notification-answer message,
Determine that the stp state in the second interannular interaction push-notification-answer message is blocked state, and itself interannular redundancy backup port is to turn
Hair-like state then sets blocked state for the state of the interannular redundancy backup port in forwarding state.
Further, in the embodiment shown in fig. 6, interannular interacts notice message, the first interannular interacts push-notification-answer message,
Second interannular interaction push-notification-answer message includes version number, type of message, port-mark of giving out a contract for a project, the stp state for port of giving out a contract for a project, hair
At least one of ring mark where packet node.
The embodiment of the present application also provides a kind of storage medium comprising computer executable instructions, computer executable instructions
When being executed by computer processor for executing a kind of link switch-over method, this method comprises:
Each node that interannular redundancy backup port in first looped network is in blocked state passes through redundancy backup port respectively
Periodically interannular interaction notice message is sent to the second looped network;
After each node in second looped network receives interannular interaction notice message by interannular backup link, each node is determined
Central port connection status in the second looped network;
When any node in the second looped network determines that a central port in the second looped network is in an off state, pass through
The interannular backup link connecting with the first looped network sends the first interannular interaction push-notification-answer message to the first looped network;
After at least one node in the first looped network receives the first interannular interaction push-notification-answer message, in the first looped network
The node of the first interannular interaction push-notification-answer message is received by presetting mechanism, from the interannular redundancy backup end for being in blocked state
To be switched interannular redundancy backup port is selected in mouthful, and sets forwarding shape for the state of to be switched interannular redundancy backup port
State.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (10)
1. a kind of link switch-over method, which is characterized in that applied to the redundancy backup network including at least two looped networks, Mei Gehuan
It include at least three nodes in net, at least two looped network includes the first looped network and the second looped network, in first looped network
At least two nodes pass through interannular backup link respectively and connect with each node in second looped network, in first looped network extremely
It with the node in second looped network by the port that interannular backup link is connect is interannular redundancy backup end on few two nodes
Mouthful, wherein the interannular redundancy backup port of a node is forwarding state in first looped network, its in first looped network
Remaining interannular redundancy backup port is blocked state, which comprises
Each node that interannular redundancy backup port in first looped network is in blocked state passes through interannular redundancy backup respectively
Port periodically sends interannular interaction notice message to second looped network;
After each node in second looped network receives the interannular interaction notice message by interannular backup link, determine each
Central port connection status of the node in second looped network;
When any node in second looped network determines that a central port in second looped network is in an off state,
The first interannular interaction push-notification-answer report is sent to first looped network by the interannular backup link connecting with first looped network
Text;
After at least one node in first looped network receives first interannular interaction push-notification-answer message, described the
The node of the first interannular interaction push-notification-answer message is received in one looped network by presetting mechanism, from the ring for being in blocked state
Between select to be switched interannular redundancy backup port in redundancy backup port, and by the shape of the to be switched interannular redundancy backup port
State is set as forwarding state.
2. the method according to claim 1, wherein described at least one node when in first looped network connects
After receiving the first interannular interaction push-notification-answer message, the first interannular interaction push-notification-answer is received in first looped network
The node of message selects to be switched interannular redundancy standby by presetting mechanism from the interannular redundancy backup port in blocked state
Part port, and forwarding state is set by the state of the to be switched interannular redundancy backup port, comprising:
After at least one node in first looped network receives the first interannular interaction push-notification-answer message, institute is parsed
The first interannular interaction push-notification-answer message is stated, determines the spanning tree stp state in the first interannular interaction push-notification-answer message
When for forwarding state, the node that the first interannular interaction push-notification-answer message is received in first looped network passes through default machine
System selects to be switched interannular redundancy backup port from the interannular redundancy backup port in blocked state, and will be described to be cut
The state of redundancy backup port is set as forwarding state between ring change.
3. method according to claim 1 or 2, which is characterized in that described when at least one of described first looped network section
After point receives the first interannular interaction push-notification-answer message, the first interannular interaction notice is received in first looped network
The node of response message selects to be switched interannular superfluous by presetting mechanism from the interannular redundancy backup port in blocked state
Remaining backup port, and forwarding state is set by the state of the to be switched interannular redundancy backup port, comprising:
After at least one node in first looped network receives first interannular interaction push-notification-answer message, described the
Received in one looped network the node of first interannular interaction push-notification-answer message according to each node in first looped network with it is described
The link-quality of the interannular backup link of each node connection, the interannular backup link pair for selecting link-quality optimal in second looped network
The interannular redundancy backup port answered is as the to be switched interannular redundancy backup port, and by the to be switched interannular redundancy backup
The state of port is set as forwarding state.
4. method according to claim 1 or 2, which is characterized in that described when at least one of described first looped network section
After point receives the first interannular interaction push-notification-answer message, the first interannular interaction notice is received in first looped network
The node of response message selects to be switched interannular superfluous by presetting mechanism from the interannular redundancy backup port in blocked state
Remaining backup port, and after setting forwarding state for the state of the to be switched interannular redundancy backup port, the method is also
Include:
When the node for sending the first interannular interaction push-notification-answer message to first looped network in second looped network is determining in institute
When stating whole central ports in the second looped network and being in connection status, pass through the interannular backup link connecting with first looped network
The second interannular is sent to first looped network and interacts push-notification-answer message, and second interannular interacts in push-notification-answer message
Stp state is blocked state;
Node in first looped network receives the second interannular interaction push-notification-answer report by interannular redundancy backup port
Wen Hou parses the second interannular interaction push-notification-answer message, determines the STP in the second interannular interaction push-notification-answer message
State is blocked state, and itself interannular redundancy backup port is forwarding state, then the interannular redundancy in forwarding state is standby
The state of part port is set as blocked state.
5. method according to claim 1 or 2, which is characterized in that interannular the interaction notice message, first interannular
Interaction push-notification-answer message, second interannular interaction push-notification-answer message include version number, type of message, port mark of giving out a contract for a project
Know, at least one of ring mark where the stp state for port of giving out a contract for a project, node of giving out a contract for a project.
6. a kind of link redundancy backup network, which is characterized in that the link redundancy backup network includes at least two looped networks, often
It include at least three nodes in a looped network, at least two looped network includes the first looped network and the second looped network, first looped network
In at least two nodes pass through interannular backup link respectively and connect with each node in second looped network, in first looped network
At least two nodes and the node in second looped network by the port that interannular backup link is connect be interannular redundancy backup
Port, wherein the interannular redundancy backup port of a node is forwarding state in first looped network, in first looped network
Remaining interannular redundancy backup port is blocked state;
Node in first looped network is used for when interannular redundancy backup port is in blocked state, passes through redundancy backup respectively
Port periodically sends interannular interaction notice message to second looped network;
Node in second looped network is used for after receiving the interannular interaction notice message by interannular backup link, really
Fixed central port connection status of each node in second looped network;
Node in second looped network is also used to be in an off state when the central port determined in second looped network
When, the first interannular interaction push-notification-answer is sent to first looped network by the interannular backup link connecting with first looped network
Message;
Node in first looped network is also used to after receiving the first interannular interaction push-notification-answer message, by default
Mechanism selects to be switched interannular redundancy backup port from the interannular redundancy backup port in blocked state, and will it is described to
The state of switching interannular redundancy backup port is set as forwarding state.
7. link redundancy backup network according to claim 6, which is characterized in that the node in first looped network is specific
For after receiving the first interannular interaction push-notification-answer message, parsing the first interannular interaction push-notification-answer message,
When the spanning tree stp state for determining in first interannular interaction push-notification-answer message is forwarding state, by presetting mechanism, from
Select to be switched interannular redundancy backup port in interannular redundancy backup port in blocked state, and by the to be switched interannular
The state of redundancy backup port is set as forwarding state.
8. link redundancy backup network according to claim 6 or 7, which is characterized in that the node in first looped network
Specifically for after receiving first interannular interaction push-notification-answer message, according to each node in first looped network with it is described
The link-quality of the interannular backup link of each node connection, the interannular backup link pair for selecting link-quality optimal in second looped network
The interannular redundancy backup port answered is as the to be switched interannular redundancy backup port, and by the to be switched interannular redundancy backup
The state of port is set as forwarding state.
9. link redundancy backup network according to claim 6 or 7, which is characterized in that the node in second looped network
It is also used to, after sending the first interannular interaction push-notification-answer message to first looped network, determines in second looped network
When whole central ports are in connection status, by the interannular backup link that is connect with first looped network to first looped network
The second interannular interaction push-notification-answer message is sent, the stp state in the second interannular interaction push-notification-answer message is obstruction shape
State;
Node in first looped network is also used to, logical when receiving the second interannular interaction by interannular redundancy backup port
After knowing response message, the second interannular interaction push-notification-answer message is parsed, determines the second interannular interaction push-notification-answer report
Stp state in text is blocked state, and itself interannular redundancy backup port is forwarding state, then will be in the ring of forwarding state
Between the state of redundancy backup port be set as blocked state.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The link switch-over method as described in any in Claims 1 to 5 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811644041.9A CN109525445B (en) | 2018-12-29 | 2018-12-29 | Link switching method, link redundancy backup network and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811644041.9A CN109525445B (en) | 2018-12-29 | 2018-12-29 | Link switching method, link redundancy backup network and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109525445A true CN109525445A (en) | 2019-03-26 |
CN109525445B CN109525445B (en) | 2022-03-08 |
Family
ID=65797675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811644041.9A Active CN109525445B (en) | 2018-12-29 | 2018-12-29 | Link switching method, link redundancy backup network and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109525445B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110838994A (en) * | 2019-11-14 | 2020-02-25 | 天津津航计算技术研究所 | Redundant Ethernet link state monitoring system based on broadcast protocol |
CN111130943A (en) * | 2019-12-27 | 2020-05-08 | 深圳市丰润达科技有限公司 | Method for realizing fast ring network switching, switch and computer readable storage medium |
CN111726287A (en) * | 2020-07-13 | 2020-09-29 | 中国联合网络通信集团有限公司 | Ring network protection method and device |
CN112737938A (en) * | 2020-11-30 | 2021-04-30 | 北京东土军悦科技有限公司 | DRP switching method, device, equipment and medium |
CN113824796A (en) * | 2021-10-22 | 2021-12-21 | 杭州宏杉科技股份有限公司 | Token passing method and device |
CN113904975A (en) * | 2021-09-27 | 2022-01-07 | 北京东土科技股份有限公司 | Method, equipment and storage medium for realizing dual-homing link |
CN114070662A (en) * | 2020-07-31 | 2022-02-18 | 上海国际货币经纪有限责任公司 | Message bus system |
CN114846777A (en) * | 2019-11-11 | 2022-08-02 | 西门子加拿大有限公司 | Network device for providing redundancy in an industrial network |
CN117527537A (en) * | 2023-11-08 | 2024-02-06 | 南京能可瑞科技有限公司 | Communication method of split charging pile |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101197745A (en) * | 2007-12-21 | 2008-06-11 | 深圳市三旺通信技术有限公司 | Looped network redundancy Ethernet module and method for implementing looped network redundant data transmission |
CN101262402A (en) * | 2007-11-08 | 2008-09-10 | 北京东土科技股份有限公司 | A method for realizing redundant backup between loop networks |
CN101771580A (en) * | 2009-01-07 | 2010-07-07 | 四零四科技股份有限公司 | Processing method for redundancy checking of ring network |
US20100209106A1 (en) * | 2009-02-18 | 2010-08-19 | Fujitsu Limited | Optical ring network system |
CN102821009A (en) * | 2012-08-08 | 2012-12-12 | 中兴通讯股份有限公司 | Method for monitoring ring network on basis of link layer discovery protocol and device |
CN103095540A (en) * | 2013-01-18 | 2013-05-08 | 武汉迈威光电技术有限公司 | Industrial Ethernet data distribution and link redundancy design |
CN104135417A (en) * | 2014-08-27 | 2014-11-05 | 杭州立地信息技术有限公司 | Quick recovery method for ethernet ring network link interruption and corresponding ethernet ring network |
CN106789264A (en) * | 2016-12-26 | 2017-05-31 | 北京东土军悦科技有限公司 | The method and apparatus that a kind of link aggregation group passage is switched fast |
CN106992931A (en) * | 2017-04-18 | 2017-07-28 | 深圳市立全鼎盛科技有限公司 | Interchanger redundancy backup method and dual homed loop system based on dual homed ring |
US20170289014A1 (en) * | 2016-04-01 | 2017-10-05 | Moxa Inc. | Redundany system of routing paths and method thereof |
-
2018
- 2018-12-29 CN CN201811644041.9A patent/CN109525445B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101262402A (en) * | 2007-11-08 | 2008-09-10 | 北京东土科技股份有限公司 | A method for realizing redundant backup between loop networks |
CN101197745A (en) * | 2007-12-21 | 2008-06-11 | 深圳市三旺通信技术有限公司 | Looped network redundancy Ethernet module and method for implementing looped network redundant data transmission |
CN101771580A (en) * | 2009-01-07 | 2010-07-07 | 四零四科技股份有限公司 | Processing method for redundancy checking of ring network |
US20100209106A1 (en) * | 2009-02-18 | 2010-08-19 | Fujitsu Limited | Optical ring network system |
CN102821009A (en) * | 2012-08-08 | 2012-12-12 | 中兴通讯股份有限公司 | Method for monitoring ring network on basis of link layer discovery protocol and device |
CN103095540A (en) * | 2013-01-18 | 2013-05-08 | 武汉迈威光电技术有限公司 | Industrial Ethernet data distribution and link redundancy design |
CN104135417A (en) * | 2014-08-27 | 2014-11-05 | 杭州立地信息技术有限公司 | Quick recovery method for ethernet ring network link interruption and corresponding ethernet ring network |
US20170289014A1 (en) * | 2016-04-01 | 2017-10-05 | Moxa Inc. | Redundany system of routing paths and method thereof |
CN106789264A (en) * | 2016-12-26 | 2017-05-31 | 北京东土军悦科技有限公司 | The method and apparatus that a kind of link aggregation group passage is switched fast |
CN106992931A (en) * | 2017-04-18 | 2017-07-28 | 深圳市立全鼎盛科技有限公司 | Interchanger redundancy backup method and dual homed loop system based on dual homed ring |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114846777B (en) * | 2019-11-11 | 2023-10-24 | 西门子加拿大有限公司 | Network device for providing redundancy in an industrial network |
CN114846777A (en) * | 2019-11-11 | 2022-08-02 | 西门子加拿大有限公司 | Network device for providing redundancy in an industrial network |
CN110838994A (en) * | 2019-11-14 | 2020-02-25 | 天津津航计算技术研究所 | Redundant Ethernet link state monitoring system based on broadcast protocol |
CN111130943A (en) * | 2019-12-27 | 2020-05-08 | 深圳市丰润达科技有限公司 | Method for realizing fast ring network switching, switch and computer readable storage medium |
CN111130943B (en) * | 2019-12-27 | 2021-12-21 | 深圳市丰润达科技有限公司 | Method for realizing fast ring network switching, switch and computer readable storage medium |
CN111726287A (en) * | 2020-07-13 | 2020-09-29 | 中国联合网络通信集团有限公司 | Ring network protection method and device |
CN114070662A (en) * | 2020-07-31 | 2022-02-18 | 上海国际货币经纪有限责任公司 | Message bus system |
CN112737938B (en) * | 2020-11-30 | 2022-09-27 | 北京东土军悦科技有限公司 | DRP switching method, device, equipment and medium |
CN112737938A (en) * | 2020-11-30 | 2021-04-30 | 北京东土军悦科技有限公司 | DRP switching method, device, equipment and medium |
CN113904975A (en) * | 2021-09-27 | 2022-01-07 | 北京东土科技股份有限公司 | Method, equipment and storage medium for realizing dual-homing link |
CN113824796A (en) * | 2021-10-22 | 2021-12-21 | 杭州宏杉科技股份有限公司 | Token passing method and device |
CN113824796B (en) * | 2021-10-22 | 2023-06-30 | 杭州宏杉科技股份有限公司 | Token passing method and device |
CN117527537A (en) * | 2023-11-08 | 2024-02-06 | 南京能可瑞科技有限公司 | Communication method of split charging pile |
CN117527537B (en) * | 2023-11-08 | 2024-07-09 | 南京能可瑞科技有限公司 | Communication method of split charging pile |
Also Published As
Publication number | Publication date |
---|---|
CN109525445B (en) | 2022-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109525445A (en) | Link switch-over method, link redundancy backup network and computer readable storage medium | |
CN109462533A (en) | Link switch-over method, link redundancy backup network and computer readable storage medium | |
US8149692B2 (en) | Ring topology discovery mechanism | |
AU2009237405B2 (en) | Connectivity fault management traffic indication extension | |
CN101652963B (en) | Method for reconfiguring a communications network | |
US8619785B2 (en) | Pre-computing alternate forwarding state in a routed ethernet mesh network | |
US20190028327A1 (en) | Service-based loss forwarding in communication networks | |
CN104168193B (en) | A kind of method and routing device of Virtual Router Redundancy Protocol fault detect | |
US10439880B2 (en) | Loop-free convergence in communication networks | |
CN101854283B (en) | Communication method and equipment of RPR (Resilient Packet Ring) looped network | |
US20090310483A1 (en) | Network device and link switching method | |
CN101783743B (en) | Business protection method and switching node | |
Feng et al. | A ring-based single-link failure recovery approach in SDN data plane | |
CN101641915B (en) | Method for reconfiguring a communication network | |
CN108616380B (en) | Tree network recovery method of software defined network and controller | |
CN109787860B (en) | Bidirectional forwarding link detection method and device | |
US20160036622A1 (en) | Protection switching method, network, and system | |
CN104168169B (en) | A kind of MAC address entries delet method and equipment | |
Lam et al. | Network management requirements for mpls-based transport networks | |
Alowa et al. | A dynamic recovery module for in-band control channel failure in software defined networking | |
CN107786435B (en) | Pseudo wire protection method and device | |
TWI644541B (en) | A network load balance methodology in balancing chain topology and its redundant process system | |
CN110611620A (en) | Link updating method and device | |
CN105871716B (en) | VRRP-based link monitoring method and system | |
JP2017200116A (en) | Relay device and relay system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |