1、 IEC 62439-6 Edition 1.0 2010-02 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial communication networks High availability automation networks Part 6: Distributed Redundancy Protocol (DRP) Rseaux industriels de communication Rseaux de haute disponibilit pour lautomation Partie 6: Protocole de
2、redondance distribue (DRP) IEC 62439-6:2010 colour inside THIS PUBLICATION IS COPYRIGHT PROTECTED Copyright 2010 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,
3、including photocopying and microfilm, without permission in writing from either IEC or IECs member National 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 be
4、low or your local IEC member National Committee for further information. Droits de reproduction rservs. Sauf indication contraire, aucune partie de cette publication ne peut tre reproduite ni utilise sous quelque forme que ce soit et par aucun procd, lectronique ou mcanique, y compris la photocopie
5、et les microfilms, sans laccord crit de la CEI ou du Comit national de la CEI du pays du demandeur. Si vous avez des questions sur le copyright de la CEI ou si vous dsirez obtenir des droits supplmentaires sur cette publication, utilisez les coordonnes ci-aprs ou contactez le Comit national de la CE
6、I de votre pays de rsidence. IEC Central Office Tel.: +41 22 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 Internati
7、onal Standards for all electrical, electronic and related technologies. 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. Useful links:
8、IEC publications search - www.iec.ch/searchpub The advanced search enables you to find IEC publications by 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/justpublis
9、hed Stay up to date on all new IEC publications. Just Published details all new publications released. Available on-line and also once a month by email. Electropedia - www.electropedia.org The worlds leading online dictionary of electronic and electrical terms containing more than 30 000 terms and d
10、efinitions in English and French, with equivalent terms in additional languages. Also known as the International Electrotechnical Vocabulary (IEV) on-line. Customer Service Centre - webstore.iec.ch/csc If you wish to give us your feedback on this publication or need further assistance, please contac
11、t the Customer Service Centre: csciec.ch. A propos de la CEI La Commission Electrotechnique Internationale (CEI) est la premire organisation mondiale qui labore et publie des Normes internationales pour tout ce qui a trait llectricit, llectronique et aux technologies apparentes. A propos des publica
12、tions CEI Le contenu technique des publications de la CEI est constamment revu. Veuillez vous assurer que vous possdez ldition la plus rcente, un corrigendum ou amendement peut avoir t publi. Liens utiles: Recherche de publications CEI - www.iec.ch/searchpub La recherche avance vous permet de trouve
13、r des publications CEI en utilisant diffrents critres (numro de rfrence, texte, comit dtudes,). Elle donne aussi des informations sur les projets et les publications remplaces ou retires. Just Published CEI - webstore.iec.ch/justpublished Restez inform sur les nouvelles publications de la CEI. Just
14、Published dtaille les nouvelles publications parues. Disponible en ligne et aussi une fois par mois par email. Electropedia - www.electropedia.org Le premier dictionnaire en ligne au monde de termes lectroniques et lectriques. Il contient plus de 30 000 termes et dfinitions en anglais et en franais,
15、 ainsi que les termes quivalents dans les langues additionnelles. Egalement appel Vocabulaire Electrotechnique International (VEI) en ligne. Service Clients - webstore.iec.ch/csc Si vous dsirez nous donner des commentaires sur cette publication ou si vous avez des questions contactez-nous: csciec.ch
16、. IEC 62439-6 Edition 1.0 2010-02 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial communication networks High availability automation networks Part 6: Distributed Redundancy Protocol (DRP) Rseaux industriels de communication Rseaux de haute disponibilit pour lautomation Partie 6: Protocole de
17、 redondance distribue (DRP) INTERNATIONAL ELECTROTECHNICAL COMMISSION COMMISSION ELECTROTECHNIQUE INTERNATIONALE XB ICS 25.040, 35.040 PRICE CODE CODE PRIX ISBN 978-2-83220-533-4 Registered trademark of the International Electrotechnical Commission Marque dpose de la Commission Electrotechnique Inte
18、rnationale Warning! Make sure that you obtained this publication from an authorized distributor. Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agr. colour inside 2 62439-6 IEC:2010 CONTENTS FOREWORD . 5 INTRODUCTION . 7 1 Scope . 8 2 Normative references
19、 . 8 3 Terms, definitions, abbreviations, acronyms, and conventions 8 3.1 Terms and definitions 8 3.2 Abbreviations and acronyms 9 3.3 Conventions 9 4 Overview 9 4.1 Principles 9 4.2 Ring ports . 10 4.3 DRP switch node . 10 4.4 Single ring topology redundancy 11 4.5 Double ring topology redundancy 1
20、1 4.6 Configuration . 12 4.6.1 Overview . 12 4.6.2 Manufacturer configuration 12 4.6.3 Communication configuration. 12 4.6.4 Application configuration . 13 4.7 Start up . 13 5 DRP communications . 13 5.1 Overview . 13 5.2 Communication procedure . 15 5.3 Fault detection and recovery . 18 5.3.1 Gener
21、al . 18 5.3.2 Handling in a single ring network . 19 5.3.3 Handling in a double ring network 20 5.4 Repairing the inter-switch link fault 21 5.5 Repairing time synchronization fault 21 5.6 Inserting a repaired switch node 22 5.7 Inserting a new switch node 23 6 DRP class specification 23 7 DRP attri
22、butes 24 8 DRP services . 27 8.1 Read . 27 8.2 Write . 30 9 DRP protocol specification 32 9.1 Basic types encoding 32 9.2 ErrorDescription encoding . 32 9.3 Encoding of DRP Class . 33 9.4 PDU description 34 9.4.1 Encoding of DRP DLPDU 34 9.4.2 Encoding of DLSDU . 35 9.4.3 Encoding of VLAN . 35 9.4.4
23、 Ethertype . 35 62439-6 IEC:2010 3 9.4.5 Encoding of DRP PDU . 35 9.4.6 Encoding of DRP_DATA 36 9.4.7 Encoding of Read Service . 40 9.4.8 Encoding of Write Service primitives 42 9.5 Protocol machine. 44 9.5.1 Switch node states description 44 9.5.2 Protocol State Machine description 44 9.5.3 State t
24、ransitions 45 9.5.4 Function descriptions . 52 Bibliography 64 Figure 1 DRP communication model 10 Figure 2 Single ring topology redundancy 11 Figure 3 Double ring topology redundancy . 12 Figure 4 DRP communication procedure 14 Figure 5 Inserting a new switch node into the DRP system 14 Figure 6 Fa
25、ult detection and recovery 15 Figure 7 Fault detection and recovery of single ring topology redundancy 19 Figure 8 Single inter-switch link fault detection and recovery of double ring topology redundancy . 20 Figure 9 Double inter-switch link fault detection and recovery of double ring topology redu
26、ndancy . 21 Figure 10 Inserting a repaired switch node . 22 Figure 11 DRP protocol state machine . 45 Table 1 Relationship between required recovery time and the TargetTimeSyncClass . 22 Table 2 Parameters of Read service 27 Table 3 Parameters of Write service 30 Table 4 Error Type definition 32 Tab
27、le 5 Error Code definition . 33 Table 6 Definition of DRP Class . 33 Table 7 DRP OUI . 34 Table 8 DRP MulticastMACAddress . 35 Table 9 Encoding of DLSDU 35 Table 10 Encoding of DRP PDU . 35 Table 11 DRP_Type definition . 35 Table 12 Encoding of RingCheck frame . 36 Table 13 Encoding of DeviceAnnunci
28、ation frame 37 Table 14 Encoding of RingChange frame . 39 Table 15 Encoding of LinkCheck frame 39 Table 16 Encoding of LinkAlarm frame . 40 Table 17 Encoding of LinkChange frame 40 Table 18 Encoding of Read Request 41 Table 19 Encoding of Read Service Positive Response . 41 Table 20 Encoding of Read
29、 Service Negative Response 42 4 62439-6 IEC:2010 Table 21 Encoding of Write Request 43 Table 22 Encoding of Write Service Positive Response 43 Table 23 Encoding of Write Service Negative Response 43 Table 24 DRP state transitions . 46 Table 25 SetRingPortState() descriptions 52 Table 26 LoadRingPort
30、State() descriptions 52 Table 27 WriteSucceed() descriptions 52 Table 28 SynchronizationFinished() descriptions . 53 Table 29 ActivePortLinkState() descriptions . 53 Table 30 StandbyPortLinkState() descriptions 53 Table 31 ConfigureInfo() descriptions 53 Table 32 DRPSendTimer() descriptions . 54 Tab
31、le 33 SendRingChange() descriptions 54 Table 34 ForwardingRingCheck() descriptions . 54 Table 35 AnnunciationBlockingPort() descriptions 54 Table 36 LocalDRPSequenceIDSmaller() descriptions . 55 Table 37 RecvAnnunciationWithinTimeLimit() descriptions . 55 Table 38 RecvLinkCheckWithinTimeLimit() desc
32、riptions . 55 Table 39 NoLocalLinkFault() descriptions 55 Table 40 RecvLinkAlarm() descriptions 56 Table 41 Clear_FDB() descriptions 56 Table 42 ChangeRingState() descriptions 56 Table 43 BlockingPortSelect() descriptions 56 Table 44 SendLinkChange() descriptions . 57 Table 45 DRPSequenceIDCompare()
33、 descriptions . 57 Table 46 ChangePortState() descriptions . 57 Table 47 ChangeDoublePortState() descriptions 57 Table 48 LocalSendRingCheck() descriptions 58 Table 49 DRPKeyParaConfigure() descriptions 58 Table 50 CheckMACAddress() descriptions . 58 Table 51 SetDRPKeyPara() descriptions 58 Table 52
34、 SendDeviceAnnunciation() descriptions . 59 Table 53 FaultRecvRingCheck() descriptions . 59 Table 54 RecordDeviceState() descriptions . 59 Table 55 DrpRecvMsg() descriptions . 59 Table 56 SendLinkAlarm() descriptions 60 Table 57 TimeUnsynchronization() descriptions . 60 Table 58 PassiveMasterState()
35、 descriptions 60 Table 59 SearchDeviceState() descriptions 60 Table A.1 An example of parameters setting for DRP Class . 62 Table A.2 Parameters for calculation of recovery time 63 62439-6 IEC:2010 5 INTERNATIONAL ELECTROTECHNICAL COMMISSION _ INDUSTRIAL COMMUNICATION NETWORKS HIGH AVAILABILITY AUTO
36、MATION NETWORKS Part 6: Distributed Redundancy Protocol (DRP) 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 c
37、o-operation on all questions concerning standardization 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
38、 to as “IEC Publication(s)”). Their preparation is 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 th
39、is preparation. IEC collaborates closely with the International Organization for Standardization (ISO) in accordance with conditions determined by agreement between the two organizations. 2) The formal decisions or agreements of IEC on technical matters express, as nearly as possible, an internation
40、al consensus of opinion on the relevant subjects since each technical committee has representation from all interested IEC National Committees. 3) IEC Publications have the form of recommendations for international use and are accepted by IEC National Committees in that sense. While all reasonable e
41、fforts are made to ensure that the technical content of IEC Publications is accurate, IEC cannot be held responsible for the way in which they are used or for any misinterpretation by any end user. 4) In order to promote international uniformity, IEC National Committees undertake to apply IEC Public
42、ations transparently to the maximum extent possible in their national and regional publications. Any divergence between any IEC Publication and the corresponding national or regional publication shall be clearly indicated in the latter. 5) IEC itself does not provide any attestation of conformity. I
43、ndependent certification bodies provide conformity assessment services and, in some areas, access to IEC marks of conformity. IEC is not responsible for any services carried out by independent certification bodies. 6) All users should ensure that they have the latest edition of this publication. 7)
44、No liability shall attach to IEC or its directors, employees, servants or agents including individual experts and members of its technical committees and IEC National Committees for any personal injury, property damage or other damage of any nature whatsoever, whether direct or indirect, or for cost
45、s (including legal fees) and expenses arising out of the publication, use of, or reliance upon, this IEC Publication or any other IEC Publications. 8) Attention is drawn to the Normative references cited in this publication. Use of the referenced publications is indispensable for the correct applica
46、tion of this publication. International Standard 62439-6 has been prepared by subcommittee 65C: Industrial Networks, of IEC technical committee 65: Industrial-process measurement, control and automation. This standard cancels and replaces IEC 62439 published in 2008. This first edition constitutes a
47、 technical revision. This edition includes the following significant technical changes with respect to IEC 62439 (2008): adding a calculation method for RSTP (rapid spanning tree protocol, IEEE 802.1Q), adding two new redundancy protocols: HSR (High-availability Seamless Redundancy) and DRP (Distrib
48、uted Redundancy Protocol), moving former Clauses 1 to 4 (introduction, definitions, general aspects) and the Annexes (taxonomy, availability calculation) to IEC 62439-1, which serves now as a base for the other documents, moving Clause 5 (MRP) to IEC 62439-2 with minor editorial changes, moving Clause 6 (PRP) was to IEC 62439-3 with minor editorial changes, 6 62439-6 IEC:2010 moving Clause 7 (CRP) was to IEC 62439-4 with minor editorial changes, and moving Clause 8 (BRP) was to IEC 62439-5 with minor editorial changes, adding a method to calculate the maximum recovery time of RSTP in a