Free tech learning for everyone, from basics to pro

Routing & SwitchingNetworking SecurityAdvanced

Resilient Ethernet Protocol (REP) and ring networks for industrial and campus fibre

In short: Factories, transport systems and some campus fibre runs connect switches in a ring, which spanning tree handles slowly. Cisco's Resilient Ethernet Protocol divides the ring into segments, blocks one alternate port to prevent a loop, and opens it within milliseconds when a link fails. The open-standard alternative is ITU-T G.8032 (ERPS).

Why rings?

In a factory, along a railway, a pipeline or a road tunnel, switches are strung out in a line, often hundreds of metres apart. Running two cables from every switch back to a core is expensive. Connecting them in a ring means every switch has two paths, and one cable cut does not isolate anyone. The catch is that a ring is a loop, so one port must block, and when a link breaks the blocked port must open very quickly so machines and cameras keep working.

Rapid spanning tree can handle rings, but convergence depends on the ring size and can take a second or more. Industrial control traffic often needs recovery in well under that.

A REP segment in a ringEdge port Asegment startsSwitch 2forwardingSwitch 3alternate port blocksSwitch 4forwardingEdge port Bsegment ends
Figure 1. One port in the segment blocks to break the loop. When a link fails, it opens within about 50 to 250 ms.

How REP works

  • A segment is a chain of switches connected by REP-enabled ports. Each segment has an ID.
  • The two ends of a segment are edge ports. In a ring connected to a core, the edge ports are often on the core or distribution switches.
  • Within the segment, one port is chosen as the alternate port and blocks. You can choose where with preferred settings, so the block is in a sensible place.
  • Switches exchange REP link status messages. When any link in the segment fails, the neighbours flood a notification, and the alternate port starts forwarding. Typical convergence is 50 to 250 milliseconds.
  • REP ports do not run spanning tree; the segment's edge ports can still connect to an STP network.

Basic configuration

! On the switches in the ring (IE or Catalyst with REP support)
rep admin vlan 2
interface GigabitEthernet1/1
 switchport mode trunk
 rep segment 10
interface GigabitEthernet1/2
 switchport mode trunk
 rep segment 10
!
! On the edge switch ports
interface GigabitEthernet1/1
 switchport mode trunk
 rep segment 10 edge primary
 rep preempt delay 60

show rep topology shows every port in the segment and which one is the alternate (blocking) port. show rep interface gives detail per port.

REP compared with other options

  • Rapid PVST+ or MST: standard and familiar, but slower in big rings.
  • ITU-T G.8032 (ERPS): an open standard ring protocol supported by Cisco, Juniper, Hirschmann, Siemens and others, with similar sub-50 ms targets. Choose it when the ring mixes vendors.
  • PRP and HSR: industrial standards (IEC 62439-3) that send every frame twice over two paths for zero-loss failover, used in substations and critical automation.

Real-world example: the bottling plant

A bottling plant's production line used a ring of 14 industrial switches with rapid spanning tree. When a forklift damaged a fibre, the line's controllers lost contact for about two seconds and every machine stopped safely, costing 40 minutes to restart. After moving the ring to REP, a test cable pull caused a 90 ms interruption, below the controllers' timeout, and the line kept running.

Practice

Which port in a REP segment blocks to prevent a loop?
The alternate port.
Which open standard ring protocol is the multi-vendor alternative to REP?
ITU-T G.8032 (Ethernet Ring Protection Switching).
Why are rings popular in industrial networks?
Switches are spread along a line, and a ring gives every switch two paths without running two cables back to a core.

Key takeaways

  • Rings give long chains of switches two paths at low cabling cost.
  • REP divides the ring into segments and blocks one alternate port.
  • Failover is typically 50 to 250 ms, faster than spanning tree in large rings.
  • G.8032 is the multi-vendor standard; PRP and HSR give zero-loss redundancy.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: