1、 IEC 61588Edition 2.0g2 2009-02INTERNATIONAL STANDARD Precision clock synchronization protocol for networked measurement and control systems IEC 61588:2009(E)IEEE Std. 1588(E):2008 IEEE 1588THIS PUBLICATION IS COPYRIGHT PROTECTED Copyright 2008 IEEE All rights reserved. IEEE is a registered trademar
2、k in the U.S. Patent 35.110, 35.240.50 PRICE CODEISBN 2-8318-1026-3IEEE 1588Foreword.xiIEEE introduction. xiv1. Overview 11.1 Scope . 11.2 Purpose 21.3 Layout of the document. 22. Normative references 33. Definitions, acronyms, and abbreviations 43.1 Definitions . 43.2 Acronyms and abbreviations . 7
3、4. Conventions 84.1 Descriptive lexical form syntax . 84.2 Word usage 94.3 Behavioral specification notation 105. Data types and on-the-wire formats in a PTP system. 115.1 General 115.2 Primitive data type specifications 115.3 Derived data type specifications 125.4 On-the-wire formats 156. Clock syn
4、chronization model . 166.1 General 166.2 Principle assumptions about the network and implementation recommendations. 166.3 PTP systems. 176.4 PTP message classes 176.5 PTP device types . 186.6 Synchronization overview . 296.7 PTP communications overview . 377. Characterization of PTP entities . 417.
5、1 Domains. 417.2 PTP timescale 417.3 PTP communications. 427.4 PTP communication media 467.5 PTP ports . 477.6 PTP device characterization 537.7 PTP timing characterization 618. PTP data sets 638.1 General specifications for data set members . 638.2 Data sets for ordinary and boundary clocks. 658.3
6、Data sets for transparent clocks . 749. PTP for ordinary and boundary clocks . 769.1 General protocol requirements for PTP ordinary and boundary clocks. 769.2 State protocol. 769.3 Best master clock algorithm 839.4 Grandmaster clocks . 929.5 Message processing semantics 939.6 Changes in the local cl
7、ock . 10710. PTP for transparent clocks 10710.1 General requirements for both end-to-end and peer-to-peer transparent clocks 10710.2 End-to-end transparent clock requirements . 108CONTENTSPublished by IEC under licence from IEEE. 2008 IEEE. All rights reserved.IEC 61588:2009(E)IEEE 1588-2008(E) i 10
8、.3 Peer-to-peer transparent clock requirements 10811. Clock offset, path delay, residence time, and asymmetry corrections 10811.1 General specifications 10811.2 Computation of clock offset in ordinary and boundary clocks 10911.3 Delay request-response mechanism. 11011.4 Peer delay mechanism . 11211.
9、5 Transparent clock residence time correction for PTP version 2 events . 11711.6 Asymmetry correction for PTP version 2 event messages. 12012. Synchronization and syntonization of clocks . 12212.1 Syntonization. 12212.2 Synchronization. 12313. PTP message formats . 12413.1 General 12413.2 General me
10、ssage format requirements. 12413.3 Header 12413.4 Suffix . 12813.5 Announce message 12813.6 Sync and Delay_Req messages 13013.7 Follow_Up message 13013.8 Delay_Resp message . 13013.9 Pdelay_Req message . 13113.10 Pdelay_Resp message 13113.11 Pdelay_Resp_Follow_Up message 13213.12 Signaling message .
11、 13213.13 Management message 13314. TLV entity specifications . 13314.1 General requirements. 13314.2 Experimental TLVs . 13414.3 Vendor and standard organization extension TLVs. 13515. Management . 13515.1 General 13515.2 PTP management mechanism 13615.3 Processing of management messages 13615.4 Ma
12、nagement message format 13715.5 Management TLVs 13816. General optional features 15816.1 Unicast message negotiation (optional). 15816.2 Path trace (optional). 16316.3 Alternate timescales (optional) 16517. State configuration options. 16917.1 General 16917.2 Data types for options 16917.3 Grandmast
13、er clusters (optional). 17017.4 Alternate master (optional) 17217.5 Unicast discovery (optional) 17317.6 Acceptable master table (optional) 17518. Compatibility requirements 17718.1 Compatibility between version 2 and future versions 17718.2 Compatibility between version 1 and version 2. 17718.3 Mes
14、sage formats and data types 17818.4 Naming changes 18318.5 Restrictions on mixed version 1 and version 2 systems. 183Published by IEC under licence from IEEE. 2008 IEEE. All rights reserved.IEC 61588:2009(E)IEEE 1588-2008(E) ii 19. Conformance 18419.1 Conformance objective 18419.2 PTP conformance re
15、quirements. 18419.3 PTP profiles . 185Annex A (informative) Using PTP. 187Annex B (informative) Timescales and epochs in PTP197Annex C (informative) Examples of residence and asymmetry corrections. 200Annex D (normative) Transport of PTP over User Datagram Protocol over Internet Protocol Version 4 .
16、 219Annex E (normative) Transport of PTP over User Datagram Protocol over Internet Protocol Version 6 221Annex F (normative) Transport of PTP over IEEE 802.3 /Ethernet. 223Annex G (normative) Transport of PTP over DeviceNET . 225Annex H (normative) Transport of PTP over ControlNET 228Annex I (normat
17、ive) Transport of PTP over IEC 61158 Type 10 230Annex J (normative) Default PTP profiles . 237Annex K (informative) Security protocol (experimental) 241Annex L (informative) Transport of cumulative frequency scale factor offset (experimental) 264Annex M (informative) Bibliography. 268Annex N (inform
18、ative) List of partcipants. 270Published by IEC under licence from IEEE. 2008 IEEE. All rights reserved.IEC 61588:2009(E)IEEE 1588-2008(E) iii TABLES Table 1 Primitive PTP data types . 12Table 2 domainNumber 41Table 3 networkProtocol enumeration . 46Table 4 Non-EUI-64 addressTechnology enumeration 5
19、1Table 5 clockClass specifications. 55Table 6 clockAccuracy enumeration 56Table 7 timeSource enumeration 57Table 8 PTP state enumeration.73Table 9 Delay mechanism enumeration . 74Table 10 PTP portState definition 77Table 11 Event applicability in boundary clocks 83Table 12 Information sources for da
20、ta set comparison algorithm 88Table 13 Updates for state decision code M1 and M2 . 91Table 14 Updates for state decision code M3. 91Table 15 Updates for state decision code P1, and P2 . 91Table 16 Updates for state decision code S1 92Table 17 Source identity comparisons 95Table 18 Common message hea
21、der 124Table 19 Values of messageType field. 125Table 20 Values of flagField 126Table 21 correctionField semantics 127Table 22 References for sequenceId value exceptions . 127Table 23 controlField enumeration. 128Table 24 Values of logMessageInterval field. 128Table 25 Announce message fields 129Tab
22、le 26 Sync and Delay_Req message fields . 130Table 27 Follow_Up message fields 130Table 28 Delay_Resp message fields . 130Table 29 Pdelay_Req message fields . 131Table 30 Pdelay_Resp message fields 131Table 31 Pdelay_Resp_Follow_Up message fields 132Table 32 Acceptance of signaling messages 132Table
23、 33 Signaling message fields . 133Published by IEC under licence from IEEE. 2008 IEEE. All rights reserved.IEC 61588:2009(E)IEEE 1588-2008(E) ivTable 34 tlvType values . 134Table 35 Organization specific TLV fields 135Table 36 Acceptance of management messages. 136Table 37 Management message fields
24、137Table 38 Values of the actionField. 138Table 39 Management TLV fields 139Table 40 managementId values 140Table 41 CLOCK_DESCRIPTION management TLV data field 141Table 42 clockType specification. 142Table 43 USER_DESCRIPTION management TLV data field . 144Table 44 INITIALIZE management TLV data fi
25、eld 145Table 45 INITIALIZATION_KEY enumeration . 145Table 46 Fault log severityCode enumeration 145Table 47 FAULT_LOG management TLV data field 146Table 48 TIME management TLV data field . 147Table 49 CLOCK_ACCURACY management TLV data field . 147Table 50 DEFAULT_DATA_SET management TLV data field.
26、148Table 51 PRIORITY1 management TLV data field. 148Table 52 PRIORITY2 management TLV data field. 149Table 53 DOMAIN management TLV data field. 149Table 54 SLAVE_ONLY management TLV data field . 149Table 55 CURRENT_DATA_SET management TLV data field 149Table 56 PARENT_DATA_SET management TLV data fi
27、eld . 150Table 57 TIME_PROPERTIES_DATA_SET management TLV data field 151Table 58 UTC_PROPERTIES management TLV data field 152Table 59 TRACEABILITY_PROPERTIES management TLV data field. 152Table 60 TIMESCALE_PROPERTIES management TLV data field . 152Table 61 PORT_DATA_SET management TLV data field. 1
28、53Table 62 LOG_ANNOUNCE_INTERVAL management TLV data field. 154Table 63 ANNOUNCE_RECEIPT_TIMEOUT management TLV data field. 154Table 64 LOG_SYNC_INTERVAL management TLV data field 154Table 65 DELAY_MECHANISM management TLV data field . 155Table 66 LOG_MIN_PDELAY_REQ_INTERVAL management TLV data fiel
29、d 155Table 67 VERSION_NUMBER management TLV data field. 155Table 68 TRANSPARENT_CLOCK_DEFAULT_DATA_SET management TLV data field. 156Published by IEC under licence from IEEE. 2008 IEEE. All rights reserved.IEC 61588:2009(E)IEEE 1588-2008(E) v Table 69 PRIMARY_DOMAIN management TLV data field. 156Tab
30、le 70 TRANSPARENT_CLOCK_PORT_DATA_SET management TLV data field. 157Table 71 MANAGEMENT_ERROR_STATUS TLV format 157Table 72 managementErrorId enumeration 158Table 73 REQUEST_UNICAST_TRANSMISSION TLV format 160Table 74 GRANT_UNICAST_TRANSMISSION TLV format 161Table 75 CANCEL_UNICAST_TRANSMISSION TLV
31、format 161Table 76 ACKNOWLEDGE_CANCEL_UNICAST_TRANSMISSION TLV format . 162Table 77 UNICAST_NEGOTIATION_ENABLE management TLV data field . 162Table 78 PATH_TRACE TLV format . 164Table 79 PATH_TRACE_LIST management TLV data field . 164Table 80 PATH_TRACE_ENABLE management TLV data field 164Table 81 A
32、LTERNATE_TIME_OFFSET_INDICATOR TLV format . 166Table 82 ALTERNATE_TIME_OFFSET_ENABLE management TLV data field 167Table 83 ALTERNATE_TIME_OFFSET_NAME management TLV data field 167Table 84 ALTERNATE_TIME_OFFSET_MAX_KEY management TLV data field 168Table 85 ALTERNATE_TIME_OFFSET_PROPERTIES management
33、TLV data field 168Table 86 GRANDMASTER_CLUSTER_TABLE management TLV data field 171Table 87 Alternate master attributes. 173Table 88 ALTERNATE_MASTER management TLV data field 173Table 89 UNICAST_MASTER_TABLE management TLV data field. 174Table 90 UNICAST_MASTER_MAX_TABLE_SIZE management TLV data fie
34、ld . 175Table 91 Operation of acceptable master table option . 176Table 92 ACCEPTABLE_MASTER_TABLE management TLV data field. 176Table 93 ACCEPTABLE_MASTER_MAX_TABLE_SIZE management TLV data field. 177Table 94 ACCEPTABLE_MASTER_TABLE_ENABLED management TLV data field 177Table 95 Version 1 stratum to
35、 version 2 class 178Table 96 Version 2 clockClass to version 1 stratum 178Table 97 Version 1 to version 2 translation of grandmasterIsPreferred field. 179Table 98 Version 2 to version 1 translation of the priority1 field 179Table 99 Version 1 clock identifier to version 2 clockAccuracy 179Table 100
36、Version 2 clockAccuracy to version 1 clock identifier. 179Table 101 Version 1 to version 2 translation of grandmasterIsBoundaryClock field 180Table 102 Version 2 to version 1 translation of the priority2 field 180Table 103 Version 1 control field and version 2 messageType field mappings 180Table 104
37、 Translation of flagField from version 1 to version 2 181Published by IEC under licence from IEEE. 2008 IEEE. All rights reserved.IEC 61588:2009(E)IEEE 1588-2008(E) vi Table 105 Translation of flagField from version 2 to version 1 181Table 106 Version 2 fields with no version 1 counterpart. 182Table
38、 107 Version 1 fields with no version 2 counterpart. 183Table 108 Name correspondence. 183Table 109 Mixed system restrictions. 184Table B.1Relationships between timescales. 199Table C.1Interpretation of Figure C.1 key values 202Table C.2Interpretation of Figure C.2 key values 203Table C.3Interpretat
39、ion of Figure C.3 key values 205Table C.4Interpretation of Figure C.4 key values 207Table C.5Interpretation of Figure C.5 key values 209Table C.6Interpretation of Figure C.6 key values 210Table C.7Interpretation of Figure C.7 key values 211Table C.8Interpretation of Figure C.8 key values 213Table C.
40、9Interpretation of Figure C.9 key values 215Table C.10Interpretation of Figure C.10 key values. 217Table C.11Interpretation of Figure C.11 key values. 218Table D.1IPv4 multicast addresses. 219Table D.2transportSpecific field values . 220Table E.1IPv6 multicast addresses . 222Table F.1Multicast MAC a
41、ddresses . 223Table F.2Ethernet transport specific field.224Table G.1DeviceNet clockIdentity octets 0 through 7 226Table G.2DeviceNet headers for all PTP message packets 226Table H.1ControlNet clockIdentity octets 2 through 7. 228Table I.1Mapping of messages. 231Table I.2IEEE 802.3 DLPDU syntax . 23
42、2Table I.3Multicast MAC address 233Table I.4LT (Length/Type). 234Table I.6Mapping of the parameter and attribute names 235Table I.7Translation of flagField from PTP version 2 to PROFINET 236Table K.1flagField.SECURE flag 242Table K.2AUTHENTICATION TLV 260Table K.3algorithmId values 261Table K.4ICV a
43、nd pad length. 261Table K.5AUTHENTICATION_CHALLENGE TLV 262Published by IEC under licence from IEEE. 2008 IEEE. All rights reserved.IEC 61588:2009(E)IEEE 1588-2008(E) vii Table K.6challengeType values . 262Table K.7SECURITY_ASSOCIATION_UPDATE TLV 263Table K.8addressType values. 263Table L.1CUM_FREQ_
44、SCALE_FACTOR_OFFSET TLV format 266Published by IEC under licence from IEEE. 2008 IEEE. All rights reserved.IEC 61588:2009(E)IEEE 1588-2008(E) viii FIGURESFigure 1 Mealy state transition diagram 10Figure 2 Model of an ordinary clock . 19Figure 3 Model of a boundary clock 21Figure 4 Model of an end-to
45、-end transparent clock. 22Figure 5 End-to-end residence time correction model. 23Figure 6 Combined ordinary and end-to-end transparent clock. 25Figure 7 Model of a peer-to-peer transparent clock. 27Figure 8 Peer-to-peer residence time and link delay correction model 28Figure 9 Combined ordinary and
46、peer-to-peer transparent clock. . 30Figure 10 Simple masterslave clock hierarchy . 32Figure 11 Pruned mesh topology 33Figure 12 Basic synchronization message exchange 34Figure 13 Link delay measurement. 35Figure 14 Timestamp generation model 36Figure 15 Hierarchical topology . 37Figure 16 Linear top
47、ology.38Figure 17 Multiply connected topology 39Figure 18 Bridging disparate technologies 40Figure 19 Definition of latency constants . 45Figure 20 Propagation asymmetry 47Figure 21 Port model 48Figure 22 Scaled log variance hysteresis 60Figure 23 State machine for a full implementation. 78Figure 24
48、 State machine for a slave-only implementation 79Figure 25 STATE_DECISION_EVENT logic . 81Figure 26 State decision algorithm . 87Figure 27 Data set comparison algorithm, part 1 89Figure 28 Data set comparison algorithm, part 2 90Figure 29 Receipt of Announce message logic. 96Figure 30 Receipt of Syn
49、c message logic . 98Figure 31 Receipt of Follow_Up message logic . 100Figure 32 Receipt of Delay_Req message logic . 101Figure 33 Receipt of Delay_Resp message logic 103Figure 34 Delay request-response path length measurement 110Published by IEC under licence from IEEE. 2008 IEEE. All rights reserved.IEC 61588:2009(E)IEEE 1588-2008(E) ixFigure 35 Peer delay link measurement 113
copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1