Related Documentation
- EX, MX Series
- Ethernet Ring Protection Switching Overview
- EX Series
- Example: Configuring Ethernet Ring Protection Switching on EX Series Switches
- Configuring Ethernet Ring Protection Switching (CLI Procedure)
- MX Series
- Configuring Ethernet Ring Protection Switching
- Example: Ethernet Ring Protection Switching Configuration on MX Routers
- Additional Information
- Ethernet Interfaces
Understanding Ethernet Ring Protection Switching Functionality
Acronyms
The following acronyms are used in the discussion about Ethernet ring protection switching:
- MA—Maintenance association
- MEP—Maintenance association end point
- OAM—Operations, administration, and management (Ethernet ring protection switching uses connectivity fault management daemon)
- FDB—MAC forwarding database
- STP—Spanning Tree Protocol
- RAPS—Ring automatic protection switching
- WTR—Wait to restore
- RPL—Ring protection link
Ring Nodes
Multiple nodes are used to form a ring. There are two different node types:
- Normal node—The node has no special role on the ring.
- RPL owner node—The node owns the RPL and blocks or unblocks traffic over the RPL. This node also initiates the RAPS message.
Ring Node States
There are three different states for each node of a specific ring:
- init—Not a participant of a specific ring.
- idle—No failure on the ring; the node is performing normally. For a normal node, traffic is unblocked on both ring ports. For the RPL owner, traffic is blocked on the ring port that connects to the RPL and unblocked on the other ring port.
- protection—A failure occurred on the ring. For a normal node, traffic is blocked on the ring port that connects to the failing link and unblocked on working ring ports. For the RPL owner, traffic is unblocked on both ring ports if they connect to non-failure links.
There can be only one RPL owner for each ring. The user configuration must guarantee this, because the APS protocol cannot check this.
Failure Detection
Ethernet ring operation depends on quick and accurate failure detection. The failure condition signal failure (SF) is supported. For SF detection, an Ethernet continuity check MEP must be configured for each ring link. For fast protection switching, a 10-ms transmission period for this MEP group is supported. OAM monitors the MEP group's MA and reports SF or SF clear events to the Ethernet ring control module. For this MEP group, the action profile must be configured to update the interface device IFF_LINKDOWN flag. OAM updates the IFF_LINKDOWN flag to notify the Ethernet ring control module.
Logical Ring
This feature currently supports only the physical ring, which means that two adjacent nodes of a ring must be physically connected and the ring must operate on the physical interface, not the VLAN.
FDB Flush
When ring protection switching occurs, normally an FDB flush is executed. The Ethernet ring control module uses the same mechanism as the STP to trigger the FDB flush. The Ethernet ring control module controls the ring port physical interface's default STP index to execute the FDB flush.
Traffic Blocking and Forwarding
Ethernet ring control uses the same mechanism as the STP to control forwarding or discarding of user traffic. The Ethernet ring control module sets the ring port physical interface default STP index state to forwarding or discarding in order to control user traffic.
RAPS Message Blocking and Forwarding
The router or switch treats the ring automatic protection switching (RAPS) message the same as it treats user traffic for forwarding RAPS messages between two ring ports. The ring port physical interface default STP index state also controls forwarding RAPS messages between the two ring ports. Other than forwarding RAPS messages between the two ring ports, as shown in Figure 1, the system also needs to forward the RAPS message between the CPU (Ethernet ring control module) and the ring port. This type of forwarding does not depend on the ring port physical interfaces’ STP index state. The RAPS message is always sent by the router or switch through the ring ports, as shown in Figure 2. A RAPS message received from a discarding ring port is sent to the Ethernet ring control module, but is not sent to the other ring port.
Figure 1: Protocol Packets from the Network to the Router

Figure 2: Protocol Packets from the Router or Switch to the Network

Juniper Networks EX Series switches and Juniper Networks MX Series routers use different methods to achieve these routes.
The switches use forwarding database entries to direct the RAPS messages. The forwarding database entry (keyed by the RAPS multicast address and VLAN) has a composite next hop associated with it—the composite next hop associates the two ring interfaces with the forwarding database entry and uses the split horizon feature to prevent sending the packet out on the interface that it is received on. This is an example of the forwarding database entry relating to the RAPS multicast MAC (a result of the show ethernet-switching table detail command):
VLAN: v1, Tag: 101, MAC: 01:19:a7:00:00:01, Interface: ERP
Interfaces: ge-0/0/9.0, ge-0/0/3.0
Type: Static
Action: Mirror
Nexthop index: 1333
The routers use an implicit filter to achieve ERP routes. Each implicit filter binds to a bridge domain. Therefore, the east ring port control channel and the west ring port control channel of a particular ring instance must be configured to the same bridge domain. For each ring port control channel, a filter term is generated to control RAPS message forwarding. The filter number is the same as the number of bridge domains that contain the ring control channels. If a bridge domain contains control channels from multiple rings, the filter related to this bridge domain will have multiple terms and each term will relate to a control channel. The filter has command parts and control-channel related parts, as follows:
- Common terms:
term 1: if [Ethernet type is not OAM Ethernet type (0x8902)
] { accept packet }term 2: if [source MAC address belongs to this bridge]
{ drop packet, our packet loop through the ring and come back
to home}term 3: if [destination is the RAPS PDU multicast address(0x01,0x19,0xa7,
0x00,0x00,0x01] AND[ring port STP status is DISCARDING]
{ send to CPU }
- Control channel related terms:
if [destination is the RAPS PDU multicast address(0x01,0x19,0xa7,0x00,0x00,
0x01] AND[ring port STP status is FORWARDING] AND [Incoming interface
IFL equal to control channel IFL]
{ send packet to CPU and send to the other ring port }
default term: accept packet.
Dedicated Signaling Control Channel
For each ring port, a dedicated signaling control channel with a dedicated VLAN ID must be configured. In Ethernet ring configuration, only this control logical interface is configured and the underlying physical interface is the physical ring port. Each ring requires that two control physical interfaces be configured. These two logical interfaces must be configured in a bridge domain for routers (or the same VLAN for switches) in order to forward RAPS protocol data units (PDUs) between the two ring control physical interfaces. If the router control channel logical interface is not a trunk port, only control logical interfaces will be configured in ring port configuration. If this router control channel logical interface is a trunk port, in addition to the control channel logical interfaces, a dedicated VLAN ID must be configured for routers. For EX Series switches, always specify either a VLAN name or VLAN ID for all links.
RAPS Message Termination
The RAPS message starts from the originating node, travels through the entire ring, and terminates in the originating node unless a failure is present in the ring. The originating node must drop the RAPS message if the source MAC address in the RAPS message belongs to itself. The source MAC address is the node's node ID.
Multiple Rings
The Ethernet ring control module supports multiple rings in each node (two logical interfaces are part of each ring). However, interconnection of multiple rings is not supported in this release. The interconnection of two rings means that two rings may share the same link or share the same node.
Node ID
For each node in the ring, a unique node ID identifies each node. The node ID is the node's MAC address.
For routers only, you can configure this node ID when configuring the ring on the node or automatically select an ID such as STP. In most cases, you will not configure this and the router will select a node ID, like STP does. It should be the manufacturing MAC address. The ring node ID should not be changed, even if you change the manufacturing MAC address. Any MAC address can be used if you make sure each node in the ring has a different node ID. The node ID on EX Series switches is selected automatically and is not configurable.
Bridge Domains with the Ring Port (MX Series Routers Only)
On the routers, the protection group is seen as an abstract logical port that can be configured to any bridge domain. Therefore, if you configure one ring port or its logical interface in a bridge domain, you must configure the other related ring port or its logical interface to the same bridge domain. The bridge domain that includes the ring port acts as any other bridge domain and supports the IRB Layer 3 interface.
Related Documentation
- EX, MX Series
- Ethernet Ring Protection Switching Overview
- EX Series
- Example: Configuring Ethernet Ring Protection Switching on EX Series Switches
- Configuring Ethernet Ring Protection Switching (CLI Procedure)
- MX Series
- Configuring Ethernet Ring Protection Switching
- Example: Ethernet Ring Protection Switching Configuration on MX Routers
- Additional Information
- Ethernet Interfaces
Published: 2014-04-23
Related Documentation
- EX, MX Series
- Ethernet Ring Protection Switching Overview
- EX Series
- Example: Configuring Ethernet Ring Protection Switching on EX Series Switches
- Configuring Ethernet Ring Protection Switching (CLI Procedure)
- MX Series
- Configuring Ethernet Ring Protection Switching
- Example: Ethernet Ring Protection Switching Configuration on MX Routers
- Additional Information
- Ethernet Interfaces