1、 IEC 62439-3 Edition 3.0 2016-03 REDLINE VERSION Industrial communication networks High availability automation networks Part 3: Parallel Redundancy Protocol (PRP) and High-availability Seamless Redundancy (HSR) IEC 62439-3:2016-03 RLV(en) colour inside THIS PUBLICATION IS COPYRIGHT PROTECTED Copyri
2、ght 2016 IEC, Geneva, Switzerland All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from either IEC or IECs member Natio
3、nal Committee in the country of the requester. If you have any questions about IEC copyright or have an enquiry about obtaining additional rights to this publication, please contact the address below or your local IEC member National Committee for further information. IEC Central Office Tel.: +41 22
4、 919 02 11 3, rue de Varemb Fax: +41 22 919 03 00 CH-1211 Geneva 20 infoiec.ch Switzerland www.iec.ch About the IEC The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes International Standards for all electrical, electronic and related te
5、chnologies. About IEC publications The technical content of IEC publications is kept under constant review by the IEC. Please make sure that you have the latest edition, a corrigenda or an amendment might have been published. IEC Catalogue - webstore.iec.ch/catalogue The stand-alone application for
6、consulting the entire bibliographical information on IEC International Standards, Technical Specifications, Technical Reports and other documents. Available for PC, Mac OS, Android Tablets and iPad. IEC publications search - www.iec.ch/searchpub The advanced search enables to find IEC publications b
7、y a variety of criteria (reference number, text, technical committee,). It also gives information on projects, replaced and withdrawn publications. IEC Just Published - webstore.iec.ch/justpublished Stay up to date on all new IEC publications. Just Published details all new publications released. Av
8、ailable online and also once a month by email. Electropedia - www.electropedia.org The worlds leading online dictionary of electronic and electrical terms containing 20 000 terms and definitions in English and French, with equivalent terms in 15 additional languages. Also known as the International
9、Electrotechnical Vocabulary (IEV) online. IEC Glossary - std.iec.ch/glossary 65 000 electrotechnical terminology entries in English and French extracted from the Terms and Definitions clause of IEC publications issued since 2002. Some entries have been collected from earlier publications of IEC TC 3
10、7, 77, 86 and CISPR. IEC Customer Service Centre - webstore.iec.ch/csc If you wish to give us your feedback on this publication or need further assistance, please contact the Customer Service Centre: csciec.ch. IEC 62439-3 Edition 3.0 2016-03 REDLINE VERSION Industrial communication networks High av
11、ailability automation networks Part 3: Parallel Redundancy Protocol (PRP) and High-availability Seamless Redundancy (HSR) INTERNATIONAL ELECTROTECHNICAL COMMISSION ICS 25.040, 35.040 ISBN 978-2-8322-3291-0 Registered trademark of the International Electrotechnical Commission Warning! Make sure that
12、you obtained this publication from an authorized distributor. colour inside 2 IEC 62439-3:2016 RLV IEC 2016 CONTENTS FOREWORD . 8 INTRODUCTION . 10 0.1 General . 10 0.2 Changes with respect to the previous edition 10 0.3 Patent declaration 11 1 Scope 13 2 Normative references . 13 3 Terms, definitio
13、ns, abbreviations, acronyms, and conventions . 14 3.1 Terms and definitions . 14 3.2 Abbreviations and acronyms . 15 3.3 Conventions . 16 4 Parallel Redundancy Protocol (PRP) . 16 4.1 PRP principle of operation 16 4.1.1 PRP network topology 16 4.1.2 PRP LANs with linear or bus topology . 17 4.1.3 PR
14、P LANs with ring topology 17 4.1.4 DANP node structure 18 4.1.5 PRP attachment of singly attached nodes . 19 4.1.6 Compatibility between singly and doubly attached nodes . 19 4.1.7 Network management . 19 4.1.8 Implication on configuration application 20 4.1.9 Transition to non-redundant networks .
15、20 4.1.10 Duplicate handling 20 4.1.11 Network supervision . 26 4.1.12 Redundancy management interface 26 4.2 PRP protocol specifications 26 4.2.1 Installation, configuration and repair guidelines . 26 4.2.2 Unicast MAC addresses . 27 4.2.3 Multicast MAC addresses . 27 4.2.4 IP addresses 27 4.2.5 No
16、des 27 4.2.6 Duplicate Accept mode (testing only) 28 4.2.7 Duplicate Discard mode 28 4.3.2 PRP_Supervision frame contents 33 4.3.3 PRP_Supervision frame for RedBox 34 4.3.4 Reception of a PRP_Supervision frame and NodesTable . 34 4.3 PRP_Supervision frame . 32 4.3.1 PRP_Supervision frame format . 32
17、 4.4 Bridging node 35 4.5 Constants 35 4.6 PRP service specification . 35 5 High-availability Seamless Redundancy (HSR) 36 5.1 HSR objectives 36 5.2 HSR principle of operation 36 5.2.1 Basic operation with a ring topology 36 IEC 62439-3:2016 RLV IEC 2016 3 5.2.2 DANH node structure . 38 5.2.3 Topolo
18、gy 38 5.2.4 RedBox structure . 46 5.3 HSR node specifications 48 5.3.1 HSR operation . 48 5.3.2 DANH receiving from its link layer interface 48 5.3.3 DANH receiving from an HSR port 49 5.3.4 DANH forwarding rules . 50 5.3.5 CoS . 52 5.3.6 Clock synchronization 52 5.3.7 Deterministic medium access .
19、52 5.4 HSR RedBox specifications 52 5.4.1 RedBox properties 52 5.4.2 RedBox receiving from interlink 53 5.4.3 RedBox forwarding on the ring 55 5.4.4 RedBox receiving from an HSR port 55 5.4.5 RedBox receiving from its link layer interface 57 5.4.6 Redbox ProxyNodeTable handling 57 5.4.7 RedBox CoS 5
20、7 5.4.8 RedBox clock synchronization 58 5.4.9 RedBox medium access . 58 5.5 QuadBox specification 58 5.6 Duplicate Discard method 58 5.7 Frame format for HSR 58 5.7.1 Frame format for all frames 58 5.7.2 HSR_Supervision frame . 59 5.8 Constants 62 5.9 HSR service specification . 63 6 Protocol Implem
21、entation Conformance Statement (PICS) 64 7 PRP/HSR Management Information Base (MIB) 65 Annex A (normative) Use of IEC 61588 and IEEE C37.238 for IEC 62439-3 Annex A (normative) Clocks synchronization over redundant paths in IEC 62439-3 96 A.1 Overview . 96 A.2 Attachment to redundant LANs by a boun
22、dary clock 96 A.3 Attachment to redundant LANs by doubly attached ordinary clocks . 97 A.4 PRP mapping to PTP . 99 A.4.1 Scenarios and device roles . 99 A.4.2 Operation in PRP . 101 A.4.3 Configuration specification . 102 A.4.4 Specifications of DANP as DAC 103 A.4.5 Clock model of a RedBox for PTP
23、. 103 A.5 HSR Mapping to PTP . 120 A.5.1 PTP traffic in HSR 120 A.5.2 HSR nodes specifications . 123 A.5.3 Redundant clocks in HSR . 124 A.5.4 Attachment of an MC to an external LAN 124 A.6 PRP to HSR Mapping . 125 A.6.1 Connection methods . 125 4 IEC 62439-3:2016 RLV IEC 2016 A.6.2 PRP-HSR connecti
24、on by BC . 125 A.6.3 PRP-HSR connection by TCs . 126 A.7 Doubly attached clock model 127 A.7.1 State machine 127 A.7.2 Supervision of the port . 130 A.7.3 BMCA for paired ports 131 A.7.4 Selection of the port state . 132 A.8 PTP datasets for high availability 132 A.8.1 General 132 A.8.2 Data types .
25、 132 A.8.3 Datasets for ordinary or boundary clocks 133 A.8.4 Object for transparent clocks 137 Annex B (informative) Deterministic medium access in HSR . Annex B (normative) PTP profile for Power Utility Automation Redundant clock attachment 141 B.1 Application domain . 141 B.2 PTP profile specific
26、ation . 141 B.3 Redundant clock attachment 141 Annex C (normative) PTP profiles for high-availability automation networks . 142 C.1 Application domain . 142 C.2 PTP profile specification . 142 C.3 Clock types 142 C.4 Protocol specification common . 143 C.5 Protocol specification for L3E2E automation
27、 profile . 143 C.6 Protocol specification for L2P2P automation profile . 143 C.7 Timing requirements 144 C.7.1 Measurement conditions . 144 C.7.2 Network time inaccuracy . 144 C.7.3 Network elements . 144 C.7.4 Requirements for grandmasters 144 C.7.5 Requirements for TCs 145 C.7.6 Requirements for B
28、Cs 145 C.7.7 Requirements for media converters 145 C.7.8 Requirements for links 145 C.8 Network engineering 146 C.9 Default settings 146 C.10 Redundant clock handling 147 C.11 Protocol Implementation Conformance Statement (PICS) 148 C.11.1 Conventions . 148 C.11.2 PICS 148 Annex D (informative) Prec
29、ision Time Protocol tutorial for IEC 62439-3 . 150 D.1 Objective . 150 D.2 Precision and accuracy 150 D.3 PTP clock types . 151 D.4 PTP main options . 152 D.5 Layer 2 and layer 3 communication 153 D.6 1-step and 2-step correction . 153 D.6.1 Time correction in TCs . 153 D.6.2 2-step to 1-step transl
30、ation . 154 IEC 62439-3:2016 RLV IEC 2016 5 D.7 End-To-End link delay measurement 156 D.7.1 General method . 156 D.7.2 End-to-End link delay measurement with 1-step clock correction . 156 D.7.3 End-to-End link delay measurement with 2-step clock correction . 157 D.7.4 End-to-End link delay calculati
31、on by Delay_Req/Delay_Resp 158 D.8 Peer-to-Peer link delay calculation . 158 D.8.1 Peer-to-Peer link delay calculation with 1-step correction 158 D.8.2 Peer-to-Peer link delay calculation with 2-step correction 159 Annex E (normative) Management Information base for singly and doubly attached clocks
32、 161 Bibliography . 186 Figure 1 PRP example of general redundant network 16 Figure 2 PRP example of redundant network as two LANs (bus topology) . 17 Figure 3 PRP example of redundant ring with SANs and DANPs . 18 Figure 4 PRP with two DANPs communicating 18 Figure 5 PRP RedBox, transition from sin
33、gle to double LAN 20 Figure 6 PRP frame extended by an RCT . 21 Figure 7 PRP VLAN-tagged frame extended by an RCT 22 Figure 8 PRP padded frame closed by an RCT . 22 Figure 9 Duplicate Discard algorithm boundaries 24 Figure 10 HSR example of ring configuration for multicast traffic . 36 Figure 11 HSR
34、 example of ring configuration for unicast traffic . 37 Figure 12 HSR structure of a DANH . 38 Figure 13 HSR example of topology using two independent networks 39 Figure 14 HSR example of peer coupling of two rings . 40 Figure 15 HSR example of connected rings 41 Figure 16 HSR example of coupling tw
35、o redundant PRP LANs to a ring 42 Figure 17 HSR example of coupling from a ring node to redundant PRP LANs 43 Figure 18 HSR example of coupling from a ring to two PRP LANs . 44 Figure 19 HSR example of coupling three rings to one PRP LAN. 45 Figure 20 HSR example of meshed topology 46 Figure 21 HSR
36、structure of a RedBox . 47 Figure 22 HSR frame without a VLAN tag . 58 Figure 23 HSR frame with VLAN tag . 59 Figure 24 HSR node with management counters . 63 Figure 25 HSR RedBox with management counters 64 Figure A.1 Doubly Attached Clock as BC (MCA is best master) . 96 Figure A.2 Doubly Attached
37、Clock when MCA is best master 98 Figure A.3 Doubly attached clocks when OC1 is best master 99 Figure A.4 Elements of PRP networks 101 Figure A.5 Connection of a master clock to an ordinary clock over PRP 102 Figure A.6 PRP RedBox as BCs (OC3 and BC7 are best masters) 104 Figure A.7 RedBox DABC clock
38、 model . 105 6 IEC 62439-3:2016 RLV IEC 2016 Figure A.8 PRP RedBoxes as DABC with E2E BC7 is master . 106 Figure A.9 PRP RedBoxes as DABC with E2E timing . 107 Figure A.10 PRP RedBoxes as DABC with P2P OC5 is best master . 108 Figure A.11 PRP RedBoxes as DABC with P2P timing . 109 Figure A.12 PRP Re
39、dBox as DATC with E2E signal flow . 110 Figure A.13 PRP RedBox as DATC with E2E timing . 112 Figure A.14 PRP RedBox as DATC with P2P 113 Figure A.15 PRP RedBox as DATC with P2P timing . 114 Figure A.16 PRP RedBox as SLTC with E2E 117 Figure A.17 PRP RedBox as SLTC with E2E timing . 118 Figure A.18 P
40、RP RedBox as SLTC with P2P 119 Figure A.19 HSR with one GMC . 121 Figure A.20 PTP messages sent and received by an HSR node (1-step). 122 Figure A.21 PTP messages sent and received by an HSR node (2-step) . 123 Figure A.22 Attachment of a GMC to an HSR ring through a RedBox as TC 125 Figure A.23 PRP
41、 to HSR coupling by BCs 126 Figure A.24 PRP to HSR coupling by TCs . 127 Figure A.25 Port states including transitions for redundant operation 128 Figure A.26 BMCA for redundant masters . 131 Figure D.1 Precision and accuracy example . 150 Figure D.2 Precision Time Protocol principle 151 Figure D.3
42、Precision Time Protocol elements 152 Figure D.4 Delays and time-stamping logic in TCs 153 Figure D.5 Correction of the Sync message by 1-step and 2-step (peer-to-peer) 154 Figure D.6 Translation from 2-step to 1-step in TCs 155 Figure D.7 Translation from 2-step to 1-step message view 156 Figure D.8
43、 End-to-end link delay measurement with 1-step clock correction 157 Figure D.9 End-to-end delay measurement with 2-step clock correction 158 Figure D.10 Peer-to-peer link delay measurement with 1-step clock correction 159 Figure D.11 Peer-to-peer link delay measurement with 2-step clock correction 1
44、60 Table 1 Duplicate discard cases . 25 Table 2 Monitoring data set 28 Table 3 NodesTable attributes 29 Table 4 PRP_Supervision frame with no VLAN tag . 32 Table 5 PRP_Supervision frame with (optional) VLAN tag . 33 Table 6 PRP_Supervision frame contents . 34 Table 7 PRP_Supervision TLV for Redbox 3
45、4 Table 8 PRP constants . 35 Table 9 HSR_Supervision frame with no VLAN tag . 60 Table 10 HSR_Supervision frame with optional VLAN tag . 61 Table 11 HSR Constants 63 Table A.1 States 129 IEC 62439-3:2016 RLV IEC 2016 7 Table A.2 Transitions . 130 Table A.3 Variables 130 Table C.1 PTP attributes for
46、the Industrial Automation profile . 147 Table C.2 PICS for clocks . 149 8 IEC 62439-3:2016 RLV IEC 2016 INTERNATIONAL ELECTROTECHNICAL COMMISSION _ INDUSTRIAL COMMUNICATION NETWORKS HIGH AVAILABILITY AUTOMATION NETWORKS Part 3: Parallel Redundancy Protocol (PRP) and High-availability Seamless Redund
47、ancy (HSR) FOREWORD 1) The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising all national electrotechnical committees (IEC National Committees). The object of IEC is to promote international co-operation on all questions concerning standardiza
48、tion in the electrical and electronic fields. To this end and in addition to other activities, IEC publishes International Standards, Technical Specifications, Technical Reports, Publicly Available Specifications (PAS) and Guides (hereafter referred to as “IEC Publication(s)”). Their preparation is
49、entrusted to technical committees; any IEC National Committee interested in the subject dealt with may participate in this preparatory work. International, governmental and non- governmental organizations liaising with the IEC also participate in this preparation. IEC collaborates closely with the International Organization for Standardization