1、BSI Standards PublicationElectricity metering data exchange The DLMS/COSEM suitePart 9-7: Communication profile for TCP-UDP/IP networksBS EN 62056-9-7:2013National forewordThis British Standard is the UK implementation of EN 62056-9-7:2013. It isidentical to IEC 62056-9-7:2013. It partially supersed
2、es BS EN62056-53:2007.The UK participation in its preparation was entrusted to TechnicalCommittee PEL/13, Electricity Meters.A list of organizations represented on this committee can be obtained onrequest to its secretary.This publication does not purport to include all the necessary provisions ofa
3、contract. Users are responsible for its correct application. The British Standards Institution 2013.Published by BSI Standards Limited 2013ISBN 978 0 580 75065 6ICS 17.220; 35.110; 91.140.50Compliance with a British Standard cannot confer immunity fromlegal obligations.This British Standard was publ
4、ished under the authority of theStandards Policy and Strategy Committee on 31 October 2013.Amendments/corrigenda issued since publicationDate Text affectedBRITISH STANDARDBS EN 62056-9-7:2013EUROPEAN STANDARD EN 62056-9-7 NORME EUROPENNE EUROPISCHE NORM October 2013 CENELEC European Committee for El
5、ectrotechnical Standardization Comit Europen de Normalisation Electrotechnique Europisches Komitee fr Elektrotechnische Normung CEN-CENELEC Management Centre: Avenue Marnix 17, B - 1000 Brussels 2013 CENELEC - All rights of exploitation in any form and by any means reserved worldwide for CENELEC mem
6、bers. Ref. No. EN 62056-9-7:2013 E ICS 17.220; 35.110; 91.140.50 Supersedes EN 62056-53:2007 (partially) English version Electricity metering data exchange - The DLMS/COSEM suite - Part 9-7: Communication profile for TCP-UDP/IP networks (IEC 62056-9-7:2013) change des donnes de comptage de llectrici
7、t - La suite DLMS/COSEM - Partie 9-7: Profil de communication pour rseaux TCP-UDP/IP (CEI 62056-9-7:2013) Datenkommunikation der elektrischen Energiemessung - DLMS/COSEM - Teil 9-7: Festlegungen zur Nutzung von TCP-UDP/IP-Netzen (IEC 62056-9-7:2013) This European Standard was approved by CENELEC on
8、2013-05-28. CENELEC members are bound to comply with the CEN/CENELEC Internal Regulations which stipulate the conditions for giving this European Standard the status of a national standard without any alteration. Up-to-date lists and bibliographical references concerning such national standards may
9、be obtained on application to the CEN-CENELEC Management Centre or to any CENELEC member. This European Standard exists in three official versions (English, French, German). A version in any other language made by translation under the responsibility of a CENELEC member into its own language and not
10、ified to the CEN-CENELEC Management Centre has the same status as the official versions. CENELEC members are the national electrotechnical committees of Austria, Belgium, Bulgaria, Croatia, Cyprus, the Czech Republic, Denmark, Estonia, Finland, Former Yugoslav Republic of Macedonia, France, Germany,
11、 Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, the Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, Switzerland, Turkey and the United Kingdom. BS EN 62056-9-7:2013EN 62056-9-7:2013 - 2 - Foreword The text of document 13/1520/FDIS,
12、future edition 1 of IEC 62056-9-7, prepared by IEC/TC 13 “Electrical energy measurement, tariff- and load control“ was submitted to the IEC-CENELEC parallel vote and approved by CENELEC as EN 62056-9-7:2013. The following dates are fixed: latest date by which the document has to be implemented at na
13、tional level by publication of an identical national standard or by endorsement (dop) 2014-04-04 latest date by which the national standards conflicting with the document have to be withdrawn (dow) 2016-05-28 This document supersedes EN 62056-53:2007 (PART). EN 62056-9-7:2013 includes the following
14、significant technical changes with respect to EN 62056-53:2007: Note: Whereas IEC 62056-53 Ed. 2.0 contains the specification of the DLMS/COSEM communication profiles, IEC 62056-5-3 Ed.1.0 replacing the earlier edition does not. The title of the standard has been aligned with the title of other part
15、s of the revised IEC 62056 series; Clause 4, Targeted communication environments has been extended, a functional reference architecture figure has been added; Clause 5, The structure of the profile(s) has been extended, the Figure has been generalized and simplified; In clause 6, Identification and
16、addressing scheme, the port number assigned by the IANA for DLMS/COSEM has been added; In subclause 9.1, Two paragraphs specifying how confirmed and unconfirmed COSEM-OPEN and xDLMS service invocations have been added; Subclause 9.6, Transporting long messages, has been amended. It specifies now tha
17、t for transporting long messages, application layer block transfer can be used (also available now with SN referencing); The clause on Multi-drop configurations has been removed. Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. CEN
18、ELEC and/or CEN shall not be held responsible for identifying any or all such patent rights. Endorsement notice The text of the International Standard IEC 62056-9-7:2013 was approved by CENELEC as a European Standard without any modification. In the official version, for Bibliography, the following
19、notes have to be added for the standards indicated: IEC 62056-6-1 NOTE Harmonised as EN 62056-6-11)(not modified). IEC 62056-6-2 NOTE Harmonised as EN 62056-6-21)(not modified). 1)at draft stage. BS EN 62056-9-7:2013- 3 - EN 62056-9-7:2013 Annex ZA (normative) Normative references to international p
20、ublications with their corresponding European publications The following documents, in whole or in part, are normatively referenced in this document and are indispensable for its application. For dated references, only the edition cited applies. For undated references, the latest edition of the refe
21、renced document (including any amendments) applies. NOTE When an international publication has been modified by common modifications, indicated by (mod), the relevant EN/HD applies. Publication Year Title EN/HD Year IEC 62056-5-3 2)- Electricity metering data exchange - The DLMS/COSEM suite - Part 5
22、-3: DLMS/COSEM application layer EN 62056-5-3 2)- IEC 62056-47 2006 Electricity metering - Data exchange for meter reading, tariff and load control - Part 47: COSEM transport layers for IPv4 networks EN 62056-47 2007 2)At draft stage. BS EN 62056-9-7:2013 2 62056-9-7 IEC:2013 CONTENTS 1 Scope . 5 2
23、Normative references . 5 3 Terms, definitions and abbreviations 5 Terms and definitions 5 3.1Abbreviations 5 3.24 Targeted communication environments . 6 5 Structure of the profile(s) 7 6 Identification and addressing scheme . 8 7 Supporting layer services and service mapping 10 8 Communication prof
24、ile specific service parameters of the COSEM AL services 11 9 Specific considerations / constraints . 12 Confirmed and unconfirmed AAs and service invocations, packet types used 12 9.1Releasing application associations: using RLRQ/RLRE is mandatory 13 9.2Service parameters of the COSEM-OPEN / -RELEA
25、SE / -ABORT services 13 9.3xDLMS client/server type services . 13 9.4EventNotification Service and TriggerEventNotificationSending service . 13 9.5Transporting long messages 13 9.6Allowing COSEM servers to establish the TCP connection 14 9.7The COSEM TCP-UDP/IP profile and real-world IP networks . 1
26、4 9.8Bibliography 15 Index 17 Figure 1 Communication architecture . 7 Figure 2 Examples for lower-layer protocols in the TCP-UDP/IP based profile(s) . 8 Figure 3 Identification / addressing scheme in the TCP-UDP/IP based profile(s) . 10 Figure 4 Summary of TCP / UDP layer services . 11 Table 1 Appli
27、cation associations and data exchange in the TCP-UDP/IP based profile . 12 BS EN 62056-9-7:201362056-9-7 IEC:2013 5 ELECTRICITY METERING DATA EXCHANGE THE DLMS/COSEM SUITE Part 9-7: Communication profile for TCP-UDP/IP networks 1 Scope This part of IEC 62056 specifies the DLMS/COSEM communication pr
28、ofile for TCP-UDP/IP networks. 2 Normative references The following documents, in whole or in part, are normatively referenced in this document and are indispensable for its application. For dated references, only the edition cited applies. For undated references, the latest edition of the reference
29、d document (including any amendments) applies. IEC 62056-47:2006, Electricity metering Data exchange for meter reading, tariff and load control Part 47: COSEM transport layer for IPv4 networks IEC 62056-5-3:2013, Electricity metering data exchange The DLMS/COSEM suite Part 5-3: DLMS/COSEM applicatio
30、n layer NOTE See also the Bibliography. 3 Terms, definitions and abbreviations For the purposes of this document, the following terms, definitions and abbreviations apply. Terms and definitions 3.13.1.1client a station, asking for services. Normally the master station 3.1.2server a station, deliveri
31、ng services. The tariff device (meter) is normally the server, delivering the requested values or executing the requested tasks Abbreviations 3.2AA Application Association AARE A-Associate Response an APDU of the ACSE AARQ A-Associate Request an APDU of the ACSE ACSE Association Control Service Elem
32、ent AL Application Layer AP Application Process APDU Application Layer Protocol Data Unit BS EN 62056-9-7:2013 6 62056-9-7 IEC:2013 ARP Address Resolution Protocol ASE Application Service Element ATM Asynchronous Transfer Mode COSEM Companion Specification for Energy Metering DLMS Device Language Me
33、ssage Specification FDDI Fiber Distributed Data Interface HDLC High-level Data Link Control HTTP Hypertext Transfer Protocol IEEE Institute of Electrical and Electronics Engineers ISO International Organization for Standardization IP Internet Protocol LN Local Network NN Neighbourhood Network OSI Op
34、en System Interconnection PDU Protocol Data Unit PhL Physical Layer PPP Point-to-Point Protocol RLRE A-Release Response an APDU of the ACSE RLRQ A-Release Request an APDU of the ACSE SAP Service Access Point TCP Transmission Control Protocol TL Transport Layer UDP User Datagram Protocol WAN Wide Are
35、a Network xDLMS Extended DLMS 4 Targeted communication environments The TCP-UDP/IP based communication profiles are suitable for remote data exchange with metering equipment via IP enabled networks such as wide area networks, neighbourhood networks or local networks. This is shown in Figure 1. BS EN
36、 62056-9-7:201362056-9-7 IEC:2013 7 Electricity metering end device Local Network Access Point (LNAP) Neigbourhood Network Access Point (NNAP) AMI head end system C Meter communication functions I M L N Internet enabled WAN C Meter application functions Internet enabled Neighbourhood Network Interne
37、t enabled Local Network G G G Internet enabled Neighbourhood Network IEC 688/13 Figure 1 Communication architecture 5 Structure of the profile(s) The COSEM TCP-UDP/IP based communication profiles consist of five protocol layers: the DLMS/COSEM application layer, specified in IEC 62056-5-3; the COSEM
38、 transport layer, specified in IEC 62056-47; a network layer: the Internet protocol: IPv4, specified in STD 0005 or IPv6 specified in RFC 2460; a data link layer: any data link protocol supporting the network layer; a physical layer: any PhL supported by the data link layer chosen. The COSEM AL uses
39、 the services of one of the TLs (TCP or UDP) via a wrapper, which, in their turn, use the services of the IP network layer to communicate with other nodes connected to this abstract network. The COSEM AL in this environment can be considered as another Internet standard application protocol, which m
40、ay co-exist with other Internet application protocols, like FTP, HTTP, etc. See IEC 62056-47:2006, Figure 1. BS EN 62056-9-7:2013 8 62056-9-7 IEC:2013 The TCP-UDP/IP layers are implemented on a wide variety of real networks, which, just with the help of this IP Network abstraction, can be seamlessly
41、 interconnected to form Intra- and Internets using any set of lower layers supporting the Internet Protocol. Files Web pages COSEM Application process COSEM interface classes OBIS object identification DLMS/COSEM application layer xDLMS messaging services ACSE services TCP conncetion manager TCP-UDP
42、 transport layer protocol Wrapper FTP HTTP Transport IP network layer protocol Network Wide Area Network lower layer protocols GPRS GSM PSTN PLC Wireless PLC Wireless Wired Physical Data Link MAC + LLC Convergence/ Adaptation Messaging Application Neighbourhood Network lower layer protocols Local Ne
43、twork lower layer protocols IEC 689/13 Figure 2 Examples for lower-layer protocols in the TCP-UDP/IP based profile(s) Below the IP layer, a range of lower layers can be used. One of the reasons of the success of the Internet protocols is just their federating force. Practically any data networks, in
44、cluding Wide Area Networks such as GPRS, ISDN, ATM and Frame Relay, circuit switched PSTN and GSM networks (dial-up IP), Local Area Networks, such as Ethernet, neighbourhood networks and local networks using power line carrier or wireless protocols, etc., support TCP-UDP/IP networking. Figure 2 show
45、s a set of examples far from being complete for such communication networks and for the lower layer protocols used in these networks. Using the TCP-UDP/IP profile, DLMS/COSEM can be used practically on any existing communication network. 6 Identification and addressing scheme Although real-world dev
46、ices even in the Internet environment are connected to real-world physical networks, at a higher abstraction (and protocol) level it can be considered as if these devices would be connected to a virtual IP network. On this virtual network, each device has a unique address, called IP address, which n
47、on-ambiguously identifies the device on this network. BS EN 62056-9-7:201362056-9-7 IEC:2013 9 Any device connected to this virtual IP network can send message(s) to any other connected device(s) using only the IP address to designate the destination device, without being concerned about the complex
48、ity of the whole physical network. Specific characteristics the data transmission medium, the media access strategy, and the specific data-link addressing / identification scheme of the particular physical network(s) participating in the route between the source and the destination device are hidden
49、 for the sender device. These elements are handled by intermediate network devices, called routers. Therefore, in the TCP-UDP/IP based profiles COSEM physical devices are non-ambiguously identified by their network IP address. The identification of COSEM client AP and server APs requires an additional address. Both TCP and UDP provide additional addressing capability at the transport level, called port, to distinguish between applications. The AL is list