1、Electricity metering data exchange The DLMS/COSEM suitePart 4-7: DLMS/COSEM transport layer for IP networksBS EN 62056-4-7:2015BS EN 62056-4-7:2016BSI Standards PublicationWB11885_BSI_StandardCovs_2013_AW.indd 1 15/05/2013 15:06National forewordThis British Standard is the UK implementation of EN 62
2、056-4-7:2016. It isidentical to IEC 62056-4-7:2015. It supersedes BS EN 62056-47:2007 which iswithdrawn. 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 secre
3、tary.This publication does not purport to include all the necessary provisions ofa contract. Users are responsible for its correct application. The British Standards Institution 2016.Published by BSI Standards Limited 2016ISBN 978 0 580 86668 5ICS 17.220.01; 35.100.40; 35.110; 91.140.50Compliance wi
4、th a British Standard cannot confer immunity fromlegal obligations.This British Standard was published under the authority of theStandards Policy and Strategy Committee on 31 December 2016.Amendments/corrigenda issued since publicationDate Text affectedBRITISH STANDARDBS EN 62056-4-7:2015EUROPEAN ST
5、ANDARDNORME EUROPENNEEUROPISCHE NORMEN 62056-4-7 December 2016 ICS 17.220; 35.110; 91.140.50 Supersedes EN 62056-47:2007 English Version Electricity metering data exchange - The DLMS/COSEM suite - Part 4-7: DLMS/COSEM transport layer for IP networks (IEC 62056-4-7:2015) change des donnes de comptage
6、 de llectricit - Lasuite DLMS/COSEM - Partie 4-7: Couche transportDLMS/COSEM pour rseaux IP (IEC 62056-4-7:2015) Datenkommunikation der elektrischen Energiemessung -DLMS/COSEM - Teil 4-7: DLMS/COSEM Transportschichtfr IP-Netzwerke (IEC 62056-4-7:2015) This European Standard was approved by CENELEC o
7、n 2015-06-24. 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
8、 be obtained on application to the CEN-CENELECManagement 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
9、ified to the CEN-CENELEC Management Centre has thesame 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, Gr
10、eece, Hungary, Iceland, Ireland, Italy, Latvia,Lithuania, Luxembourg, Malta, the Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, Switzerland, Turkey and the United Kingdom. European Committee for Electrotechnical StandardizationComit Europen de Normalisation Electr
11、otechniqueEuropisches Komitee fr Elektrotechnische Normung CEN-CENELEC Management Centre: Avenue Marnix 17, B-1000 Brussels 2016 CENELEC All rights of exploitation in any form and by any means reserved worldwide for CENELEC Members. Ref. No. EN 62056-4-7:2016 E BS EN 62056-4-7:2016 BRITISH STANDARDE
12、UROPEAN STANDARD NORME EUROPENNE EUROPISCHE NORM EN 62056-4-7 December 2016 ICS 17.220; 35.110; 91.140.50 Supersedes EN 62056-47:2007 English Version Electricity metering data exchange - The DLMS/COSEM suite - Part 4-7: DLMS/COSEM transport layer for IP networks (IEC 62056-4-7:2015) change des donne
13、s de comptage de llectricit - La suite DLMS/COSEM - Partie 4-7: Couche transport DLMS/COSEM pour rseaux IP (IEC 62056-4-7:2015) Datenkommunikation der elektrischen Energiemessung - DLMS/COSEM - Teil 4-7: DLMS/COSEM Transportschicht fr IP-Netzwerke (IEC 62056-4-7:2015) This European Standard was appr
14、oved by CENELEC on 2015-06-24. 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 nati
15、onal standards may 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 o
16、wn language and notified 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 Macedoni
17、a, France, Germany, 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. European Committee for Electrotechnical Standardization Comit Europen
18、 de Normalisation Electrotechnique Europisches Komitee fr Elektrotechnische Normung CEN-CENELEC Management Centre: Avenue Marnix 17, B-1000 Brussels 2016 CENELEC All rights of exploitation in any form and by any means reserved worldwide for CENELEC Members. Ref. No. EN 62056-4-7:2016 E European fore
19、word The text of document 13/1570/CDV, future edition 1 of IEC 62056-4-7, prepared by IEC/TC 13 “Electrical energy measurement and control“ was submitted to the IEC-CENELEC parallel vote and approved by CENELEC as EN 62056-4-7:2016. The following dates are fixed: latest date by which the document ha
20、s to beimplemented at national level bypublication of an identical nationalstandard or by endorsement(dop) 2017-06-09 latest date by which the nationalstandards conflicting with thedocument have to be withdrawn(dow) 2019-12-09 This document supersedes EN 62056-47:2007. Attention is drawn to the poss
21、ibility that some of the elements of this document may be the subject of patent rights. CENELEC and/or CEN shall not be held responsible for identifying any or all such patent rights. This document has been prepared under a mandate given to CENELEC by the European Commission and the European Free Tr
22、ade Association. Endorsement notice The text of the International Standard IEC 62056-4-7:2015 was approved by CENELEC as a European Standard without any modification. BS EN 62056-4-7:2016 EN 62056-4-7:2016 Annex ZA (normative) Normative references to international publications with their correspondi
23、ng 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 referenced document (including any ame
24、ndments) applies. NOTE 1 When an International Publication has been modified by common modifications, indicated by (mod), the relevant EN/HD applies. NOTE 2 Up-to-date information on the latest versions of the European Standards listed in this annex is available here: www.cenelec.eu Publication Year
25、 Title EN/HD Year IEC 60050-300 2001 International Electrotechnical Vocabulary (IEV) - Electrical and electronic measurements and measuring instruments - Part 311: General terms relating to measurements - Part 312: General terms relating to electrical measurements - Part 313: Types of electrical mea
26、suring instruments - Part 314: Specific terms according to the type of instrument - - IEC/TR 62051 1999 Electricity metering - Glossary of terms - - IEC/TR 62051-1 2004 Electricity metering - Data exchange for meter reading, tariff and load control - Glossary of terms - Part 1: Terms related to data
27、 exchange with metering equipment using DLMS/COSEM - - IEC 62056-5-3 2013 Electricity metering data exchange - The DLMS/COSEM suite - Part 5-3: DLMS/COSEM application layer EN 62056-5-3 2014 1)IEC 62056-6-2 2013 Electricity metering data exchange - The DLMS/COSEM suite - Part 6-2: COSEM interface cl
28、asses EN 62056-6-2 2013 2)IEC 62056-9-7 2013 Electricity metering data exchange - The DLMS/COSEM suite - Part 9-7: Communication profile for TCP-UDP/IP networks EN 62056-9-7 2013 STD 0006 - User Datagram Protocol - - STD 0007 - Transmission Control Protocol - - 1)Superseded by EN 62056-5-3:2016 (IEC
29、 62056-5-3:2016): DOW = 2019-12-09.2)Superseded by EN 62056-6-2:2016 (IEC 62056-6-2:2016): DOW = 2019-12-09.BS EN 62056-4-7:2016 EN 62056-4-7:2016 BS EN 62056-4-7:2016EN 62056-4-7:2016European foreword The text of document 13/1570/CDV, future edition 1 of IEC 62056-4-7, prepared by IEC/TC 13 “Electr
30、ical energy measurement and control“ was submitted to the IEC-CENELEC parallel vote and approved by CENELEC as EN 62056-4-7:2016. The following dates are fixed: latest date by which the document has to beimplemented at national level bypublication of an identical nationalstandard or by endorsement(d
31、op) 2017-06-09 latest date by which the nationalstandards conflicting with thedocument have to be withdrawn(dow) 2019-12-09 This document supersedes EN 62056-47:2007. Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. CENELEC and/or
32、CEN shall not be held responsible for identifying any or all such patent rights. This document has been prepared under a mandate given to CENELEC by the European Commission and the European Free Trade Association. Endorsement notice The text of the International Standard IEC 62056-4-7:2015 was appro
33、ved by CENELEC as a European Standard without any modification. BS EN 62056-4-7:2016 EN 62056-4-7:2016 Annex ZA (normative) Normative references to international publications with their corresponding European publications The following documents, in whole or in part, are normatively referenced in th
34、is document and are indispensable for its application. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies. NOTE 1 When an International Publication has been modified by common modifications, i
35、ndicated by (mod), the relevant EN/HD applies. NOTE 2 Up-to-date information on the latest versions of the European Standards listed in this annex is available here: www.cenelec.eu Publication Year Title EN/HD Year IEC 60050-300 2001 International Electrotechnical Vocabulary (IEV) - Electrical and e
36、lectronic measurements and measuring instruments - Part 311: General terms relating to measurements - Part 312: General terms relating to electrical measurements - Part 313: Types of electrical measuring instruments - Part 314: Specific terms according to the type of instrument - - IEC/TR 62051 1999
37、 Electricity metering - Glossary of terms - - IEC/TR 62051-1 2004 Electricity metering - Data exchange for meter reading, tariff and load control - Glossary of terms - Part 1: Terms related to data exchange with metering equipment using DLMS/COSEM - - IEC 62056-5-3 2013 Electricity metering data exc
38、hange - The DLMS/COSEM suite - Part 5-3: DLMS/COSEM application layer EN 62056-5-3 2014 1)IEC 62056-6-2 2013 Electricity metering data exchange - The DLMS/COSEM suite - Part 6-2: COSEM interface classes EN 62056-6-2 2013 2)IEC 62056-9-7 2013 Electricity metering data exchange - The DLMS/COSEM suite
39、- Part 9-7: Communication profile for TCP-UDP/IP networks EN 62056-9-7 2013 STD 0006 - User Datagram Protocol - - STD 0007 - Transmission Control Protocol - - 1)Superseded by EN 62056-5-3:2016 (IEC 62056-5-3:2016): DOW = 2019-12-09.2)Superseded by EN 62056-6-2:2016 (IEC 62056-6-2:2016): DOW = 2019-1
40、2-09.BS EN 62056-4-7:2016 EN 62056-4-7:2016 BS EN 62056-4-7:2016EN 62056-4-7:2016 2 IEC 62056-4-7:2015 IEC 2015 CONTENTS FOREWORD . 4 INTRODUCTION . 6 1 Scope 7 2 Normative references 7 3 Terms, definitions and abbreviations . 8 3.1 Terms and definitions 8 3.2 Abbreviations 8 4 Overview . 9 5 The DL
41、MS/COSEM connection-less, UDP-based transport layer . 10 5.1 General . 10 5.2 Service specification for the DLMS/COSEM UDP-based transport layer 11 5.2.1 General . 11 5.2.2 The UDP-DATA service . 12 5.3 Protocol specification for the DLMS/COSEM UDP-based transport layer . 14 5.3.1 General . 14 5.3.2
42、 The wrapper protocol data unit (WPDU) . 14 5.3.3 The DLMS/COSEM UDP-based transport layer protocol data unit 15 5.3.4 Reserved wrapper port numbers (wPorts) 16 5.3.5 Protocol state machine 16 6 The DLMS/COSEM connection-oriented, TCP-based transport layer . 16 6.1 General . 16 6.2 Service specifica
43、tion for the DLMS/COSEM TCP-based transport layer 17 6.2.1 General . 17 6.2.2 The TCP-CONNECT service 18 6.2.3 The TCP-DISCONNECT service 21 6.2.4 The TCP-ABORT service . 23 6.2.5 The TCP-DATA service 24 6.3 Protocol specification for the DLMS/COSEM TCP-based transport layer . 26 6.3.1 General . 26
44、6.3.2 The wrapper protocol data unit (WPDU) . 26 6.3.3 The DLMS/COSEM TCP-based transport layer protocol data unit 27 6.3.4 Reserved wrapper port numbers 27 6.3.5 Definition of the procedures . 27 Annex A (informative) Converting OSI-style TL services to and from RFC-style TCP function calls. 32 A.1
45、 Transport layer and TCP connection establishment . 32 A.2 Closing a transport layer and a TCP connection 33 A.3 TCP connection abort . 34 A.4 Data transfer using the TCP-DATA service . 35 INDEX 37 Bibliography 38 Figure 1 DLMS/COSEM as a standard Internet application protocol . 9 Figure 2 Transport
46、 layers of the DLMS/COSEM_on_IP profile 10 Figure 3 Services of the DLMS/COSEM connection-less, UDP-based transport layer . 12 BS EN 62056-4-7:2015IEC 62056-4-7:2015 IEC 2015 3 Figure 4 The wrapper protocol data unit (WPDU) . 15 Figure 5 The DLMS/COSEM connection-less, UDP-based transport layer PDU
47、(UDP-PDU) 15 Figure 6 Services of the DLMS/COSEM connection-oriented,TCP-based transport layer . 18 Figure 7 The TCP packet format 27 Figure 8 TCP connection establishment . 28 Figure 9 TCP disconnection . 29 Figure 10 Data transfer using the DLMS/COSEM TCP-based transport layer . 30 Figure 11 High-
48、level state transition diagram for the wrapper sublayer . 31 Figure A.1 TCP connection state diagram 32 Figure A.2 MSC and state transitions for establishing a transport layer and TCP connection 33 Figure A.3 MSC and state transitions for closing a transport layer and TCP connection 34 Figure A.4 Po
49、lling the TCP sublayer for TCP abort indication . 34 Figure A.5 Sending an APDU in three TCP packets . 35 Figure A.6 Receiving the message in several packets 36 Table 1 Reserved wrapper port numbers in the UDP-based DLMS/COSEM TL 16 BS EN 62056-4-7:2015BS EN 62056-4-7:2016IEC 62056-4-7:2015 IEC 2015 2 IEC 62056-4-7:2015 IEC 2015 CONTENTS FOREWORD . 4 INTRODUCTION . 6 1 Scope 7 2 Normative references 7 3 Terms, definitions and abbreviations . 8 3.1 Terms and definitions 8 3.2 Abbre