1、 IEC 62439-7 Edition 1.0 2011-12 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial communication networks High availability automation networks Part 7: Ring-based Redundancy Protocol (RRP) Rseaux de communication industriels Rseaux de haute disponibilite pour lautomation Partie 7: Protocole de
2、redondance pour rseau en anneau (RRP) IEC62439-7:2011 colourinsideTHIS PUBLICATION IS COPYRIGHT PROTECTED Copyright 2011 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 mech
3、anical, 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 ad
4、dress below 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 pho
5、tocopie 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
6、de la CEI de votre pays de rsidence. IEC Central Office 3, rue de Varemb CH-1211 Geneva 20 Switzerland Email: inmailiec.ch Web: www.iec.ch About the IEC The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes International Standards for all
7、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. Catalogue of IEC publications: www.ie
8、c.ch/searchpub The IEC on-line Catalogue enables you to search by a variety of criteria (reference number, text, technical committee,). It also gives information on projects, withdrawn and replaced publications. IEC Just Published: www.iec.ch/online_news/justpub Stay up to date on all new IEC public
9、ations. Just Published details twice a month all new publications released. Available on-line and also by email. Electropedia: www.electropedia.org The worlds leading online dictionary of electronic and electrical terms containing more than 20 000 terms and definitions in English and French, with eq
10、uivalent terms in additional languages. Also known as the International Electrotechnical Vocabulary online. Customer Service Centre: www.iec.ch/webstore/custserv If you wish to give us your feedback on this publication or need further assistance, please visit the Customer Service Centre FAQ or conta
11、ct us: Email: csciec.ch Tel.: +41 22 919 02 11 Fax: +41 22 919 03 00 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 appar
12、entes. A propos des publications 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. Catalogue des publications de la CEI: www.iec.ch/searchpub/cur_fut-f.htm Le Catal
13、ogue en-ligne de la CEI vous permet deffectuer des recherches en utilisant diffrents critres (numro de rfrence, texte, comit dtudes,). Il donne aussi des informations sur les projets et les publications retires ou remplaces. Just Published CEI: www.iec.ch/online_news/justpub Restez inform sur les no
14、uvelles publications de la CEI. Just Published dtaille deux fois par mois les nouvelles publications parues. Disponible en-ligne et aussi par email. Electropedia: www.electropedia.org Le premier dictionnaire en ligne au monde de termes lectroniques et lectriques. Il contient plus de 20 000 termes et
15、 dfinitions en anglais et en franais, ainsi que les termes quivalents dans les langues additionnelles. Egalement appel Vocabulaire Electrotechnique International en ligne. Service Clients: www.iec.ch/webstore/custserv/custserv_entry-f.htm Si vous dsirez nous donner des commentaires sur cette publica
16、tion ou si vous avez des questions, visitez le FAQ du Service clients ou contactez-nous: Email: csciec.ch Tl.: +41 22 919 02 11 Fax: +41 22 919 03 00 IEC 62439-7 Edition 1.0 2011-12 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial communication networks High availability automation networks Pa
17、rt 7: Ring-based Redundancy Protocol (RRP) Rseaux de communication industriels Rseaux de haute disponibilite pour lautomation Partie 7: Protocole de redondance pour rseau en anneau (RRP) INTERNATIONAL ELECTROTECHNICAL COMMISSION COMMISSION ELECTROTECHNIQUE INTERNATIONALE XC ICS 25.040; 35.040 PRICE
18、CODE CODE PRIX ISBN 978-2-88912-838-9 Registered trademark of the International Electrotechnical Commission Marque dpose de la Commission Electrotechnique Internationale colourinside 2 62439-7 IEC:2011 CONTENTS FOREWORD . 6 INTRODUCTION . 8 1 Scope . 9 2 Normative references . 9 3 Terms, definitions
19、, abbreviations, acronyms, and conventions 9 3.1 Terms and definitions 9 3.2 Abbreviations and acronyms 10 3.3 Conventions 10 4 RRP overview . 11 4.1 General . 11 4.2 Frame forwarding and receiving control . 11 4.2.1 General . 11 4.2.2 Normal Device (ND) and Gateway Device (GWD) 11 4.2.3 Behaviours
20、of the General Device (GD) . 12 4.2.4 Behaviours of the Line Network Manager (LNM) 13 4.2.5 Behaviours of the Ring Network Managers (RNMs) . 13 4.3 Link status monitoring . 14 4.4 Error detection 14 4.5 Plug and play 14 4.6 Network management information base (NMIB) management 14 4.7 Network recover
21、y 15 4.8 Automatic network configuration 15 4.9 RRP basic operating principle . 15 5 RRP redundancy behaviours 17 5.1 Network topology. 17 5.2 Network recovery in ring network . 18 5.2.1 General . 18 5.2.2 Link fault between neighbouring devices . 20 5.2.3 Link fault of remote device . 21 5.2.4 Devi
22、ce fault on a RNM . 22 5.3 Automatic Ring Network Manager (RNM) election procedure . 23 5.3.1 General . 23 5.3.2 Primary RNM (RNMP) 23 5.3.3 Secondary RNM (RNMS) . 24 5.4 Path management . 24 5.4.1 General . 24 5.4.2 Path in a line topology network 24 5.4.3 Path in a ring topology network 25 5.5 Dev
23、ice address collision 26 6 RRP class specification 27 6.1 General . 27 6.2 Template . 27 6.3 Attributes. 29 7 RRP services specification . 34 7.1 Set device information . 34 7.2 Get device information 36 62439-7 IEC:2011 3 7.3 Get network information 38 7.4 Get path table information . 40 8 RRP prot
24、ocol specification 42 8.1 General . 42 8.2 Ethernet header 43 8.2.1 Preamble . 43 8.2.2 Start frame delimiter 43 8.2.3 Destination MAC address 43 8.2.4 Source MAC address . 43 8.2.5 Length/Type 43 8.3 Encoding of RRP_FrameHDR 43 8.3.1 Version and length 43 8.3.2 DST_addr 44 8.3.3 SRC_addr 45 8.3.4 F
25、rame Control (FC) . 45 8.4 Encoding of data and pad 47 8.4.1 General . 47 8.4.2 Encoding of FamilyReq 47 8.4.3 Encoding of FamilyRes 48 8.4.4 Encoding of MediaLinked . 48 8.4.5 Encoding of AdvThis 49 8.4.6 Encoding of LineStart 49 8.4.7 Encoding of RingStart 50 8.4.8 Encoding of AckRNMS 51 8.4.9 Enc
26、oding of CheckRNMS 52 8.5 Frame Check Sequence (FCS) 52 9 RRP protocol machine 52 9.1 Protocol state machine description 52 9.2 Local parameters and variables for protocol state 54 9.2.1 General . 54 9.2.2 Variables to support local device information management 54 9.2.3 Variables to support network
27、 information management 55 9.2.4 Variables to support device path information management 55 9.2.5 Variables of Received RRP Frame . 55 9.2.6 Local variables for protocol state . 56 9.2.7 Constants for protocol state . 56 9.3 State transitions 57 9.4 Function descriptions 70 10 RRP Management Informa
28、tion Base (MIB) . 75 Bibliography 81 Figure 1 Forwarding and receiving Ethernet frames . 11 Figure 2 Structures of ND and GWD 12 Figure 3 LNM forwarding control 13 Figure 4 RNM forwarding control 13 Figure 5 Link status information . 14 Figure 6 A device operation in initialization phase 15 4 62439-
29、7 IEC:2011 Figure 7 Devices operation in line network establishing phase . 16 Figure 8 Extension of line network operation 16 Figure 9 Ring network establishment operation 17 Figure 10 Ring to line network change operation 17 Figure 11 Ring topology . 18 Figure 12 Link fault between neighbouring dev
30、ices 21 Figure 13 Link fault of remote device . 22 Figure 14 Device fault on a RNM . 22 Figure 15 Path management in a line topology network 24 Figure 16 Path management in a ring topology network . 25 Figure 17 RRP device address collision in a ring network 26 Figure 18 Common MAC frame format for
31、RRP DLPDU . 43 Figure 19 RRP protocol state machine . 53 Table 1 RRP network recovery parameter 19 Table 2 Parameters for calculation . 19 Table 3 Path table of Device1 in a line topology network 24 Table 4 Path table of Device4 in a line topology network 25 Table 5 Path table of Device1 in a ring t
32、opology network . 25 Table 6 Path table of Device3 in a ring topology network . 26 Table 7 Device address collision information 27 Table 8 Parameters of set device information service 34 Table 9 Parameters of get device information service 36 Table 10 Parameters of get network information service 38
33、 Table 11 Parameters of get path table information service . 40 Table 12 RRP Length/Type field 43 Table 13 Version 44 Table 14 DST_addr 44 Table 15 SRC_addr . 45 Table 16 Network control message type . 45 Table 17 Type of service 45 Table 18 Priority 46 Table 19 Validation of extension code 46 Table
34、 20 Encoding of FamilyReq frame 47 Table 21 Encoding of FamilyRes frame 48 Table 22 Encoding of MediaLinked frame . 48 Table 23 Encoding of AdvThis frame 49 Table 24 Encoding of LineStart frame 49 Table 25 Encoding of RingStart frame 50 Table 26 Encoding of AckRNMS frame 51 Table 27 Encoding of Chec
35、kRNMS frame 52 Table 28 Variables to support device information management 54 Table 29 Variables to support managing network information . 55 62439-7 IEC:2011 5 Table 30 Variables to support device path information management 55 Table 31 Variables of Received RRP Frame 55 Table 32 Local variables fo
36、r protocol state . 56 Table 33 Constants for protocol state . 56 Table 34 RRP State transitions 57 Table 35 RRP Function descriptions 70 6 62439-7 IEC:2011 INTERNATIONAL ELECTROTECHNICAL COMMISSION _ INDUSTRIAL COMMUNICATION NETWORKS HIGH AVAILABILITY AUTOMATION NETWORKS Part 7: Ring-based Redundanc
37、y Protocol (RRP) 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 stand
38、ardization 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 preparati
39、on 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 this preparation. IEC collaborates closely with
40、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 international consensus of opinion on the relevant subjec
41、ts 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 efforts are made to ensure that the technical c
42、ontent 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 Publications transparently to the maximum extent pos
43、sible 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. Independent certification bodies provide confor
44、mity 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) No liability shall attach to IEC or its direct
45、ors, 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 costs (including legal fees) and expenses arising
46、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 application of this publication. 9) Attention is draw
47、n to the possibility that some of the elements of this IEC Publication may be the subject of patent rights. IEC shall not be held responsible for identifying any or all such patent rights. International Standard IEC 62439-7 has been prepared by subcommittee 65C: Industrial Networks, of IEC technical
48、 committee 65: Industrial-process measurement, control and automation. The text of this standard is based on the following documents: FDIS Report on voting 65C/668/FDIS 65C/673/RVD Full information on the voting for the approval of this standard can be found in the report on voting indicated in the
49、above table. This International Standard is to be read in conjunction with IEC 62439-1:2010, Industrial communication networks High availability automation networks Part 1: General concepts and calculation methods. 62439-7 IEC:2011 7 This publication has been drafted in accordance with the ISO/IEC Directives, Part 2. A lis