High-availability Seamless Redundancy (HSR) is a
network protocol
A communication protocol is a system of rules that allows two or more entities of a communications system to transmit information via any kind of variation of a physical quantity. The protocol defines the rules, syntax, semantics and synchroni ...
for
Ethernet
Ethernet () is a family of wired computer networking technologies commonly used in local area networks (LAN), metropolitan area networks (MAN) and wide area networks (WAN). It was commercially introduced in 1980 and first standardized in ...
that provides seamless
failover
Failover is switching to a redundant or standby computer server, system, hardware component or network upon the failure or abnormal termination of the previously active application, server, system, hardware component, or network in a computer n ...
against failure of any single network component. PRP and HSR are independent of the application-protocol and can be used by most
Industrial Ethernet
Industrial Ethernet (IE) is the use of Ethernet in an industrial environment with protocols that provide determinism and real-time control. Protocols for industrial Ethernet include EtherCAT, EtherNet/IP, PROFINET, POWERLINK, SERCOS III, C ...
protocols in the IEC 61784 suite. HSR does not cover the failure of end nodes, but redundant nodes can be connected via HSR.
HSR nodes have two ports and act as a
bridge
A bridge is a structure built to span a physical obstacle (such as a body of water, valley, road, or rail) without blocking the way underneath. It is constructed for the purpose of providing passage over the obstacle, which is usually somethi ...
, which allows arranging them into a ring or meshed structure without dedicated switches. This is in contrast to the companion standard
Parallel Redundancy Protocol
Parallel Redundancy Protocol (PRP) is a network protocol standard for Ethernet that provides seamless failover against failure of any network component. This redundancy is invisible to the application.
PRP nodes have two ports and are attached to ...
(PRP), with which HSR shares the operating principle. PRP and HSR are standardized by the
IEC
The International Electrotechnical Commission (IEC; in French: ''Commission électrotechnique internationale'') is an international standards organization that prepares and publishes international standards for all electrical, electronic and ...
62439-3:2016.
PRP and HSR are suited for applications that request
high availability
High availability (HA) is a characteristic of a system which aims to ensure an agreed level of operational performance, usually uptime, for a higher than normal period.
Modernization has resulted in an increased reliance on these systems. F ...
and short switchover time. For such applications, the recovery time of commonly used protocols such as the
Rapid Spanning Tree Protocol
The Spanning Tree Protocol (STP) is a network protocol that builds a loop-free logical topology for Ethernet networks. The basic function of STP is to prevent bridge loops and the broadcast radiation that results from them. Spanning tree also al ...
(RSTP) is too long. It has been adopted for
electrical substation
A substation is a part of an electrical generation, transmission, and distribution system. Substations transform voltage from high to low, or the reverse, or perform any of several other important functions. Between the generating station and ...
automation in the framework of
IEC 61850
IEC 61850 is an international standard defining communication protocols for intelligent electronic devices at electrical substations. It is a part of the International Electrotechnical Commission's (IEC) Technical Committee 57 reference archit ...
. It is used in synchronized drives (e.g. in printing machines) and high power inverters.
The cost of HSR is that nodes require hardware support (
FPGA
A field-programmable gate array (FPGA) is an integrated circuit designed to be configured by a customer or a designer after manufacturinghence the term ''Field-programmability, field-programmable''. The FPGA configuration is generally specifi ...
or
ASIC
An application-specific integrated circuit (ASIC ) is an integrated circuit (IC) chip customized for a particular use, rather than intended for general-purpose use, such as a chip designed to run in a digital voice recorder or a high-effici ...
) to forward or discard frames within microseconds. This cost is compensated because no Ethernet switches are required. Hardware support is anyhow needed when the node supports clock synchronization or security.
Topology
IEC_62439-3.5_HSR_Multicast_Ring_20170204_Kirrmann.jpg, HSR network operation (multicast)
IEC_62439-3.5_HSR_Frame_20170204_Kirrmann.jpg, HSR frame format (with tag)
IEC_62439-3.5_HSR_Nodes_20170204_Kirrmann.jpg, HSR nodes (DANH) interaction
An HSR
network node
In telecommunications networks, a node (, ‘knot’) is either a redistribution point or a communication endpoint. The definition of a node depends on the network and protocol layer referred to. A physical network node is an electronic devic ...
(DANH) has at least two
Ethernet
Ethernet () is a family of wired computer networking technologies commonly used in local area networks (LAN), metropolitan area networks (MAN) and wide area networks (WAN). It was commercially introduced in 1980 and first standardized in ...
ports, each attached to a neighbour HSR node, so that always two paths exist between two nodes. Therefore, as long as one path is operational, the destination application always receives one frame. HSR nodes check the redundancy continuously to detect lurking failures.
HSR is typically used in a
ring topology
A ring network is a network topology in which each node connects to exactly two other nodes, forming a single continuous pathway for signals through each node – a ring. Data travels from node to node, with each node along the way handling ever ...
or in another
mesh topology
A mesh network is a local area network topology in which the infrastructure nodes (i.e. bridges, switches, and other infrastructure devices) connect directly, dynamically and non-hierarchically to as many other nodes as possible and cooperate wit ...
.
Nodes with single attachment (such as a printer) are attached through a RedBox (Redundancy Box).
Redundant connections to other networks are possible, especially to a
Parallel Redundancy Protocol
Parallel Redundancy Protocol (PRP) is a network protocol standard for Ethernet that provides seamless failover against failure of any network component. This redundancy is invisible to the application.
PRP nodes have two ports and are attached to ...
(PRP) network.
Since HSR and PRP use the same duplicate identification mechanism, PRP and HSR networks can be connected without single point of failure and the same nodes can be built to be used in both PRP and HSR networks.
Operation
Every HSR node is a switching node, i.e. it can forward a frame received on one port to at least one other port in cut-through mode.
A source node sends the same
frame
A frame is often a structural system that supports other components of a physical construction and/or steel frame that limits the construction's extent.
Frame and FRAME may also refer to:
Physical objects
In building construction
* Framing (co ...
over all ports to the neighbour nodes.
A destination node should receive, in the fault-free state, two identical frames within a certain time skew, forward the first frame to the application and discard the second frame when (and if) it comes.
A node forwards a frame unless it detects a frame that it sent itself or that it already sent.
To reduce unicast traffic, a node does not forward a frame for which it is the sole destination
(Mode U). This does not apply when traffic supervision is needed.
To reduce traffic, a node may refrain from sending a frame that it already received from the opposite direction on the same port (Mode X), but this does not apply to all frames.
Also, several algorithms that relies on network node location learning can serve in the HSR traffic reduction, such as the Port Locking and Enhanced Port Locking, (PL) and (EPL) respectively, which work on closing the ports that leads to a non existed node,
Especially,
Precision Time Protocol
The Precision Time Protocol (PTP) is a protocol used to synchronize clocks throughout a computer network. On a local area network, it achieves clock accuracy in the sub-microsecond range, making it suitable for measurement and control systems. ...
frames (multicast) are no duplicates of each other since they are modified by each node to correct the time. Such frames can only be retired by the node that originally inserted them, or by another node that already sent them. Also, this mode cannot be used when deterministic operation is required.
A special treatment is given to link-specific frames such as
LLDP
The Link Layer Discovery Protocol (LLDP) is a vendor-neutral link layer protocol used by network devices for advertising their identity, capabilities, and neighbors on a local area network based on IEEE 802 technology, principally wired Eth ...
or Pdelay_Req / Pdelay_Resp
Precision Time Protocol
The Precision Time Protocol (PTP) is a protocol used to synchronize clocks throughout a computer network. On a local area network, it achieves clock accuracy in the sub-microsecond range, making it suitable for measurement and control systems. ...
frames, for which the HSR tag is ignored, but must be present.
Frame format
To simplify the detection of duplicates, the frames are identified by their source address and a sequence number that is incremented for each frame sent according to the HSR protocol. The sequence number, the frame size and the path identifier are appended in a 6-octet HSR tag (header).
NOTE: all legacy devices should accept Ethernet frames up to 1528 octets, this is below the theoretical limit of 1535 octets.
Performance
In an HSR ring, only about half of the network bandwidth is available to applications for multicast traffic (compared to RSTP). This is because all frames are sent twice over the same network, even when there is no failure.
However, since also the network infrastructure is also doubled in closed ring topologies the nominal network bandwidth is available. E.g. in a 100 Mbit/s Ethernet ring 100 Mbit/s are available (but not 200 Mbit/s).
Implementation
Since the forwarding delay of every node in an HSR ring adds to the total network latency, frames are forwarded within microseconds.
In practice, hardware support (
FPGA
A field-programmable gate array (FPGA) is an integrated circuit designed to be configured by a customer or a designer after manufacturinghence the term ''Field-programmability, field-programmable''. The FPGA configuration is generally specifi ...
)
is required to bring down the per-hop latency to a reasonable value (some 5μs at 100 Mbit/s), using
cut-through switching
Rat running (also known as rodent running, cut-through driving, or dive-bombing) is the practice by motorists of using residential side streets or any unintended short cut such as a parking lot, delivery service lane or cemetery road instead o ...
.
To this purpose, each frame has an HSR tag that allows recognition of whether the frame should be forwarded or not, to avoid
store-and-forward
Store and forward is a telecommunications technique in which information is sent to an intermediate station where it is kept and sent at a later time to the final destination or to another intermediate station. The intermediate station, or node in ...
. This means that corrupted frames will not be removed from the ring until they reach a node that already sent them.
Clock synchronization
IEC 62439-3 Annex C specifies a
Precision Time Protocol Industry Profile (PIP L2P2P), that allows a clock synchronization down to an accuracy of 1 μs in a ring of 16 HSR nodes. This PTP protocol also allows operating the HSR ring deterministically for a dedicated class of traffic, for instance Sampled Values in
IEC 61850
IEC 61850 is an international standard defining communication protocols for intelligent electronic devices at electrical substations. It is a part of the International Electrotechnical Commission's (IEC) Technical Committee 57 reference archit ...
. It has been adopted by IEEE as
IEC/IEEE 61850-9-3,
.
[Kirrmann, H.; Dickerson W. ]
IEC IEEE Precision Time Protocol
'', Pacworld, September 2016
See also
*
Redundancy (engineering)
In engineering, redundancy is the intentional duplication of critical components or functions of a system with the goal of increasing reliability of the system, usually in the form of a backup or fail-safe, or to improve actual system perfo ...
*
Resilient Packet Ring
Resilient Packet Ring (RPR), as defined by IEEE standard 802.17, is a protocol designed for the transport of data traffic over optical fiber ring networks. The standard began development in November 2000 and has undergone several amendments since ...
*
Spanning Tree Protocol
The Spanning Tree Protocol (STP) is a network protocol that builds a loop-free logical topology for Ethernet networks. The basic function of STP is to prevent bridge loops and the broadcast radiation that results from them. Spanning tree also ...
*
Token Ring
Token Ring network
IBM hermaphroditic connector with locking clip. Screen contacts are prominently visible, gold-plated signal contacts less so.
Token Ring is a computer networking technology used to build local area networks. It was introduc ...
References
Historical Note
Originally, the protocol was named HASAR for the initial of the five companies working for electrical utilities that created it (Hirschmann, ABB, Siemens, Alstom and RuggedCom). Marketing renamed it HSR, for "High-availability Seamless Ring", but HSR is not limited to a simple ring topology.
Further reading
* Heine, Holger ; Kleineberg, Oliver; "The High-Availability Seamless redundancy protocol (HSR): Robust fault tolerant networking and loop prevention through duplicate discard", WFCS 2012, Lemgo, Germany
* Heine, Holger ; Bindrich, Diana;
Designing reliable high-performance IEC61850 substation communication networks based on PRP and HSR topologies In Electricity Distribution (CIRED 2013), 22nd International Conference and Exhibition, Stockholm, Sweden
* Hoga, Clemens
in PacWorld, 2010 September
* Ilie, Diana; Honegger, Claudio; Kirrmann, Hubert; Sotiropoulos, Ioannis
Performance of a full-hardware PTP implementation for an IEC 62439-3 redundant IEC 61850 substation automation network, ISPCS 2012
External links
IEC 62439-3Tutorial on HSRTutorial on Parallel Redundancy Protocol (PRP)Tutorial on the fault-tolerant precision time protocol profiles in IEC 62439-3IEC 62439-3 Tissues (Technical issues) database for IEC 62439-3 / IEC/IEEE 61850-9-3ZHAW High-availability Seamless Redundancy ProtocolHIRSCHMANN HSR High Availability Seamless RedundancyFlexibilis High-availability Seamless Redundancy (HSR)Siemens Redundant networks for industryRuggedCom Migration Paths for IEC 61850 Substation Communication Networks Towards Superb Redundancy Based on Hybrid PRP and HSR Topologies{{Ethernet
Networking standards
Industrial Ethernet