ERPS eliminates loops at the link layer of an Ethernet network. ERPS works for ERPS rings. There are several nodes in an ERPS ring. ERPS blocks the RPL owner port and controls common ports to switch the port status between Forwarding and Discarding and eliminate loops. ERPS uses the control VLAN, data VLAN, and Ethernet Ring Protection (ERP) instance.
On the network shown in Figure 1, SwitchA through SwitchD constitute a ring and are dual-homed to the upstream network. This access mode will cause a loop on the entire network. To eliminate redundant links and ensure link connectivity, ERPS is used to prevent loops.
ERPS can be deployed on the network shown in Figure 1.
An ERPS ring consists of interconnected Layer 2 switching devices configured with the same control VLAN.
An ERPS ring can be a major ring or a sub-ring. By default, an ERPS ring is a major ring. The major ring is a closed ring, whereas a sub-ring is a non-closed ring. The major ring and sub-ring are configured using commands. On the network shown in Figure 2, SwitchA through SwitchD constitute a major ring, and SwitchC through SwitchF constitute a sub-ring.
Only ERPSv2 supports sub-rings.
A node refers to a Layer 2 switching device added to an ERPS ring. A maximum of two ports on each node can be added to the same ERPS ring. SwitchA through SwitchD in Figure 2 are nodes in an ERPS major ring.
RPL owner port
An RPL owner port is responsible for blocking traffic over the Ring Protection Link (RPL) to prevent loops. An ERPS ring has only one RPL owner port.
When the node on which the RPL owner port resides receives an RAPS PDU indicating a link or node fault in an ERPS ring, the node unblocks the RPL owner port. Then the RPL owner port can send and receive traffic to ensure nonstop traffic forwarding.
The link where the RPL owner port resides is the RPL.
RPL neighbor port
An RPL neighbor port is directly connected to an RPL owner port.
Both the RPL owner port and RPL neighbor ports are blocked in normal situations to prevent loops.
If an ERPS ring fails, both the RPL owner and neighbor ports are unblocked.
The RPL neighbor port helps reduce the number of FDB entry updates on the device where the RPL neighbor port resides.
Common port
Common ports are ring ports other than the RPL owner and neighbor ports.
A common port monitors the status of the directly connected ERPS link and sends RAPS PDUs to notify the other ports of its link status changes.
Forwarding: forwards user traffic and sends and receives RAPS PDUs.
Discarding: only sends and receives RAPS PDUs.
A control VLAN is configured in an ERPS ring to transmit RAPS PDUs.
Each ERPS ring must be configured with a control VLAN. After a port is added to an ERPS ring configured with a control VLAN, the port is added to the control VLAN automatically.
Different ERPS rings must use different control VLANs.
Unlike control VLANs, data VLANs are used to transmit data packets.
On a Layer 2 device running ERPS, the VLAN in which RAPS PDUs and data packets are transmitted must be mapped to an Ethernet Ring Protection (ERP) instance so that ERPS forwards or blocks the packets based on configured rules. If the mapping is not configured, the preceding packets may cause broadcast storms on the ring network. As a result, the network becomes unavailable.
Guard timer
After a faulty link or node recovers or a clear operation is executed, the device sends RAPS No Request (NR) messages to inform the other nodes of the link or node recovery and starts the Guard timer. Before the Guard timer expires, the device does not process any RAPS (NR) messages to avoid receiving out-of-date RAPS (NR) messages. After the Guard timer expires, if the device still receives an RAPS (NR) message, the local port enters the Forwarding state.
WTR timer
If an RPL owner port is unblocked due to a link or node fault, the involved port may not go Up immediately after the link or node recovers. Blocking the RPL owner port may cause network flapping. To prevent this problem, the node where the RPL owner port resides starts the wait to restore (WTR) timer after receiving an RAPS (NR) message. If the node receives an RAPS Signal Fail (SF) message before the timer expires, it terminates the WTR timer. If the node does not receive any RAPS (SF) message before the timer expires, it blocks the RPL owner port when the timer expires and sends an RAPS (no request, root blocked) message. After receiving this RAPS (NR, RB) message, the nodes set their recovered ports on the ring to the Forwarding state.
Holdoff timer
On Layer 2 networks running ERPS, there may be different requirements for protection switching. For example, on a network where multi-layer services are provided, after a server fails, users may require a period of time to rectify the server fault so that clients do not detect the fault. You can set the Holdoff timer. If the fault occurs, the fault is not immediately sent to ERPS until the Holdoff timer expires.
WTB timer
The wait to block (WTB) timer starts when Forced Switch (FS) or Manual Switch (MS) is performed. Because multiple nodes on an ERPS ring may be in FS or MS state, the clear operation takes effect only after the WTB timer expires. This prevents the RPL owner port from being blocked immediately.
The WTB timer value cannot be configured. Its value is the Guard timer value plus 5. The default WTB timer value is 7s.
After link faults in an ERPS ring are rectified, re-blocking the RPL owner port depends on the switching mode:
ERPS rings use revertive switching by default.
ERPSv1 supports only revertive switching. ERPSv2 supports both revertive and non-revertive switching.Only ERPSv2 supports port blocking modes.
ERPSv2 supports single-ring and multi-ring topologies. In multi-ring topologies, both the virtual channel (VC) and non-virtual-channel (NVC) can be used to transmit RAPS PDUs in sub-rings.
On the network shown in Figure 3, a major ring is interconnected with two sub-rings. The sub-ring on the left has a VC, whereas the sub-ring on the right has an NVC.
When sub-ring links are discontiguous, VCs must be used.
On the network shown in Figure 4, links b and d belong to major rings 1 and 2 respectively; links a and c belong to the sub-ring. As links a and c are discontiguous, they cannot detect the status change between each other, so VCs must be used for RAPS PDU transmission.
RAPS PDU Transmission Mode in a Sub-ring | Advantage | Disadvantage |
---|---|---|
VC |
Applies to scenarios in which sub-ring links are discontiguous. |
Requires VC resource reservation and controls VLAN assignment from adjacent rings. |
NVC |
Does not need to reserve resources or control VLAN assignment from adjacent rings. |
Is not applicable to scenarios in which sub-ring links are discontiguous. |