HSR High-availability Seamless Redundancy

Similar documents
Building Resilient IEC Communication Networks with Next Generation Redundancy Technologies

SoCe. Introduction to HSR/PRP/ IEEE 1588(PTP) System-on-Chip engineering V: UCA STICK

Peter Kreutzer, PSSAM/Automation Power World 2011 New Delhi, Secure and reliable Redundant communication network and cyber security

Importance of Interoperability in High Speed Seamless Redundancy (HSR) Communication Networks

automation network Prof. Dr. Hubert Kirrmann Diana Ilie ABB Research Center, Baden, Switzerland Claudio Honegger

Ethernet Network Redundancy in SCADA and real-time Automation Platforms.

TR IEC Deterministic Networking

MiCOM Pxxx PRP. Pxxx/EN PR/B11. Update Documentation. Version Software Version See Table 2 Hardware Suffix See Table 2

High Availability Seamless Ring Protocol. Implementation in FPGA

A plane can be uniquely determined by three non-collinear points - how many do we really need?

Migration Paths for IEC Substation Communication Networks Towards Superb Redundancy Based on Hybrid PRP and HSR Topologies

User Manual. Redundancy Configuration Embedded Ethernet Switch (EES) UM RedundConfig EES Release /2013

Providers of a Comprehensive Portfolio of Solutions for Reliable Ethernet and Synchronization in the Energy Market. Industrial

User Manual. Redundancy Configuration Rail Switch Power Enhanced (HiOS-2S/2A/3S RSPE) UM RedundConfig HiOS-2S/2A/3S RSPE Release 4.

User Manual. Redundancy Configuration HiOS-2S-2A-3S RSPE (Rail Switch Power Enhanced) UM RedundConfig HiOS-2S-2A-3S RSPE Release 5.

Ahead of the challenge, ahead of the change. Beyond classical substation How seamless communication networks can be used in special applications

System-on-Chip engineering. The SoCe Difference. FPGA based Solutions for Communications in Critical Systems

Chapter 16: Switched Ethernet in Automation. Wenbo Qiao

Jim McGhee, Utility Market Manager, RuggedCom Inc.

FHT: A Novel Approach for Filtering High-Availability Seamless Redundancy (HSR) Traffic

FRS IPO CONFIGURATIONS

Anca Cioraca, Ilia Voloh, Mark Adamiak GE Grid Automation

1 Introduction. 2 Reasons for media redundancy

User Manual. Redundancy Configuration Embedded Ethernet Switch (EES) UM RedundConfig EES Release /2012

Software Implementation of Two Seamless Redundant Topologies in a Digital Protection System based on IEC

Application RTU560 RJ45 RJ45. Management. Switch RJ45 RJ45. Switch 560NMS34 SDSL. Data Sheet Switch 560NMS34. Port 1. Port 2. Port 3.

DRAFT. Dual Time Scale in Factory & Energy Automation. White Paper about Industrial Time Synchronization. (IEEE 802.

Layer 2 functionality bridging and switching

IEEE 1588v2 Time Synchronization in Energy Automation Applications Case Studies from China

Smart Grid Communications. WFCS 2016 May 3-6, 2016, Aveiro, Portugal

Networking interview questions

COMMUNICATION NETWORKS. FOX615/612 TEGO1 IEC GOOSE Proxy Gateway interface module.

IEEE Frame Replication and Elimination for Reliability. Franz-Josef Goetz, Member of IEEE TSN TG, Siemens AG

High Available Synchronization with IEEE 802.1AS bt

CS343: Data Communication LAN Overview

WhitePaper. Switch operation. Introduction. Error Detection. Flooding. MAC Table and Packet Memory. Full Wire Speed

FLEXIBILIS REDUNDANT SWITCH (FRS)

Upgrading From a Successful Emergency Control System to a Complete WAMPAC System for Georgian State Energy System

Designed, built, and tested for troublefree operation in extreme conditions

What Protection Engineers Need to Know About Networking. ANCA CIORACA, ILIA VOLOH, MARK ADAMIAK Markham, ON, CA King of Prussia, PA GE Digital Energy

Configuring Rapid PVST+

Introduction to the Catalyst 3920

Parallel Redundancy Protocol (PRP) for IE 4000, IE 4010, and IE 5000 Switches

Kyland solution for IEEE1588 Precision Time Synchronization in Electric Utilities

INTERNATIONAL STANDARD

Configuring Interfaces and Circuits

FLEXIBILIS REDUNDANT SWITCH (FRS)

Index. Numerics. Index p priority (QoS) definition Q VLAN standard w as a region 5-54

Configuring Rapid PVST+ Using NX-OS

GUIDELINES FOR USING DEVICE LEVEL RING (DLR) WITH ETHERNET/IP. PUB00316R ODVA, Inc. Page 1 of 18

Applications & Tools. Setup and Configuration of a Redundancy via PRP and HSR SCALANCE X204 RNA, CP RNA, SOFTNET-IE RNA

Overview and Application

Features and Benefits. Certifications

RedHsrPrp. Reference Manual. Product Info. Product Manager. Author(s) Reviewer(s) - Version 0.1. Date Sven Meier.

irbx6gf Features Intelligent 6 Port HSR/PRP Ethernet Switch IEC and IEEE 1613 Compliant

Energy Infrastructure Demands Mission Critical Networking

Packet Switching on L2 (LAN Level)

JetNet 5428Gv2. Features. Industrial 24FE+4G Gigabit Managed Ethernet Switch INDUSTRIAL ETHERNET RACKMOUNT SWITCH

Introduction to Ethernet. Guy Hutchison 8/30/2006

JetNet 6528Gf. Features. Industrial 28G Full Gigabit Managed Ethernet Switch INDUSTRIAL ETHERNET RACKMOUNT SWITCH

This is a preview - click here to buy the full publication

JetNet 6528Gf. Features. Industrial 28G Full Gigabit Managed Ethernet Switch INDUSTRIAL ETHERNET RACKMOUNT SWITCH

GUARANTEED END-TO-END LATENCY THROUGH ETHERNET

Chapter 4 Configuring Switching

Features. Industrial 28G L3 Full Gigabit Managed Ethernet Switch JetNet 6828Gf INDUSTRIAL ETHERNET RACKMOUNT SWITCH

Deploying Digital Substations: Experience with a Digital Substation Pilot in North America. Harsh Vardhan, R Ramlachan GE Grid Solutions, USA

Provläsningsexemplar / Preview. Communication networks and systems for power utility automation Part 90-4: Network engineering guidelines

What LinkSec Should Know About Bridges Norman Finn

Fundamentals of Networking Introduction to Networking Devices

M242 COMPUTER NETWORS AND SECURITY

irbx6gf Features Intelligent 6 Port HSR/PRP Ethernet Switch IEC and IEEE 1613 Compliant

Document ID: FLXN111 PRODUCTS AND LICENSING

Packet Switching on L2 (LAN Level)

This document is a preview generated by EVS

Designing Non-Deterministic PAC Systems to Meet Deterministic Requirements

Risanuri Hidayat. 13/03/2012 Jurusan Teknik Elektro dan Tekn Informasi UGM

Routing Between VLANs Overview

Process Bus and Sampled Values Based Applications

802.1Q Forwarding PTP messages in an IEEE Transparent Clock Considerations in response to liaison from Q13/15

A primer on modern LANs

Substation to substation (ss2ss) GOOSE exchange for critical relay operations

CES2000 Series Industrial Carrier Ethernet Switches

Chapter 11 in Stallings 10 th Edition

Configuring STP and RSTP

Q VLAN User s Guide

Transparent Bridging and VLAN

Product features. Applications

Cisco Cisco Certified Network Associate (CCNA)

Configuring Rapid PVST+

Fundamentals of Networking. OSI & TCP/IP Model. Kuldeep Sonar 1

DD2490 p Layer 2 networking. Olof Hagsand KTH CSC

Chapter 15 Local Area Network Overview

Standard ПодробнRedundancy Using IEC 62439

Configuring STP. Understanding Spanning-Tree Features CHAPTER

Computer Networks Principles LAN - Ethernet

Routing Between VLANs Overview

More on LANS. LAN Wiring, Interface

Applications and Industry Activities

Chapter. Managed Switch Software Monitoring. In This Chapter...

CompSci 356: Computer Network Architectures. Lecture 8: Spanning Tree Algorithm and Basic Internetworking Ch & 3.2. Xiaowei Yang

Transcription:

INTERNATIONAL ELECTROTECHNICAL COMMISSION IEC 62439-3 Clause 5: HSR High-availability Zero-delay recovery fault-tolerance in Industrial Ethernet in a ring or meshed topology Prof. Dr. Hubert Kirrmann, Solutil, Switzerland 2017 February 8 2017 IEC SC65C WG15

Abstract HSR (High-availability is a Layer 2 Ethernet (IEEE 802.3) redundancy protocol provides zero switchover time in case of failure allows to chain s for cost effective networking allows complex topologies such as rings and rings of rings is easily implemented in hardware supports deterministic transmission of highest priority frames is standardized as IEC 62439-3 Clause 5 2 IEC SC65C WG15 2017 HK 2017-02-08

Objectives This standardization addresses the depability and real-time requirements of demanding applications such as substation automation and motion control. The technical solutions have been developed in IEC SC65C WG15 (highly available automation networks), resulting in IEC 62439-3, and in IEC TC57 WG10 (substation automation), for introduction into IEC 61850. Cost effective redundancy with no single point of failure and zero recovery time Fulfill the depability and real-time requirements of the most demanding applications such as substation automation and motion control Protocol-indepent, applicable to most industrial Ethernet Applicable to a variety of topologies, principally rings and rings of rings Do not require switches 3 IEC SC65C WG15 2017 HK 2017-02-08

HSR Topologies : conventions SAN singly attached (not HSR) with 2 HSR ports edge ports trunk port layer 2 bridge DANP with 2 PRP ports redbox with one single port ports 100 Mbit/s Tx 100 Mbit/s Fx 1Gbit/s Tx 1 Gbit/s Fx redbox switch (RSTP) to HSR HSR with auxiliary port GPS time server GC clock GC = grandmaster clock TC = transparent clock BC = boundary clock OC = ordinary clock NC = network clock 4 IEC SC65C WG15 2017 HK 2017-02-08

SCADA (Substation) Automation network ring (fibre or copper full duplex) with switching s GPS main grid control center GPS aux GC GCC COM GCC COM printer logger OC Ethernet full duplex singly-attached devices RedBox HSR IED IED IED IED IED bay bay bay bay bay Cost-effective: all s are switching s, there are no dedicated switches in the ring Non-ring s are attached through a RedBox. 5 IEC SC65C WG15 2017 HK 2017-02-08

HSR principle (Multicast) red arrows: A frames green arrows B frames blue arrows: standard frames cross: removal from the ring C -frame (untagged) A -frame (HSR tagged) source CPU D -frame (untagged) B -frame (HSR tagged) destinations B A destinations Nodes are arranged as a ring, each has two identical interfaces, port A and port B. For each frame to s ( C -frame), the source ss two copies over port A and B. The source removes the frames it injected into the ring. Each relays a frame it receives from port A to port B and vice-versa, except if already forwarded. The destination s consumes the first frame of a pair ( D-frame ) and discards the duplicate. If the ring is broken, frames still arrive over the intact path, with no impact on the application. Loss of a path is easily detected since duplicates cease to come. 6 IEC SC65C WG15 2017 HK 2017-02-08

HSR principle (mode U, unicast frames removal) solid arrows: unicast traffic void arrows: omitted unicast traffic cross: remove from the ring (any case) source CPU C -frame (untagged) A -frame (HSR tagged) B -frame (HSR tagged) B A destination To reduce unicast traffic, a refrains from sing a frame addressed uniquely to itself (unicast). Should this rejection fail, the frame would be discarded by the other s. Mode U may be disabled for testing purpose (network monitoring) or redundant s set-up. 7 IEC SC65C WG15 2017 HK 2017-02-08

HSR principle (mode X, multicast frame removal) source CPU C -frame (untagged) A -frame (HSR tagged) B -frame (HSR tagged) B A B A 1 2 3 4 To reduce multicast traffic, a port refrains from sing a frame if it already received a duplicate of that frame from the opposite direction. E.g. Port B in 4 does not forward the B -frame since it received previously the A -frame. Port A in 5 does not forward the A -frame since it received previously the B -frame. 5 Would this mechanism fails, the frames would still be removed by the other s or by the that originally injected the frame. Mode X is not applicable to PTP messages and to supervision messages. It may be disabled for testing purpose (network monitoring) or for redundant operation. 8 IEC SC65C WG15 2017 HK 2017-02-08

path IEC 62439-3 5 HSR Frame identification for duplicate rejection standard Ethernet frame HSR Tag original LPDU preamble sequence destination source HSR-ET size LLC payload FCS number octet position 0 6 12 14 16 18 20 time time - each frame has an HSR Ethertype, a path indicator, a size field and a sequence number, inserted as an HSR tag in the same way a VLAN tag is inserted. - the ser inserts the same sequence number in both frames of a pair, and increments the sequence counter by one for each sing from this. - the receiver keeps track of the sequence counter for each source MAC address it receives frames from. Frames with the same source and sequence number value coming from different lines are discarded. to supervise the network, a may keep a table of all other s in the network from which it receives frames. This allows to detect s absence and bus errors at the same time. - a recognize the frame it sent through its source address and sequence number 9 IEC SC65C WG15 2017 HK 2017-02-08

HSR Frames types: tag position Ethernet II 1518 octets untagged 802.3/802.2 1518 octets untagged 802.1D destination destination destination source source source HSR Tag 1520 octets HSR EtherType = 0x892F path size sequence protocol type >x0600 HSR EtherType = 0x892F path size sequence length <x0600 DSAP SSAP LLC ETPID = x8100 TCI, CFI = x8100 HSR EtherType = 0x892F path size sequence protocol type 1524 octets LPDU = 46..1500 octets LPDU = 42..1496 octets LPDU = 46..1500 octets 4 octets checksum checksum checksum 4 octets The additional six bytes of the HSR tag could generate oversize frames of more than 1522 octets. However, this is private ring traffic and does not affect Ethernet controllers. 10 IEC SC65C WG15 2017 HK 2017-02-08

Duplicate recognition Each increments the sequence number field monotonically for each frame sent. A duplicate frame is recognized in a receiver or forwarding by its: source address sequence number in the HSR tag. HSR s shall never reject a frame that they did not receive before and shall detect nearly all duplicates, but infrequent duplicates do not disturb. The duplicate detection algorithm is not specified. Hash tables, queues and tracking of sequence numbers are possible methods. PRP (IEC 62439-3) only considered discard of duplicates on a best effort basis. HSR has an improved coverage. 11 IEC SC65C WG15 2017 HK 2017-02-08

Layering in IEC 61850: HSR is indepent from stack ACSI presentation session transport network VLAN - priority link layer SV x88ba 1µs Hard Real-Time stack GOOSE x88b8 802.p1 / 802.1Q IEEE 1588 x88f7 application application application spanning tree (802.1d) PTID=8100 802.2 Soft-Time stack ICMP ARP PT=0806 1ms Client/Server services MMS ISO 9506-1:2003 ACSE ISO/IEC 8649:1996 ISO Session ISO/IEC 8245 ISO Transport RFC 1006 TCP RFC 793 IP void PT=0800 SNTP 1588 switching logic port A port B logic MAC layer 12 IEC SC65C WG15 2017 HK 2017-02-08 Ethernet A Ethernet B 1588 logic

Addresses and layer 2 redundancy Each has the same MAC address on both ports. Each operates with the same IP address(es)* for both ports. Therefore, management protocols such as ARP operate as usual and assign that MAC address to the IP address(es) of that. TCP/IP traffic is not aware of the Layer 2 redundancy, it is required to treat duplicates. * a may respond to several IP addresses 13 IEC SC65C WG15 2017 HK 2017-02-08

HSR Node Operation source destination upper layers link layer interface link redundancy entity (LRE) publisher/ subscriber applications s duplicate transport layer network layer discard duplicate applications publisher/ transport layer subscriber network layer s duplicate discard duplicate 7 switching logic ports 1 2 A 6 B 5 A 4 3 B transceivers CCW CW Ethernet link CCW CW s: the LRE ss each frame to s simultaneously over port A and port B (1), (2). forward: the switching logic res frames from one port over the other port (3),(4) except own frames (5),(6) receive: the LRE receives both frames, keeps the first frame and discards the duplicate (7). 14 IEC SC65C WG15 2017 HK 2017-02-08

Attachment of legacy devices: RedBox singly attached s A -frame (HSR tagged) source CPU C -frame (untagged) B -frame (HSR tagged) switch interlink RedBox B A destination Legacy s such as laptops or printers do not recognize the HSR tag and must be attached through a RedBox (Redundancy Box) which acts as their proxy. The RedBox generates the same management frames as if its represented s would be inserted directly in the ring, and removes the frames it injected into the ring when they come back 15 IEC SC65C WG15 2017 HK 2017-02-08

Redundancy Box operation (RedBox H) singly attached s interlink to switch switch The RedBox H operates as a proxy for a number of singly attached s. link redundancy entity (LRE) switching logic (SL) s duplicate 1 2 8 C 3 10 discard duplicate proxy table 4 5 6 7 9 To remove the frames it s from the ring, the RedBox keeps a table of s for which it is the proxy, e.g. by listening to the received frames (8). It can ping the SANs to clean up the list of removed or inoperative s, or remove the entries after a time-out (e.g. 1 minute). CCW CW A B CCW CW The RedBox behaves as a bridge for non-hsr traffic, the protocol is defined in the PICS. 16 IEC SC65C WG15 2017 HK 2017-02-08

Non-redundant topology: 2-level (RSTP HSR) hierarchy GPS time workstation1 workstation2 NCC printer logger COM switching RedBox with multicast filter RSTP ring LAN IED IED IED IED IED bay (HSR ring 1) IED IED bay (HSR ring 2) bay (RSTP) IED IED 17 IEC SC65C WG15 2017 HK 2017-02-08 Mixing non-redundant ring and HSR rings (partial redundancy)

Coupling two HSR rings with a QuadBox QuadBox A Ring 1 Ring 2 A A -frame B -frame (next ring) B QuadBox B Two quadboxes are needed to avoid a single point of failure 18 IEC SC65C WG15 2017 HK 2017-02-08

Quadbox = 2 x RedBox (in principle) interlink to RedBox A of LAN A proxy table mirror RedBox ( A ) 8 C 10 frame check frame check C proxy table 9 link redundancy entity (LRE) s duplicate 1 discard duplicate 7 switching logic (SL) 6 4 3 5 A B CCW CW CCW CW 19 IEC SC65C WG15 2017 HK 2017-02-08

Topology with full coverage: ring of rings ring 1 QB QB QB QB ring 2 ring 3 SAN SAN SAN Needs two quadboxes for failure-indepence Makes only sense if VLAN or Multicast filtering is used 20 IEC SC65C WG15 2017 HK 2017-02-08

Generalizing the topology: three levels HSR standard Ethernet workstation printer GPS quadbox not fully redundant maintenance laptop no RSTP protocol any more (but can be used) note that level 3 is singly attached (only one quadbox) 21 IEC SC65C WG15 2017 HK 2017-02-08

Meshed topology transputer any meshing allowed 22 IEC SC65C WG15 2017 HK 2017-02-08

HSR COUPLING TO OTHER NETWORKS 23 IEC SC65C WG15 2017 HK 2017-02-08

Compatibility PRP - HSR PRP is a redundancy protocol operating on the same principles as HSR, but without requiring special hardware. It is standardized as IEC 62439-3 Clause 4 24 IEC SC65C WG15 2017 HK 2017-02-08

PRP compatibility A can operate in HSR mode or PRP mode with the same hardware. Therefore, the basic infrastructure of PRP can be used. But forwarding frames requires hardware that is currently not needed in PRP. The frame format is different. Since HSR frames have the same size as PRP frames, segmentation is avoided (the HSR Tag remains in the ring and does not arrive to the Ethernet controller). 25 IEC SC65C WG15 2017 HK 2017-02-08

Coupling HSR and two PRP LANs (ser in PRP) source PRP s The Red Box receives frames from their interlink and store their source address in the Proxy Node Table. interlink A RedBox A A LAN A BA CPU LAN B AB interlink B RedBox B B The RedBox ss such frames in both directions on the ring, tagged as A and B, except if it already forwarded the same frame in that direction (since there are two red boxes, this deps on the order of sing) A RedBox forwards frames received by one port to the other, except if it already sent it. To raise throughput, a may not forward a unicast frame directed to it. The RedBox forwards to the interlink any frame received from the ring that does not have its source registered in the Uplink Node Table and that has the correct LAN identifier (A or B). B A B A B A B A destination 26 IEC SC65C WG15 2017 HK 2017-02-08 solid arrows: unicast traffic void arrows: multicast or not received unicast traffic patterned arrows: duplicate from other RedBox

Coupling HSR and two PRP LANs (ser in ring) interlink A LAN A destination PRP s LAN B interlink B if RedBox A fails, connectivity would be lost between PRP and ring. Therefore, a RedBox forwards whichever frame A or B comes first and tags it with its color. (the shaded frames are used for that purpose) RedBox A CPU RedBox B A BA AB B B A B A B A B A source 27 IEC SC65C WG15 2017 HK 2017-02-08

Example of full-redundant PRP/HSR network hierarchy workstation1 workstation2 printer logger NCC NCC Duo/Duplo COM COM switching RedBox with multicast filter PRP network (each path with RSTP) IED IED IED IED IED IED IED DANP IED DANP 3rd party bay (HSR) bay (HSR) bay (PRP) Mixing redundant, non-redundant, HSR and PRP 28 IEC SC65C WG15 2017 HK 2017-02-08

BPDUab BPDUab BPDUab BPDUba IEC 62439-3 5 Coupling to RSTP networks (experimental) RSTP LAN designated port, {Forwarding} root bridge root port, {Forwarding} bridge d designated port, {Forwarding} root port, {Forwarding} BPDUca BPDUab alternate port {Blocking} BPDUcb BPDUab bridge a bridge c bridge b designated port, {Forwarding} alternate port {Blocking} root port, {Forwarding} RedBox A RedBox B BPDUab BPDUab BPDUba BPDUba An HSR ring can be connected by two RedBoxes to an RSTP LAN, provided the RedBoxes support the exchange of BPDUs (experimental extension) 29 IEC SC65C WG15 2017 HK 2017-02-08

RedBox A coupling a ring to a PRP or RSTP network switch in LAN A C interlink between RedBox A and LAN A 8 10 frame check C proxy table 9 link redundancy entity (LRE) s duplicate 1 discard duplicate 7 switching logic (SL) 6 4 3 5 A B CCW CW CCW CW 30 IEC SC65C WG15 2017 HK 2017-02-08

CLOCK SYNCHRONIZATION IEEE 1588v2 Layer 2 Peer-to-peer is the only clock protocol considered for HSR (see IEC 62439-3 Annexes) 31 IEC SC65C WG15 2017 HK 2017-02-08

Clocks in HSR GPS HC = Hybrid Clock switch interlink GC HC HC RedBox A -frame B -frame HC HC HC HC The transparent clocks (hybrid clocks) operate in both directions The ordinary clock of the hybrid clock takes the time from the SYNC messages, from whichever direction 32 IEC SC65C WG15 2017 HK 2017-02-08

Clocks: coupling PRP and HSR LAN A MC PRP s LAN B OC distinguish four cases: A received from A, A received from B B received from A B received from B interlink B interlink A RedBox A A -frame m s m BC HC A m s m BC RedBox B B -frame HC HC HC HC 33 IEC SC65C WG15 2017 HK 2017-02-08

BC = boundary clock Clocks in two HSR rings coupled by QuadBoxes HC = hybrid clock (transparent clock + ordinary clock) A GC B HC RedBox A1 RedBox A2 HC HC s m m s m A -frame interlink A Ring 1 Ring 2 A interlink B A B -frame BC (next ring) B BC HC HC RedBox B1 RedBox B2 HC HC HC 34 IEC SC65C WG15 2017 HK 2017-02-08

HSR IMPLEMENTATION 35 IEC SC65C WG15 2017 HK 2017-02-08

Implementation example application CPU 100 Mbit/s Ethernet non-hsr D-port FPGA control Ethernet controller PHY MDIO MII non-hsr MII MMD MAC MAC port 1 port 2 clock reset port 2 port 3 STA MAC MAC MII MII MDIO jabber-halt PHY PHY jabber-halt 36 IEC SC65C WG15 2017 HK 2017-02-08 HSR port A HSR port B 100 Mbit/s Ethernet 100 Mbit/s Ethernet

Cut-through local queue input queue incoming ring frame outgoing ring frame Cut-through (forwarding a frame as soon as its MAC header is received) improves the average delays, but the worst case delay occurs when a just started sing an own frame of maximum length (1536 octets = 123 µs @ 100 Mbit/s) when a ring frame arrives. For this it has to buffer the ring frames up to a size of 1536 octets. The recognizes a frame it sent itself based on the MAC source address, but to remove damaged or ownerless frames from the ring, a must store-and-forward frames coming from a source that once sent a damaged frame until a sufficient number of good frames came from that. 37 IEC SC65C WG15 2017 HK 2017-02-08

HSR PRIORITIES AND DETERMINISM 38 IEC SC65C WG15 2017 HK 2017-02-08

guard phase IEC 62439-3 5 Deterministic, real-time scheduling Relying on the precision clock given by IEEE 1588, all s transmit their (buffered) time-critical data (cyclic Sampled Measurement Values in IEC 61850) at the same time. This queues the time-critical traffic and leaves a continuous slot for the aperiodic messages. Sub-cycles with a power of 2 multiple of the base period are possible. Nodes delay sing aperiodic messages if they would overlap the start of the next period (guard). application application application application A B A B A B A B periodic phase sporadic phase periodic phase sporadic phase period period 39 IEC SC65C WG15 2017 HK 2017-02-08

HSR priorities HSR behaves like a roundabout: frames in the ring have a higher priority than inserted frames. Cut-through allows wire-speed transmission from to, but is ineffective when another frame is already being transmitted in the next (e.g. when a long truck is entering the roundabout) HSR 40 IEC SC65C WG15 2017 HK 2017-02-08

HSR NETWORK MANAGEMENT 41 IEC SC65C WG15 2017 HK 2017-02-08

Network supervision and detection of lurking faults Each continuously checks all paths. In order not to rely on application cyclic data for this, each ss periodically a supervision frame (beacon) (over both ports) that indicates its state. This frame is received by all s, including the ser, who can check the continuity of the network. The beacon period is relatively long (some seconds) since the supervision frame is not needed for failover, but only to check redundancy. The duplicate discard mode allows to keep track of all s in the network. All s keep a table of all detected partners and registers the last time a was seen as well as missing duplicates and out-of-sequence frames. Changes to the topology are communicated over SNMP or to the Link Management Entity, which can communicate them using the application protocol. 42 IEC SC65C WG15 2017 HK 2017-02-08

COTS attachment and network management 172.16.1.11 172.16.1.12 1 2 COTS NM tool 172.16.1.100 Red box" 172.16.1.14 4 Each has an SNMP agent to keep track of redundancy. COTS devices are attached through a RedBox that hides the HSR traffic from the device. 43 IEC SC65C WG15 2017 HK 2017-02-08

HSR: Pros & Cons + seamless failover in case of failure of a or reinsertion of a repaired + needs no switches or bridges, linear topology possible + needs no duplication of the network, economical redundancy + supervises constantly the redundancy + monitors actual topography (over network management / SNMP) + international standard (IEC 62439-3 Clause 5) + interoperable with PRP (IEC 62439-3 Clause 4) + supports clock synchronization (IEEE 1588) with a transparent clock in every + can be used for any Industrial Ethernet + application-protocol indepent + no intellectual property: open specification and free licence - uses four fibres (100 Fx) or 2 cables (100Tx) per - non-hsr devices (COTS) can only be inserted over a RedBox or a Quadbox - limited to a layer 2 broadcast domain - requires a hardware implementation (ASIC or FPGA) to meet the real-time constrains, + which can also be used for clock synchronization. 44 IEC SC65C WG15 2017 HK 2017-02-08

Application to IEC 61850 - supports the layer 2 communication of GOOSE (IEC 61850-8-1) and SMV (IEC 61850-9-2) - offers the seamless switchover as defined in 61850-5 14 - offers the same redundancy scheme and hardware for the station bus and the process bus - can expose the link layer redundancy objects through the management interface directly as IEC 61850 objects or also using SNMP. - can use the same SCD files as the non-redundant structure since the IP addresses are not affected and the MAC addresses are the same. In the communication section, the redundant switches appear as additional devices with their own IP address. 45 IEC SC65C WG15 2017 HK 2017-02-08

Implementation Several companies implemented the protocol only relying on the specifications. Intellectual property is available under fair and non-discriminatory conditions. An interoperability test allowed to check the implementations. A first implementation was done in software, which precludes cut-through. It did not meet the real-time requirements, but served as proof of concept and is available for PCs free of charge. A switch fabric is highly recommed to increase performance. At least four FPGA implementations exist (August 2010). Experienced switch manufacturers will provide implementations that can be used under license by any company. 46 IEC SC65C WG15 2017 HK 2017-02-08

HSR TESTING AND EXPERIENCE 47 IEC SC65C WG15 2017 HK 2017-02-08

CIGRE 2010 demo Hirschmann, Siemens, ABB, ZHAW and Flexibilis presented an HSR interoperability demo at CIGRE 2010 in Paris 48 IEC SC65C WG15 2017 HK 2017-02-08

CIGRE 2012 Demo 49 IEC SC65C WG15 2017 HK 2017-02-08

PRP LAN A CIGRE 2012 Demo network Demo Pod #1 Demo Pod #2 Demo Pod #3 Demo Pod #4 Demo Pod #5 RSG2100-1 MACH1030-2 RSG2100-2 RSG2100-4 MACH1030-1 MACH1030-3 RSG2100-3 MACH1030-4 PRP LAN B HSR Ring SYS 600C REF 615 REC 670 HiVision SJ62 X202 ZHAW-1 ZHAW-2 MGR USB HSR -RB CMC 850 CMC 850 REF 615 RBX SJ61 X 204 HSR disturber Leg PRP LAN A: Orange PRP LAN B: Aqua Blue HSR Ring: Yellow SANs: Grey RJ45 cable optical fibre Demo Pod #12 Demo Pod #11 Demo Pod #10 Demo Pod #9 Demo Pod #8 Demo Pod #7 Demo Pod #6 RSG2100-11 RSG2100-10 RSG2100-9 RSG2100-8 RSG2100-7 RSG2100-6 RSG2100-5 RSG2100-12 MACH1030-10 MACH1030-9 MACH1030-8 MACH1030-7 MACH1030-6 MACH1030-5 RS950 GRL 200 P142 SEL 421 F650 UR+ P141 C264 H382 7IRV 1CPT 7SA52 2 50 IEC SC65C WG15 2017 HK 2017-02-08

HSR conclusion IEC standard 62439-3 since February 2010 specified as the redundancy solution in IEC 61850 Ed. 2 clock profile specified in IEC 62439-3 Annex A,B,C,D,E fulfills the most critical redundancy and real-time requirements has the potential of displacing all other layer 2 protocols in industry demonstrated by ABB, Siemens, Hirschmann, ZHAW, RuggedCom, Flexibilis, SoCE synchronized by an IEEE 1588 one-step clock, allowing deterministic operation simulated for large networks complements and compatible with PRP - can be operated in mixed topologies can be implemented with FPGAs of reasonable size and price (Altera Cyclone III, Xylinx Spartan 6) 51 IEC SC65C WG15 2017 HK 2017-02-08

52 IEC SC65C WG15 2017 HK 2017-02-08