1、INTERNATIONALSTANDARDIEC62056-46First edition2002-02Electricity metering Data exchange for meter reading,tariff and load control Part 46:Data link layer using HDLC protocolReference numberIEC 62056-46:2002(E)Copyright International Electrotechnical Commission Provided by IHS under license with IECNo
2、t for ResaleNo reproduction or networking permitted without license from IHS-,-Publication numberingAs from 1 January 1997 all IEC publications are issued with a designation in the60000 series. For example, IEC 34-1 is now referred to as IEC 60034-1.Consolidated editionsThe IEC is now publishing con
3、solidated versions of its publications. For example,edition numbers 1.0, 1.1 and 1.2 refer, respectively, to the base publication, thebase publication incorporating amendment 1 and the base publication incorporatingamendments 1 and 2.Further information on IEC publicationsThe technical content of IE
4、C publications is kept under constant review by the IEC,thus ensuring that the content reflects current technology. Information relating tothis publication, including its validity, is available in the IEC Catalogue ofpublications (see below) in addition to new editions, amendments and corrigenda.Inf
5、ormation on the subjects under consideration and work in progress undertakenby the technical committee which has prepared this publication, as well as the listof publications issued, is also available from the following: IEC Web Site (www.iec.ch) Catalogue of IEC publicationsThe on-line catalogue on
6、 the IEC web site (www.iec.ch/catlg-e.htm) enablesyou to search by a variety of criteria including text searches, technicalcommittees and date of publication. On-line information is also available onrecently issued publications, withdrawn and replaced publications, as well ascorrigenda. IEC Just Pub
7、lishedThis summary of recently issued publications (www.iec.ch/JP.htm) is alsoavailable by email. Please contact the Customer Service Centre (see below) forfurther information. Customer Service CentreIf you have any questions regarding this publication or need further assistance,please contact the C
8、ustomer Service Centre:Email: custserviec.chTel: +41 22 919 02 11Fax: +41 22 919 03 00Copyright International Electrotechnical Commission Provided by IHS under license with IECNot for ResaleNo reproduction or networking permitted without license from IHS-,-INTERNATIONALSTANDARDIEC62056-46First editi
9、on2002-02Electricity metering Data exchange for meter reading,tariff and load control Part 46:Data link layer using HDLC protocolPRICE CODE IEC 2002 Copyright - all rights reservedNo part of this publication may be reproduced or utilized in any form or by any means, electronic ormechanical, includin
10、g photocopying and microfilm, without permission in writing from the publisher.International Electrotechnical Commission 3, rue de Varemb Geneva, SwitzerlandTelefax: +41 22 919 0300 e-mail: inmailiec.ch IEC web site http:/www.iec.chVFor price, see current catalogueCommission Electrotechnique Interna
11、tionaleInternational Electrotechnical CommissionCopyright International Electrotechnical Commission Provided by IHS under license with IECNot for ResaleNo reproduction or networking permitted without license from IHS-,- 2 62056-46 IEC:2002(E)CONTENTSFOREWORD 41 Scope.62 Normative references .63 Term
12、s, definitions and abbreviations 74 Overview 84.1 The LLC sub-layer.84.2 The MAC sub-layer84.3 Specification method .85 The LLC sub-layer95.1 The role of the LLC sub-layer 95.2 Service specification for the LLC sub-layer95.2.1 Setting up the Data Link Connection105.2.2 Disconnecting the Data Link Co
13、nnection135.2.3 Data communication 165.3 Protocol specification for the LLC sub-layer.205.3.1 Overview .205.3.2 LLC protocol data unit (LPDU) structure 205.3.3 State transition tables for the LLC sub-layer 216 The MAC sub-layer.226.1 HDLC selections226.2 Service specification for the MAC sub-layer.2
14、26.2.1 Setting up the MAC connection226.2.2 Disconnecting the MAC connection266.2.3 Data communication 306.3 Physical layer services used by the MAC sub-layer .326.3.1 Overview .326.3.2 Setting up a physical link .336.3.3 Disconnecting the physical link 336.3.4 Data communication 336.4 Protocol spec
15、ification for the MAC sub-layer .336.4.1 The MAC PDU and the HDLC frame 336.4.2 MAC addressing 356.4.3 Command and response frames 396.4.4 Elements of the procedures .426.4.5 State transition diagram for the server MAC sub-layer .57Annex A (informative) FCS calculation.59Annex B (informative) Data m
16、odel and protocol .62Annex C (informative) Data link layer management services 63Copyright International Electrotechnical Commission Provided by IHS under license with IECNot for ResaleNo reproduction or networking permitted without license from IHS-,-62056-46 IEC:2002(E) 3 Figure 1 Data Link (LLC)
17、services for setting up the Data Link Connection 10Figure 2 Data Link (LLC) services for disconnecting the Data Link Connection 13Figure 3 Data link layer data communication services 17Figure 4 The ISO/IEC 8802-2 LLC protocol data unit format.20Figure 5 The used LLC protocol data unit format20Figure
18、 6 MAC sub-layer services for setting up the MAC (DL) connection at the clientand server sides .23Figure 7 MAC sub-layer services for disconnecting the MAC (DL) connection at theclient and server sides 26Figure 8 MAC sub-layer data communication services .30Figure 9 Physical layer services used by t
19、he MAC sub-layer33Figure 10 MAC sub-layer frame format (HDLC frame format type 3).34Figure 11 Multiple frames.34Figure 12 The frame format field 34Figure 13 MSC for long MSDU transfer in a transparent manner 51Figure 14 Example configuration to illustrate broadcasting.52Figure 15 Sending out a pendi
20、ng UI frame with a .response data.53Figure 16 Sending out a pending UI frame with a response to a RR frame .54Figure 17 Sending out a pending UI frame on receipt of an empty UI frame .54Figure 18 State transition diagram for the server MAC sub-layer58Figure B.1 The three-step approach of COSEM .62Fi
21、gure C.1 Layer management services .63Table 1 State transition table of the client side LLC sub-layer 21Table 2 State transition table of the server side LLC sub-layer.21Table 3 Table of reserved client addresses 37Table 4 Table of reserved server addresses.37Table 5 Handling inopportune address len
22、gths.39Table 6 Command and response frames 39Table 7 Control field format40Table 8 Example for parameter negotiation values with the SNRM/UA frames .47Table 9 Summary of MAC Addresses for the example52Table 10 Broadcast UI frame handling .52Copyright International Electrotechnical Commission Provide
23、d by IHS under license with IECNot for ResaleNo reproduction or networking permitted without license from IHS-,- 4 62056-46 IEC:2002(E)INTERNATIONAL ELECTROTECHNICAL COMMISSION_ELECTRICITY METERING DATA EXCHANGEFOR METER READING, TARIFF AND LOAD CONTROL Part 46: Data link layer using HDLC protocolFO
24、REWORD1) The IEC (International Electrotechnical Commission) is a worldwide organization for standardization comprisingall national electrotechnical committees (IEC National Committees). The object of the IEC is to promote inter-national co-operation on all questions concerning standardization in th
25、e electrical and electronic fields. To thisend and in addition to other activities, the IEC publishes International Standards. Their preparation is entrustedto technical committees; any IEC National Committee interested in the subject dealt with may participate in thispreparatory work. International
26、, governmental and non-governmental organizations liaising with the IEC alsoparticipate in this preparation. The IEC collaborates closely with the International Organization for Standardiza-tion (ISO) in accordance with conditions determined by agreement between the two organizations.2) The formal d
27、ecisions or agreements of the IEC on technical matters express, as nearly as possible, an interna-tional consensus of opinion on the relevant subjects since each technical committee has representation from allinterested National Committees.3) The documents produced have the form of recommendations f
28、or international use and are published in the formof standards, technical specifications, technical reports or guides and they are accepted by the National Com-mittees in that sense.4) In order to promote international unification, IEC National Committees undertake to apply IEC InternationalStandard
29、s transparently to the maximum extent possible in their national and regional standards. Any diver-gence between the IEC Standard and the corresponding national or regional standard shall be clearly indicatedin the latter.5) The IEC provides no marking procedure to indicate its approval and cannot b
30、e rendered responsible for anyequipment declared to be in conformity with one of its standards.The International Electrotechnical Commission (IEC) draws attention to the fact that it is claimed that compliancewith this International Standard may involve the use of a maintenance service concerning th
31、e stack of protocols onwhich the present standard IEC 62056-46 is based.The IEC takes no position concerning the evidence, validity and scope of this maintenance service.The provider of the maintenance service has assured the IEC that he is willing to provide services under reason-able and non-discr
32、iminatory terms and conditions for applicants throughout the world. In this respect, the statementof the provider of the maintenance service is registered with the IEC. Information may be obtained from:DLMS1User AssociationGeneva / Switzerlandwww.dlms.chInternational Standard IEC 62056-46 has been p
33、repared by IEC technical committee 13:Equipment for electrical energy measurement and load control.The text of this standard is based on the following documents:FDIS Report on voting13/1267/FDIS 13/1273/RVDFull information on the voting for the approval of this standard can be found in the report on
34、voting indicated in the above table.This publication has been drafted in accordance with the ISO/IEC Directives, Part 3._1Device Language Message Specification.Copyright International Electrotechnical Commission Provided by IHS under license with IECNot for ResaleNo reproduction or networking permit
35、ted without license from IHS-,-62056-46 IEC:2002(E) 5 Annexes A, B and C are for information only.The committee has decided that the contents of this publication will remain unchanged until2006. At this date, the publication will be reconfirmed; withdrawn; replaced by a revised edition, or amended.A
36、 bilingual version of this publication may be issued at a later date.Copyright International Electrotechnical Commission Provided by IHS under license with IECNot for ResaleNo reproduction or networking permitted without license from IHS-,- 6 62056-46 IEC:2002(E)ELECTRICITY METERING DATA ECHANGEFOR
37、METER READING, TARIFF AND LOAD CONTROL Part 46: Data link layer using HDLC protocol1 ScopeThis part of IEC 62056 specifies the data link layer for connection-oriented, HDLC-based,asynchronous communication profile.In order to ensure a coherent data link layer service specification for both connectio
38、n-orientedand connectionless operation modes, the data link layer is divided into two sub-layers: theLogical Link Control (LLC) sub-layer and the Medium Access Control (MAC) sub-layer.This specification supports the following communication environments: point-to-point and point-to-multipoint configu
39、rations; dedicated and switched data transmission facilities; half-duplex and full-duplex connections; asynchronous start/stop transmission, with 1 start bit, 8 data bits, no parity, 1 stop bit.Two special procedures are also defined: transferring of separately received Service User layer PDU parts
40、from the server to theclient in a transparent manner. The server side Service user layer can give its PDU to thedata link layer in fragments and the data link layer can hide this fragmentation from theclient; event reporting, by sending UI frames from the secondary station to the primary station.Ann
41、ex B gives an explanation of the role of data models and protocols in electricity meterdata exchange.2 Normative referencesThe following referenced documents are indispensable for the application of this document.For dated references, only the edition cited applies. For undated references, the lates
42、t editionof the referenced document (including any amendments) applies.IEC 60050-300:2001, International Electrotechnical Vocabulary Electrical and electronicmeasurements and measuring instruments Part 311: General terms relating to measure-ments Part 312: General terms relating to electrical measur
43、ements Part 313: Types ofelectrical measuring instruments Part 314: Specific terms according to the type of instru-mentIEC/TR 62051:1999, Electricity metering Glossary of termsIEC 62056-42, Electricity metering Data exchange for meter reading, tariff and load control Part 42: Physical layer services
44、 and procedures for connection oriented asynchronous dataexchange 1)_1)To be published.Copyright International Electrotechnical Commission Provided by IHS under license with IECNot for ResaleNo reproduction or networking permitted without license from IHS-,-62056-46 IEC:2002(E) 7 IEC 62056-53, Elect
45、ricity metering Data exchange for meter reading, tariff and load control Part 53 COSEM Application layer 1)IEC 62056-61, Electricity metering Data exchange for meter reading, tariff and load control Part 61 OBIS Object Identification System 1)IEC 62056-62, Data exchange for meter reading, tariff and
46、 load control Part 62: InterfaceClasses 1)ISO/IEC 8802-2:1998, Information technology Telecommunications and information exchangebetween systems Local and metropolitan area networks Specific requirements Part 2:Logical link controlISO/IEC 13239:2000, Information Technology Telecommunications and inf
47、ormation ex-change between systems High-level data link control (HDLC) procedures3 Terms, definitions and abbreviations3.1 Terms and definitionsFor the purpose of this part of IEC 62056, the definitions found in IEC 60050-300 and IEC/TR62051 apply.3.2 AbbreviationsAPDU Application layer Protocol Dat
48、a UnitCOSEM COmpanion Specification for Energy MeteringDISC DISConnect (an HDLC frame type)DL Data LinkDM Disconnected Mode (an HDLC frame type)DPDU Data link Protocol Data UnitDSAP Data link Service Access PointDSDU Data link Service Data UnitFCS Frame Check SequenceFRMR FRaMe Reject (an HDLC frame type)HCS Header Check SequenceHDLC High-level Data Link ControlI Information (an HDLC frame type)LLC Logical Link Control (Sub-layer)LSAP LLC sub-layer Service Access PointLPDU LLC Protocol Data UnitLSB Least Significant BitLSDU LLC