CN110635940A - Main/standby switching method of EAPS Ethernet ring network - Google Patents

Main/standby switching method of EAPS Ethernet ring network Download PDF

Info

Publication number
CN110635940A
CN110635940A CN201910799403.XA CN201910799403A CN110635940A CN 110635940 A CN110635940 A CN 110635940A CN 201910799403 A CN201910799403 A CN 201910799403A CN 110635940 A CN110635940 A CN 110635940A
Authority
CN
China
Prior art keywords
master
port
message
state
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910799403.XA
Other languages
Chinese (zh)
Other versions
CN110635940B (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.)
Inspur Cisco Networking Technology Co Ltd
Original Assignee
Inspur Cisco Networking Technology 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 Inspur Cisco Networking Technology Co Ltd filed Critical Inspur Cisco Networking Technology Co Ltd
Priority to CN201910799403.XA priority Critical patent/CN110635940B/en
Publication of CN110635940A publication Critical patent/CN110635940A/en
Application granted granted Critical
Publication of CN110635940B publication Critical patent/CN110635940B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/557Error correction, e.g. fault recovery or fault tolerance

Abstract

The invention discloses a main/standby switching method of an EAPS Ethernet ring network, which is characterized in that an RPL protection link configuration is added in the EAPS Ethernet ring network, a transmission node directly connected with a Master main port is configured into a Master-owner through a command, a transmission node directly connected with a Master auxiliary port is configured into a Master-neighbor through a command, and auxiliary ports of the Master-neighbor and the Master-owner are directly connected with the Master. The invention adopts a high-reliability main/standby switching technology in the EAPS ring network, configures the designated transmission node as the backup main node, and enables the configured backup main node to become a new main node once the main node is abnormal, thereby ensuring that the ring network protocol can still continue to operate and effectively ensuring the stability and the availability of the industrial network.

Description

Main/standby switching method of EAPS Ethernet ring network
Technical Field
The invention relates to a main/standby switching method of an EAPS Ethernet ring network, belonging to the technical field of communication.
Background
EAPS is an Ethernet ring network automatic protection switching technology defined by IETF in RFC3619, and when one link on the Ethernet ring network is disconnected, a backup link can be quickly started to restore the communication between each node on the ring network. Compared with STP protocol, EAPS has the characteristics of fast topology convergence speed (less than 50ms) and independence of convergence time with the number of nodes on the ring network. Taking a single ring as an example, all protocol messages are transmitted in the control plane of the vlan5, and all data messages are forwarded in the data planes of other vlans, and the specific implementation scheme is as follows: s1, under normal condition, the master node periodically sends a health message from the master port, if the message can be received from the secondary port, the loop is Complete, the master node enters a Complete state, at this time, the stp state of the secondary port is set to a blocking state, the data message is blocked, and the loop is eliminated. S2, when the L2 Link fails, the secondary port of the transmit2 and the primary port of the transmit3 of the transmission node send Link down messages and enter a Link-down state. And the main node receives the Link down message, enters a failed state, sets the stp state of the secondary port as a forwarding state and informs all transmission nodes of the ring network of clearing the local FDB table by sending a COMM-FLUSH-FDB message. S3, the L2 link is recovered, the transmission nodes transmit2 and transmit3 enter a forwarding state (temporary blocking state) and set the recovered port to a blocking state, so as to prevent loops. At this time, the secondary port of the Master node can enter a Complete state after receiving the health message sent by the primary port, re-block the secondary port of the Master node, and send a COMP-FLUSH-FDB message. And after receiving the COMP-FLUSH-FDB message sent by the main node, the transmission nodes transmit2 and transmit3 clear the local FDB address table, migrate to the Link-up state and reset the port in the blocking state to the forwarding state.
The master node is the core for maintaining the operation of the whole ring network, and the master node exists only on the EAPS ring network and is a main decision and control node on the EAPS ring. The main node is responsible for blocking and releasing redundant links on the ring, sending and monitoring a health detection message and receiving other node fault notification. Once the master node fails or crashes, the entire ring network protocol is out of control and full of ignorance. This may lead to the following consequences: 1) the master node control plane crashes, the data plane works normally, and if the auxiliary port is in a forwarding state at the moment and other link faults do not exist on the ring network, a loop can be formed to cause a broadcast storm. On the contrary, if the secondary port is in a blocking state at this time, although no loop can appear on the ring network, if other links on the ring network have link failure or recovery, the master node cannot control all transmission nodes of the ring network to clear the FDB address table, so that the data switching on the ring network is very slow. 2) The master node control plane and the data plane are both crashed, and at the moment, if other links of the ring network have faults, the transmission nodes at two ends of the fault link taking the master node as a demarcation point are completely isolated and cannot communicate data flow; if the ring network fault link is recovered, the master node can not control other transmission nodes to clear the FDB table, and the ring network data switching is very slow. 3) If the master node is normal, but the primary and secondary ports are all link down, the master node and the secondary ports will eventually cause the ring network data switching to be very slow.
Disclosure of Invention
Aiming at the defects of the method, the invention provides a main/standby switching method of an EAPS Ethernet ring network, which can quickly switch a standby main node into a new main node once the main node is abnormal, and can establish a new ring network by utilizing an RPL link to maintain the continuous operation of a ring network protocol.
The technical scheme adopted for solving the technical problems is as follows:
the embodiment of the invention provides a main/standby switching method of an EAPS Ethernet ring network, which is characterized in that an RPL protection link configuration is added in the EAPS Ethernet ring network, a transmission node directly connected with a Master main port is configured into a Master-owner through a command, a transmission node directly connected with a Master auxiliary port is configured into a Master-neighbor through a command, and auxiliary ports of the Master-neighbor and the Master-owner are directly connected with the Master.
In combination with a possible implementation manner as this embodiment, the active/standby switching method includes the following steps:
s1, under normal condition, the Master node periodically sends a health message from the Master port, if the message can be received from the secondary port, the loop is Complete, the Master node enters a Complete state, the stp state of the secondary port is set to a blocking state, a data message is blocked, the loop is eliminated, and simultaneously, a COMP-FLUSH-FDB message is sent to inform all transmission nodes of clearing the FDB table;
s2, if the Master-inner secondary port is link down, the Master-inner enters a list state, the Master-inner main port sends a link-down message, if the Master-inner main port receives the link-down message and the message source MAC address is the MAC negotiated and stored by the MAC in the step S1, the message source MAC address indicates that all transmission nodes between the Master-inner main port and the Master-inner main port have no link failure, and at the moment, the Master-inner enters the list state, and the link state between the Master-inner secondary port and the Master node is monitored;
s3, if the Master-owner secondary port state is link up, and the Health message sent by the Master node cannot be received in a 3 times Health message sending period, the Master-neighbor will also not receive the Health message, the Master-neighbor enters into a list state, the Master-owner directly triggers the main/standby switching, and the Master-owner switching working mode is the Master Master node;
s4, adding a manual-switch command, manually triggering main-standby switching, designating any transmission node as a Master node, sending a health message from a new Master port, and switching the working mode into the transmission node if the old Master node receives the health message but the message source MAC address is not self; if the manual-switch command is executed on the Master-owner or the Master-neighbor, whether the RPL link is enabled or not is selected;
s5, in step S2, if the Master-owner fault port recovers the link up and receives the health message, the Master-slave reverse is triggered, the Master-owner working mode is switched to a transmission node, the RPL main port and the RPL auxiliary port exchange roles, the RPL main port is set to a disabled state, and the RPL link is blocked again; and the rpl main port sends a link-up message, the Master-neighbor main port receives the link-up message, and the message source MAC address is the MAC address negotiated by the MAC in S1, the rpl main port and the rpl auxiliary port are subjected to role exchange, at the moment, if the auxiliary port is a link down, the node state is set to be a listen state, and if not, the node state is set to be a transmit state.
In step S1, MAC negotiation is performed between the Master-owner and the Master-neighbor, where the Master-owner and the Master-neighbor both periodically send special health messages from the primary port and the secondary port at a timing of 1 second, the Master-neighbor and the Master-owner receive the special health messages, record the MAC address of the message source, store the message source in the local, send the special health message with reserved field of 0xbb as a response, the Master-owner and the Master-neighbor receive the response message, and stop sending the special health message with reserved field of 0 xaa.
In step S2, the Master primary port also detects link down, the Master secondary port changes to forwarding state, and continuously sends 3 COMM-FLUSH-FDB messages from the Master secondary port to notify other transmission nodes of clearing the FDB table.
In combination with a possible implementation manner as this embodiment, the process of triggering the active/standby switching reports the following steps:
s2-1, if the secondary port of the Master-neighbor node in the list state has no link failure and does not receive the COMM-FLUSH-FDB message sent by the Master node within 5 seconds, the Master-neighbor primary port actively sends a link-down message, the Master-owner receives the link-down message, and the message source MAC address is equal to the MAC negotiation address, at this time, if the Master-owner is not in the list state, the Master-owner switching is set, otherwise, the Master-owner switching mode is triggered to be switched into the primary node;
s2-2, if the Master-neighbor node secondary port link down, the Master-neighbor Master port actively sends a link-down message, the Master-owner receives the link-down message, and the message source MAC address is equal to the MAC negotiation address, at this time, if the Master-owner is not in a list state, the state is set to a list state, otherwise, the Master-backup switching is triggered, and the Master-owner working mode is switched to the Master node;
s2-3, Master-owner trigger main/standby switch flow is: the Master-winner becomes a main node, the stp state of the rpl port is blocking, then the roles of the rpl main port and the rpl auxiliary port are exchanged, the rpl main port periodically sends a health message, the rpl auxiliary port sends 2 health messages, if the rpl auxiliary port receives the health message, the rpl node state is changed into a Complete state, and a COMP-FLUSH-FDB message is sent from the rpl auxiliary port to inform other transmission nodes of clearing an FDB table; if the Master-neighbor receives the health message and the message source MAC address is the MAC negotiation address, setting the state of the Master-neighbor as the switch state, and exchanging the roles of the rpl main port and the rpl auxiliary port.
In combination as a possible implementation manner of this embodiment, the Listen state is: one of the Master port or the auxiliary port of the Master node fails or the control message is not passed; the Master-owner and Master-neighbor are in the Master node failure monitoring state at this time.
In combination as a possible implementation manner of this embodiment, the Transmit status is: the Master port and the auxiliary port are normal; at this time, Master-owner and Master-n are in a normal transmission node state.
In combination with a possible implementation manner as this embodiment, the Switch status is: both the Master port and the slave port of the Master fail or the control message is not passed, and the ring network is in a switching state at the moment; the Master-owner main node is in Complete or failed state, and the Master-neighbor transmission node is in Switch state.
With reference to a possible implementation manner of this embodiment, in step S5, if the slave port of the Master-neighbor recovers the link up, the Master port sends a link-up packet, the rpl port and the rpl slave port perform role-swapping, the node state is set as listen, and once it receives the health packet sent by the old Master or the link-up packet matching the MAC negotiation address, the node state is set as transmit; if the Master-owner main port receives the link-up message and the source MAC in the message is the MAC address negotiated by the MAC in S1, triggering main-standby reversal, switching the Master-owner working mode into a transmission node, exchanging roles of a RPL port and an auxiliary port, setting the RPL port to be in a disabled state, re-blocking an RPL link, and if the auxiliary port is the link up, changing the state into transmit, otherwise, setting the state to be list; the old Master node periodically sends a health message from the main port, if the auxiliary port receives the message, the auxiliary port is set to be in a blocking state, the Master node enters a Complete state and sends a COMP-FLUSH-FDB message to inform other transmission nodes of clearing the FDB table.
The technical scheme of the embodiment of the invention has the following beneficial effects:
the main node in the ring network is the core of the normal operation of the whole protocol, once the main node is abnormal, the whole ring network protocol can not be operated normally.
The invention is applied to the link layer protocol of the Ethernet ring network, and can prevent the broadcast storm caused by the data loop in the Ethernet ring network. When a single fault occurs in the link inside the switch in the ring network, the standby main node can be quickly converted into a new main node, a new ring network is established by utilizing the RPL link, the continuous operation of a ring network protocol is maintained, the function of the network can be recovered deterministically within a certain time, and the availability requirement of the industrial network is met.
Description of the drawings:
fig. 1 is a schematic diagram of an ethernet ring network with an automatic protection switching function in the prior art;
fig. 2 is a schematic diagram of an EAPS ethernet ring network with active/standby switching according to an exemplary embodiment;
fig. 3 is a schematic diagram illustrating an EAPS ethernet ring network with active/standby switching according to an exemplary embodiment;
fig. 4 is a schematic diagram illustrating an EAPS ethernet ring network with active/standby switching according to an exemplary embodiment;
fig. 5 is a schematic diagram illustrating an EAPS ethernet ring network with active/standby switching according to an exemplary embodiment;
fig. 6 is a schematic diagram of an EAPS ethernet ring network with active/standby switching according to an exemplary embodiment.
Detailed Description
The invention is further illustrated by the following examples in conjunction with the accompanying drawings:
in order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
The main node in the ring network is the core of the normal operation of the whole protocol, once the main node is abnormal, the whole ring network protocol can not be operated normally.
On the basis of the existing EAPS scheme, the invention adds a high-reliability main/standby switching technology, which is specifically shown in the following figure 2:
in the technical scheme, an RPL protection link configuration is added, a transmission node directly connected with a Master main port is configured into a Master-owner (for short, Master-o) through a command, a transmission node directly connected with a Master auxiliary port is configured into a Master _ neighbor (for short, Master-n) through a command, auxiliary ports of the Master-n and the Master-o are directly connected with the Master, the transmission node transmit1 is configured into the Master-o, the transmission node transmit5 is configured into the Master-n, and the transmit RPL port of the transmit1 and the RPL port of the transmit5 form the RPL protection link. Initially, the stp state of the RPL port of the Master-o is disabled, and the stp state of the RPL port of the Master-n is forwarding, so that the RPL protection link is ensured not to pass any flow.
The invention discloses a main/standby switching method of an EAPS Ethernet ring network, which comprises the following steps:
s1, under normal condition, the Master node periodically sends a health message from the Master port, if the message can be received from the secondary port, the loop is Complete, the Master node enters a Complete state, at this time, the stp state of the secondary port is set to a blocking state, the data message is blocked, the loop is eliminated, and simultaneously, a COMP-FLUSH-FDB message is sent to inform all transmission nodes to clear the FDB table. At the moment, the Master-o and the Master-n still take the role of a common transmission node to participate in the operation of the ring network, and the states of the Master-o and the Master-n are both transmit states.
Further, in step S1, MAC negotiation is performed between Master-o and Master-n, both Master-o and Master-n periodically send special health messages from the primary port and the secondary port at a timing of 1 second (the first reserved field of the health message is set to 0xaa), Master-n and Master-o receive the special health messages, record the MAC address of the message source, store the message source to the local, send the special health message with reserved field of 0xbb as a response, Master-o and Master-n receive the response message, and stop sending the special health message with reserved field of 0 xaa. At which point the MAC negotiation is complete. As described above in fig. 1.
S2, if the Master-o secondary port link down, Master-o enters into a list state, the primary port will send a link-down message (the rpl port does not participate in the ring network operation, only if the role of the rpl port is changed into the secondary port, the rpl port will participate in the ring network operation, so the link-down message will not be triggered to send even if the rpl port link down), at this time, if the Master-n primary port receives the link-down message, and the message source MAC address is the MAC negotiated and stored in the MAC in S1, it indicates that all transmission nodes between the Master-o primary port and the Master-n primary port have no link failure, at this time, Master-n also enters into a list state, and monitors the link state between the secondary port and the Master node.
Further, in step S2, the Master primary port will also detect link down, the secondary port will become forwarding state, and continuously send 3 COMM-FLUSH-FDB messages from the secondary port to notify other transmission nodes of clearing the FDB table, and at this time, there are the following scenarios for triggering the primary and secondary switching:
s2-1, if the secondary port of the Master-n node in the list state has no link failure and does not receive the COMM-FLUSH-FDB message sent by the Master node within 5 seconds, the primary port actively sends a link-down message, the Master-o receives the link-down message, and the message source MAC address is equal to the MAC negotiation address (indicating that no link failure exists in the transmission node between the Master-o primary port of the ring network and the Master-n primary port), at this time, if the Master-o is not in the list state, the Master-slave switching is set to the list state, otherwise, the Master-o working mode is switched to the primary node.
S2-2, if the Master-n node secondary port link down, its Master port actively sends link-down message, Master-o receives the link-down message, and message source MAC address is equal to MAC negotiation address (indicating that there is no link failure in the transmission node between the Master-o Master port and the Master-n Master port), at this time, if Master-o is not in list state, it is in list state, otherwise, it triggers the Master-slave switch, the Master-o working mode is switched to Master node.
S2-3, Master-o triggers the main/standby switching flow: master-o becomes a main node, an stp state of an rpl port is set as blocking, then the rpl port and a secondary port are subjected to role switching, the main port periodically sends a health message, the secondary port sends 2 health messages, if the secondary port receives the health message, the node state is changed into a Complete state, and a COMP-FLUSH-FDB message is sent from the secondary port to inform other transmission nodes of clearing an FDB table. If the Master-n receives the health message and the message source MAC address is the MAC negotiation address, setting the state of the Master-n as the switch state, and exchanging the roles of the rpl port and the secondary port. The new ring network is shown in figure 3 below.
Wherein, the Transmit state, the switch state and the listen state are 3 new-added states only owned by Master-o and Master-n. The new status is described as follows:
listen state: one of the Master port or the auxiliary port of the Master node fails or the control message is not passed. Master-o and Master-n are in the Master node failure monitoring state at this time.
Transmit status: master's primary and secondary ports are normal. Master-o and Master-n are in normal transmission node state at this time.
Switch status: the Master port and the slave port both fail or the control message is not passed, and the ring network is in the switching state at this time. The Master-o Master node is in Complete or failed state, and the Master-n transmission node is in Switch state.
S3, if the Master-o secondary port state is link up, but the Health message sent by the Master node cannot be received in the 3 times Health message sending period, the Master-n cannot receive the Health message, the Master-n enters a listen state, the Master-o directly triggers the Master-slave switching, the Master-o switching working mode is the Master Master node, and the switching process is the same as the S2-3.
And S4, adding a manual-switch command, manually triggering main-standby switching, designating any transmission node as a Master node, sending a health message from a new Master node main port, and switching the working mode into the transmission node if the old Master node receives the health message but the message source MAC address is not self. If a manual-switch command is executed on Master-o or Master-n, it may be selected whether to enable the RPL link. As shown in fig. 4 below, the Transmit node Transmit2 is configured as a Master node, and the Master already existing in the ring network automatically switches the operating mode to the Transmit node.
S5, in step S2, if the Master-o failure port recovers link up and receives health message, the Master-backup reverse is triggered, the Master-o working mode is switched to the transmission node, the RPL port and the secondary port interchange roles, the RPL port is set to disabled state, and the RPL link is blocked again. The main port of the system sends a link-up message, the Master-n main port receives the link-up message, and the message source MAC address is the MAC address negotiated by the MAC in S1, the roles of the rpl port and the auxiliary port are exchanged, at this time, if the auxiliary port is the link down, the node state is set to be the list state, as shown in the following figure 5, otherwise, the node state is set to be the transmit state, as shown in the above figure 2.
Further, in step S5, if the Master-n secondary port recovers the link up, the primary port sends a link-up message, the rpl port and the secondary port perform role exchange, the node state is list, and once it receives the health message sent by the old Master or the link-up message matched with the MAC negotiation address, the node state is transmit. If the Master-o Master port receives the link-up message and the source MAC in the message is the MAC address negotiated by the MAC in S1, the Master-slave reverse is triggered, the Master-o working mode is switched to the transmission node, the RPL port and the slave port are role-switched, the RPL port is set to the disabled state, and the RPL link is re-blocked, at this time, if the slave port is the link up, the state is changed to transmit, as shown in fig. 2, otherwise, the state is list, as shown in fig. 6. The old Master node periodically sends a health message from the main port, if the auxiliary port receives the message, the auxiliary port is set to be in a blocking state, the Master node enters a Complete state and sends a COMP-FLUSH-FDB message to inform other transmission nodes of clearing the FDB table.
The foregoing is only a preferred embodiment of the present invention, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements are also considered to be within the scope of the present invention.

Claims (9)

1. A Master-slave switching method of an EAPS Ethernet ring is characterized in that an RPL protection link configuration is added in the EAPS Ethernet ring, a transmission node directly connected with a Master Master port is configured into a Master-owner through a command, a transmission node directly connected with a Master slave port is configured into a Master-neighbor, and slave ports of the Master-neighbor and the Master-owner are directly connected with the Master through the command.
2. The method of claim 1, comprising the following steps:
s1, under normal condition, the Master node periodically sends a health message from the Master port, if the message can be received from the secondary port, the loop is Complete, the Master node enters a Complete state, the stp state of the secondary port is set to a blocking state, a data message is blocked, the loop is eliminated, and simultaneously, a COMP-FLUSH-FDB message is sent to inform all transmission nodes of clearing the FDB table;
s2, if the Master-inner secondary port is link down, the Master-inner enters a list state, the Master-inner main port sends a link-down message, if the Master-inner main port receives the link-down message and the message source MAC address is the MAC negotiated and stored by the MAC in the step S1, the message source MAC address indicates that all transmission nodes between the Master-inner main port and the Master-inner main port have no link failure, and at the moment, the Master-inner enters the list state, and the link state between the Master-inner secondary port and the Master node is monitored;
s3, if the Master-owner secondary port state is link up, and the Health message sent by the Master node cannot be received in a 3 times Health message sending period, the Master-neighbor will also not receive the Health message, the Master-neighbor enters into a list state, the Master-owner directly triggers the main/standby switching, and the Master-owner switching working mode is the Master Master node;
s4, adding a manual-switch command, manually triggering main-standby switching, designating any transmission node as a Master node, sending a health message from a new Master port, and switching the working mode into the transmission node if the old Master node receives the health message but the message source MAC address is not self; if the manual-switch command is executed on the Master-owner or the Master-neighbor, whether the RPL link is enabled or not is selected;
s5, in step S2, if the Master-owner fault port recovers the link up and receives the health message, the Master-slave reverse is triggered, the Master-owner working mode is switched to a transmission node, the RPL main port and the RPL auxiliary port exchange roles, the RPL main port is set to a disabled state, and the RPL link is blocked again; and the rpl main port sends a link-up message, the Master-neighbor main port receives the link-up message, and the message source MAC address is the MAC address negotiated by the MAC in S1, the rpl main port and the rpl auxiliary port are subjected to role exchange, at the moment, if the auxiliary port is a link down, the node state is set to be a listen state, and if not, the node state is set to be a transmit state.
3. The method as claimed in claim 2, wherein in step S1, MAC negotiation is performed between the Master-owner and the Master-neighbor, the Master-owner and the Master-neighbor both periodically send special health messages from the Master port and the slave port at a timing of 1 second, the Master-neighbor and the Master-owner receive the special health messages, record a message source MAC address, store the message source MAC address to the local, send the special health message with a reserved field of 0xbb as a response, the Master-owner and the Master-neighbor receive the response message, and stop sending the special health message with a reserved field of 0 xaa.
4. The method according to claim 3, wherein in step S2, the Master primary port also detects link down, the Master secondary port changes to forwarding state, and continuously sends 3 COMM-FLUSH-FDB messages from the Master secondary port to notify other transmission nodes of clearing the FDB table.
5. The method according to claim 4, wherein the process of triggering the active/standby switch reports the following steps:
s2-1, if the secondary port of the Master-neighbor node in the list state has no link failure and does not receive the COMM-FLUSH-FDB message sent by the Master node within 5 seconds, the Master-neighbor primary port actively sends a link-down message, the Master-owner receives the link-down message, and the message source MAC address is equal to the MAC negotiation address, at this time, if the Master-owner is not in the list state, the Master-owner switching is set, otherwise, the Master-owner switching mode is triggered to be switched into the primary node;
s2-2, if the Master-neighbor node secondary port link down, the Master-neighbor Master port actively sends a link-down message, the Master-owner receives the link-down message, and the message source MAC address is equal to the MAC negotiation address, at this time, if the Master-owner is not in a list state, the state is set to a list state, otherwise, the Master-backup switching is triggered, and the Master-owner working mode is switched to the Master node;
s2-3, Master-owner trigger main/standby switch flow is: the Master-winner becomes a main node, the stp state of the rpl port is blocking, then the roles of the rpl main port and the rpl auxiliary port are exchanged, the rpl main port periodically sends a health message, the rpl auxiliary port sends 2 health messages, if the rpl auxiliary port receives the health message, the rpl node state is changed into a Complete state, and a COMP-FLUSH-FDB message is sent from the rpl auxiliary port to inform other transmission nodes of clearing an FDB table; if the Master-neighbor receives the health message and the message source MAC address is the MAC negotiation address, setting the state of the Master-neighbor as the switch state, and exchanging the roles of the rpl main port and the rpl auxiliary port.
6. The active/standby switching method of an EAPS Ethernet ring network as claimed in claim 5, wherein said Listen state is: one of the Master port or the auxiliary port of the Master node fails or the control message is not passed; the Master-owner and the Master-n are in the Master node failure monitoring state at this time.
7. The method according to claim 5, wherein the Transmit state is: the Master port and the auxiliary port are normal; at this time, Master-owner and Master-n are in a normal transmission node state.
8. The method according to claim 5, wherein the Switch state is: both the Master port and the slave port of the Master fail or the control message is not passed, and the ring network is in a switching state at the moment; the Master-owner main node is in Complete or failed state, and the Master-neighbor transmission node is in Switch state.
9. The method according to any one of claims 2 to 8, wherein in step S5, if the Master-neighbor port of the Master-neighbor recovers the link up, the Master port sends a link-up message, the rpl port and the rpl neighbor port exchange roles, the node state is list, and once it receives the health message sent by the old Master or the link-up message matching the MAC negotiation address, the node state is transmit state; if the Master-owner main port receives the link-up message and the source MAC in the message is the MAC address negotiated by the MAC in S1, triggering main-standby reversal, switching the Master-owner working mode into a transmission node, exchanging roles of a RPL port and an auxiliary port, setting the RPL port to be in a disabled state, re-blocking an RPL link, and if the auxiliary port is the link up, changing the state into transmit, otherwise, setting the state to be list; the old Master node periodically sends a health message from the main port, if the auxiliary port receives the message, the auxiliary port is set to be in a blocking state, the Master node enters a Complete state and sends a COMP-FLUSH-FDB message to inform other transmission nodes of clearing the FDB table.
CN201910799403.XA 2019-08-27 2019-08-27 Main/standby switching method of EAPS Ethernet ring network Active CN110635940B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910799403.XA CN110635940B (en) 2019-08-27 2019-08-27 Main/standby switching method of EAPS Ethernet ring network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910799403.XA CN110635940B (en) 2019-08-27 2019-08-27 Main/standby switching method of EAPS Ethernet ring network

Publications (2)

Publication Number Publication Date
CN110635940A true CN110635940A (en) 2019-12-31
CN110635940B CN110635940B (en) 2022-04-19

Family

ID=68969324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910799403.XA Active CN110635940B (en) 2019-08-27 2019-08-27 Main/standby switching method of EAPS Ethernet ring network

Country Status (1)

Country Link
CN (1) CN110635940B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113285826A (en) * 2021-05-18 2021-08-20 南京信息职业技术学院 Ring network protection switching method based on role switching
CN114500117A (en) * 2022-04-15 2022-05-13 北京全路通信信号研究设计院集团有限公司 Looped network Master configuration error judgment method and device based on looped network storm flow characteristics
CN115567343A (en) * 2022-09-21 2023-01-03 浪潮思科网络科技有限公司 Ethernet ring network main/standby switching method, equipment and medium based on MLAG

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127653A (en) * 2006-08-14 2008-02-20 中兴通讯股份有限公司 Ethernet loop device with backup and implementation method for master device backup
US20090268610A1 (en) * 2007-09-25 2009-10-29 Shaoyong Wu Ethernet ring system, transit node of ethernet ring system and initialization method thereof
CN106059824A (en) * 2016-06-30 2016-10-26 杭州华三通信技术有限公司 Fault processing method and device
CN108322375A (en) * 2017-12-27 2018-07-24 瑞斯康达科技发展股份有限公司 A kind of Ethernet ring protection switching reverse method, node and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127653A (en) * 2006-08-14 2008-02-20 中兴通讯股份有限公司 Ethernet loop device with backup and implementation method for master device backup
US20090268610A1 (en) * 2007-09-25 2009-10-29 Shaoyong Wu Ethernet ring system, transit node of ethernet ring system and initialization method thereof
CN106059824A (en) * 2016-06-30 2016-10-26 杭州华三通信技术有限公司 Fault processing method and device
CN108322375A (en) * 2017-12-27 2018-07-24 瑞斯康达科技发展股份有限公司 A kind of Ethernet ring protection switching reverse method, node and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113285826A (en) * 2021-05-18 2021-08-20 南京信息职业技术学院 Ring network protection switching method based on role switching
CN113285826B (en) * 2021-05-18 2022-11-29 南京信息职业技术学院 Ring network protection switching method based on role switching
CN114500117A (en) * 2022-04-15 2022-05-13 北京全路通信信号研究设计院集团有限公司 Looped network Master configuration error judgment method and device based on looped network storm flow characteristics
CN114500117B (en) * 2022-04-15 2022-07-05 北京全路通信信号研究设计院集团有限公司 Looped network Master configuration error judgment method and device based on looped network storm flow characteristics
CN115567343A (en) * 2022-09-21 2023-01-03 浪潮思科网络科技有限公司 Ethernet ring network main/standby switching method, equipment and medium based on MLAG
CN115567343B (en) * 2022-09-21 2024-04-16 浪潮思科网络科技有限公司 Ethernet main/standby switching method, equipment and medium based on MLAG

Also Published As

Publication number Publication date
CN110635940B (en) 2022-04-19

Similar Documents

Publication Publication Date Title
CN100409634C (en) Fast ring network protecting method and system
KR101204130B1 (en) Fault processing method, system and exchanging device based on industry ethernet network
CN110635940B (en) Main/standby switching method of EAPS Ethernet ring network
CN101652963B (en) Method for reconfiguring a communications network
CN101686158B (en) Control method for Ethernet loop guard fault recovery and Ethernet loop node
CN100450036C (en) Method and apparatus for preventing loop when RRPP and partial STP network damage recovery
JP2005130049A (en) Node
JP4628945B2 (en) Layer 2 network
CN100454880C (en) Method and system of realizing rig network protection
CN102394787A (en) Dual-link redundancy control method based on EPA switch
JP2009206891A (en) Layer 2 ring network system and management method therefor
CN101141381B (en) Network node and method of reducing medium access control address learning in looped network thereof
CN101610193A (en) Ethernet ring network finds and generates the method for ring automatically
WO2010031210A1 (en) Method for forwarding a protocol frame in spanning rings and the shared nodes in ethernet network multi-rings
CN101626335B (en) Data protection method of dual-connection network
CN101714939A (en) Fault treatment method for Ethernet ring network host node and corresponding Ethernet ring network
CN101841450A (en) Method and topological structure for realizing stable communication by forming multiple ring topologies into intersecting ring
WO2010031295A1 (en) Control method for ethernet failure recovery
JP2003258822A (en) Packet ring network and inter-packet ring network connection method used in the same
WO2013078997A1 (en) Method for processing fault in mrp ring network, and mrp ring network
CN101641915B (en) Method for reconfiguring a communication network
CN101534234A (en) Interworking Ethernet ring network protection method and system
CN102025584A (en) G.8032-based ring network protecting method and system
CN101848128B (en) Method, system and topological structure for realizing stabilized communication among multi-ring topologies
JP5004758B2 (en) Layer 2 network and network connection device

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