Electricity metering data exchange - The DLMS/COSEM suite - Part 5-3: DLMS/COSEM application layer

IEC 62056-5-3:2016 is available as IEC 62056-5-3:2016 RLV which contains the International Standard and its Redline version, showing all changes of the technical content compared to the previous edition. IEC 62056-5-3:2016 specifies the DLMS/COSEM application layer in terms of structure, services and protocols for COSEM clients and servers, and defines how to use the DLMS/COSEM application layer in various communication profiles. It defines services for establishing and releasing application associations, and data communication services for accessing the methods and attributes of COSEM interface objects, defined in IEC 62056-6-2:2016, using either logical name (LN) or short name (SN) referencing. This second edition cancels and replaces the first edition of IEC 62056-5-3 published in 2013.

Datenkommunikation der elektrischen Energiemessung - DLMS/COSEM - Teil 5-3: DLMS/COSEM-Anwendungsschicht

Échange des données de comptage de l'électricité - La suite DLMS/COSEM - Partie 5-3: Couche application DLMS/COSEM

L'IEC 62056-5-3:2016 indique la couche application DLMS/COSEM en termes de structure, de services et de protocoles pour les clients et serveurs COSEM, et définit comment utiliser la couche application DLMS/COSEM dans différents profils de communication. Elle définit les services permettant d'établir et de libérer des associations d'applications, ainsi que les services de communication de données permettant d'accéder aux méthodes et aux attributs des objets d'interface COSEM, définis dans l'IEC 62056-6-2, à l'aide du référencement par nom logique (LN) ou par nom abrégé (SN). Cette deuxième édition annule et remplace la première édition de l'IEC 62056-5-3 parue en 2013.

Izmenjava podatkov pri merjenju električne energije - Niz DLMS/COSEM - 5-3. del: Aplikacijska plast DLMS/COSEM

Ta del standarda IEC 62056 določa aplikacijsko plast DLMS/COSEM v smislu strukture, storitev in protokolov za odjemalce ter strežnike COSEM in opredeljuje, kako se ta aplikacijska plast uporablja v različnih komunikacijskih profilih.
Opredeljuje storitve za vzpostavljanje in izdajanje povezav aplikacij ter podatkovne komunikacijske storitve za dostop do metod in atributov vmesniških objektov COSEM, opredeljenih v standardu IEC 62056-6-2:2016, na podlagi reference logičnega imena (LN) ali kratkega imena (SN).
Dodatek A (normativni) opredeljuje, kako se pri različnih komunikacijskih profilih uporablja aplikacijska plast COSEM. Določa, kako so lahko različni komunikacijski profili izdelani za izmenjavo podatkov z opremo za merjenje, ki uporablja vmesniški model COSEM, in kateri so potrebni elementi, ki jih je treba določiti v posameznem komunikacijskem profilu. Dejanski komunikacijski profili, ki se uporabljajo za medije, so opredeljeni v ločenih delih skupine standardov IEC 62056.
Dodatek B (normativni) določa kratko ovojnico za SMS.
Dodatki C, D in E (informativni) vključujejo primere kodiranja za podatkovne enote aplikacijskega protokola (APDU).
Dodatek F (informativni) podaja pregled kriptografije.
Dodatek G (informativni) navaja glavne tehnične spremembe v tej izdaji standarda.

General Information

Status
Withdrawn
Publication Date
08-Dec-2016
Current Stage
6060 - Document made available
Due Date
09-Dec-2016
Completion Date
09-Dec-2016

RELATIONS

Buy Standard

Standard
EN 62056-5-3:2017 - BARVE na PDF-str 33,36,43. Vodni pretisk na sredini strani na PDF-str: 157,158,160,161,162,163,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188
English language
201 pages
sale 10% off
Preview
sale 10% off
Preview

e-Library read for
1 day
Standard
EN 62056-5-3:2017 - BARVE na PDF-str 33,36,43. Brez vodnega pretiska.
English language
201 pages
sale 10% off
Preview
sale 10% off
Preview

e-Library read for
1 day

Standards Content (sample)

SLOVENSKI STANDARD
SIST EN 62056-5-3:2017
01-februar-2017
Nadomešča:
SIST EN 62056-5-3:2014
Izmenjava podatkov pri merjenju električne energije - Niz DLMS/COSEM - 5-3. del:
Aplikacijska plast DLMS/COSEM
Electricity metering data exchange - The DLMS/COSEM suite - Part 5-3: DLMS/COSEM
application layer
Datenkommunikation der elektrischen Energiemessung - DLMS/COSEM - Teil 5-3:
DLMS/COSEM-Anwendungsschicht

Échange des données de comptage de l'électricité - La suite DLMS/COSEM - Partie 5-3:

Couche application DLMS/COSEM
Ta slovenski standard je istoveten z: EN 62056-5-3:2016
ICS:
17.220.20 Merjenje električnih in Measurement of electrical
magnetnih veličin and magnetic quantities
35.100.70 Uporabniški sloj Application layer
91.140.50 Sistemi za oskrbo z elektriko Electricity supply systems
SIST EN 62056-5-3:2017 en

2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.

---------------------- Page: 1 ----------------------
SIST EN 62056-5-3:2017
---------------------- Page: 2 ----------------------
SIST EN 62056-5-3:2017
EUROPEAN STANDARD EN 62056-5-3
NORME EUROPÉENNE
EUROPÄISCHE NORM
December 2016
ICS 17.220; 35.110; 91.140.50 Supersedes EN 62056-5-3:2014
English Version
Electricity metering data exchange - The DLMS/COSEM suite -
Part 5-3: DLMS/COSEM application layer
(IEC 62056-5-3:2016)

Échange des données de comptage de l'électricité - La Datenkommunikation der elektrischen Energiemessung -

suite DLMS/COSEM - Partie 5-3: Couche application DLMS/COSEM - Teil 5-3: DLMS/COSEM-

DLMS/COSEM Anwendungsschicht
(IEC 62056-5-3:2016) (IEC 62056-5-3:2016)

This European Standard was approved by CENELEC on 2016-04-08. 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 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 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 Macedonia, 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é Européen de Normalisation Electrotechnique
Europäisches Komitee für 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-5-3:2016 E
---------------------- Page: 3 ----------------------
SIST EN 62056-5-3:2017
EN 62056-5-3:2016
European foreword

The text of document 13/1648/FDIS, future edition 2 of IEC 62056-5-3, 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-5-3:2016.
The following dates are fixed:
(dop) 2017-06-09
• latest date by which the document has to be
implemented at national level by
publication of an identical national
standard or by endorsement
• latest date by which the national (dow) 2019-12-09
standards conflicting with the
document have to be withdrawn
This document supersedes EN 62056-5-3:2014.

Attention is drawn to the possibility 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 Trade Association.
Endorsement notice

The text of the International Standard IEC 62056-5-3:2016 was approved by CENELEC as a

European Standard without any modification.

In the official version, for Bibliography, the following notes have to be added for the standards indicated:

IEC 61334-4-3:1996 NOTE Harmonized as EN 61334-4-32:1996 (not modified).
IEC 61334-4-511:2000 NOTE Harmonized as EN 61334-4-511:2000 (not modified).
IEC 61334-4-512:2001 NOTE Harmonized as EN 61334-4-512:2002 (not modified).
IEC 61334-5-1:2001 NOTE Harmonized as EN 61334-5-1:2001 (not modified).
IEC 62056-7-6:2013 NOTE Harmonized as EN 62056-7-6:2013 (not modified).
IEC 62056-9-7:2013 NOTE Harmonized as EN 62056-9-7:2013 (not modified).
ISO/IEC 7498-1:1994 NOTE Harmonized as EN ISO/IEC 7498-1:1994 (not modified).
Withdrawn publication.
---------------------- Page: 4 ----------------------
SIST EN 62056-5-3:2017
EN 62056-5-3: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 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 amendments) 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 Title EN/HD Year

IEC 61334-4-41 1996 Distribution automation using distribution EN 61334-4-41 1996

line carrier systems -
Part 4: Data communication protocols -
Section 41: Application protocols -
Distribution line message specification
IEC 61334-6 2000 Distribution automation using distribution EN 61334-6 2000
line carrier systems -
Part 6: A-XDR encoding rule
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 exchange
with metering equipment using
DLMS/COSEM
IEC 62056-1-0 - Electricity metering data exchange - EN 62056-1-0 -
The DLMS/COSEM suite -
Part 1-0: Smart metering standardisation
framework
IEC 62056-6-1 2015 Electricity metering data exchange - EN 62056-6-1 2016
The DLMS/COSEM suite -
Part 6-1: Object Identification System
(OBIS)
IEC 62056-6-2 2016 Electricity metering data exchange - EN 62056-6-2 2016
The DLMS/COSEM suite -
Part 6-2: COSEM interface classes
IEC 62056-8-3 2013 Electricity metering data exchange - EN 62056-8-3 2013
The DLMS/COSEM suite -
Part 8-3: Communication profile for PLC
S-FSK neighbourhood networks
ISO/IEC 8824-1 2008 Information technology - Abstract Syntax - -
Notation One (ASN.1): Specification of
basic notation
Superseded by ISO/IEC 8824-1:2015.
---------------------- Page: 5 ----------------------
SIST EN 62056-5-3:2017
EN 62056-5-3:2016
Publication Year Title EN/HD Year
ISO/IEC 8825-1 2008 Information technology - ASN.1 encoding - -
rules: Specification of Basic Encoding
Rules (BER), Canonical Encoding Rules
(CER) and Distinguished Encoding Rules
(DER)
ISO/IEC 15953 1999 Information technology - Open Systems - -
Interconnection - Service Definition for the
Application Service Object Association
Control Service Element
ISO/IEC 15954 1999 Information technology - Open Systems - -
Interconnection - Connection-mode
protocol for the Application Service Object
Association Control Service Element
FIPS PUB 180-4 2012 Secure Hash Standard (SHS) - -
FIPS PUB 197 2001 Advanced Encryption Standard (AES) - -
NIST SP 800-38D 2007 Recommendation for Block Cipher Modes - -
of Operation: Galois/Counter Mode (GCM)
and GMAC
NIST SP 800-57 2007 Recommendation for key management - - -
Part 1: General
RFC 1321 1992 The MD5 Message-Digest Algorithm. - -
Edited by R. Rivest (MIT Laboratory for
Computer Science and RSA Data Security,
Inc.)
RFC 3394 2002 Advanced Encryption Standard (AES) Key - -
Wrap Algorithm. Edited by J. Schaad
(Soaring Hawk Consulting) and R. Housley
(RSA Laboratories)
RFC 4106 - The Use of Galois/Counter Mode (GCM) - -
in IPsec Encapsulating Security Payload
(ESP)
Superseded by ISO/IEC 8825-1:2015.
---------------------- Page: 6 ----------------------
SIST EN 62056-5-3:2017
IEC 62056-5-3
Edition 2.0 2016-03
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
colour
inside
Electricity metering data exchange – The DLMS/COSEM suite –
Part 5-3: DLMS/COSEM application layer
Échange des données de comptage de l'électricité – La suite DLMS/COSEM –
Partie 5-3: Couche application DLMS/COSEM
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
COMMISSION
ELECTROTECHNIQUE
INTERNATIONALE
ICS 17.220; 35.110; 91.140.50 ISBN 978-2-8322-3019-0

Warning! Make sure that you obtained this publication from an authorized distributor.

Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agréé.

® Registered trademark of the International Electrotechnical Commission
Marque déposée de la Commission Electrotechnique Internationale
---------------------- Page: 7 ----------------------
SIST EN 62056-5-3:2017
– 2 – IEC 62056-5-3:2016  IEC 2016
CONTENTS

FOREWORD......................................................................................................................... 8

INTRODUCTION ................................................................................................................. 10

1 Scope .......................................................................................................................... 11

2 Normative references .................................................................................................. 11

3 Terms, definitions and abbreviations ............................................................................ 13

3.1 Terms and definitions .......................................................................................... 13

3.2 Abbreviations ...................................................................................................... 13

4 Overview ..................................................................................................................... 15

4.1 DLMS/COSEM application layer structure ............................................................ 15

4.2 DLMS/COSEM application layer services ............................................................. 16

4.2.1 ASO services ............................................................................................... 16

4.2.2 Services provided for application association establishment and release ....... 16

4.2.3 Services provided for data transfer ............................................................... 17

4.2.4 Layer management services ......................................................................... 22

4.2.5 Summary of DLMS/COSEM application layer services .................................. 22

4.3 DLMS/COSEM application layer protocols ........................................................... 22

5 Information security in DLMS/COSEM .......................................................................... 23

5.1 Definitions ........................................................................................................... 23

5.2 General ............................................................................................................... 23

5.3 Data access security ........................................................................................... 24

5.3.1 Overview ..................................................................................................... 24

5.3.2 No security (lowest level security) authentication .......................................... 24

5.3.3 Low Level Security (LLS) authentication ....................................................... 24

5.3.4 High Level Security (HLS) authentication ...................................................... 25

5.4 Data transport security ........................................................................................ 27

5.4.1 Applying, removing or checking the protection: ciphering and

deciphering .................................................................................................. 27

5.4.2 Security context ........................................................................................... 28

5.4.3 Security policy ............................................................................................. 28

5.4.4 Security suite ............................................................................................... 29

5.4.5 Security material .......................................................................................... 29

5.4.6 Ciphered xDLMS APDUs .............................................................................. 29

5.4.7 Cryptographic keys ...................................................................................... 31

5.4.8 The Galois/Counter Mode of Operation (GCM) .............................................. 34

6 DLMS/COSEM application layer service specification ................................................... 43

6.1 Service primitives and parameters ....................................................................... 43

6.2 The COSEM-OPEN service ................................................................................. 45

6.3 The COSEM-RELEASE service ........................................................................... 50

6.4 COSEM-ABORT service ...................................................................................... 52

6.5 Protection and general block transfer parameters ................................................ 53

6.6 The GET service ................................................................................................. 57

6.7 The SET service ................................................................................................. 59

6.8 The ACTION service ........................................................................................... 62

6.9 The DataNotification service ................................................................................ 66

6.10 The EventNotification service .............................................................................. 67

6.11 The TriggerEventNotificationSending service ....................................................... 68

---------------------- Page: 8 ----------------------
SIST EN 62056-5-3:2017
IEC 62056-5-3:2016  IEC 2016 – 3 –

6.12 Variable access specification ............................................................................... 69

6.13 The Read service ................................................................................................ 69

6.14 The Write service ................................................................................................ 73

6.15 The UnconfirmedWrite service ............................................................................. 76

6.16 The InformationReport service ............................................................................. 77

6.17 Client side layer management services: the SetMapperTable.request ................... 78

6.18 Summary of services and LN/SN data transfer service mapping ........................... 78

7 DLMS/COSEM application layer protocol specification .................................................. 79

7.1 The control function ............................................................................................ 79

7.1.1 State definitions of the client side control function ......................................... 79

7.1.2 State definitions of the server side control function ....................................... 81

7.2 The ACSE services and APDUs ........................................................................... 82

7.2.1 ACSE functional units, services and service parameters ............................... 82

7.2.2 Registered COSEM names ........................................................................... 85

7.2.3 APDU encoding rules ................................................................................... 87

7.2.4 Protocol for application association establishment ........................................ 87

7.2.5 Protocol for application association release .................................................. 92

7.3 Protocol for the data transfer services ................................................................. 95

7.3.1 Negotiation of services and options – the conformance block ........................ 95

7.3.2 Confirmed and unconfirmed service invocations ............................................ 96

7.3.3 Protocol for the GET service ........................................................................ 98

7.3.4 Protocol for the SET service ....................................................................... 101

7.3.5 Protocol for the ACTION service ................................................................. 104

7.3.6 Protocol of the DataNotification service ...................................................... 106

7.3.7 Protocol for the EventNotification service .................................................... 106

7.3.8 Protocol for the Read service ..................................................................... 106

7.3.9 Protocol for the Write service ..................................................................... 110

7.3.10 Protocol for the UnconfirmedWrite service .................................................. 114

7.3.11 Protocol for the InformationReport service .................................................. 115

7.3.12 Protocol of general block transfer mechanism ............................................. 116

8 Abstract syntax of ACSE and COSEM APDUs ............................................................ 127

Annex A (normative) Using the COSEM application layer in various communications

profiles ............................................................................................................................. 142

A.1 General ............................................................................................................. 142

A.2 Targeted communication environments .............................................................. 142

A.3 The structure of the profile ................................................................................ 142

A.4 Identification and addressing schemes .............................................................. 142

A.5 Supporting layer services and service mapping .................................................. 143

A.6 Communication profile specific parameters of the COSEM AL services ............... 143

A.7 Specific considerations / constraints using certain services within a given

profile ............................................................................................................... 143

A.8 The 3-layer, connection-oriented, HDLC based communication profile ................ 143

A.9 The TCP-UDP/IP based communication profiles (COSEM_on_IP) ...................... 143

A.10 The S-FSK PLC profile ...................................................................................... 143

Annex B (normative) SMS short wrapper .......................................................................... 144

Annex C (informative) AARQ and AARE encoding examples ............................................. 145

C.1 General ............................................................................................................. 145

C.2 Encoding of the xDLMS InitiateRequest / InitiateResponse APDUs ..................... 145

C.3 Specification of the AARQ and AARE APDUs .................................................... 148

---------------------- Page: 9 ----------------------
SIST EN 62056-5-3:2017
– 4 – IEC 62056-5-3:2016  IEC 2016

C.4 Data for the examples ....................................................................................... 149

C.5 Encoding of the AARQ APDU ............................................................................ 150

C.6 Encoding of the AARE APDU ............................................................................. 153

Annex D (informative) Encoding examples: AARQ and AARE APDUs using a ciphered

application context ............................................................................................................ 159

D.1 A-XDR encoding of the xDLMS InitiateRequest APDU, carrying a dedicated

key ................................................................................................................... 159

D.2 Authenticated encryption of the xDLMS InitiateRequest APDU ........................... 160

D.3 The AARQ APDU .............................................................................................. 161

D.4 A-XDR encoding of the xDLMS InitiateResponse APDU ..................................... 162

D.5 Authenticated encryption of the xDLMS InitiateResponse APDU ......................... 163

D.6 The AARE APDU............................................................................................... 164

D.7 The RLRQ APDU (carrying a ciphered xDLMS InitiateRequest APDU) ................ 165

D.8 The RLRE APDU (carrying a ciphered xDLMS InitiateResponse APDU) .............. 166

Annex E (informative) Data transfer service examples ...................................................... 167

Annex F (informative) Overview of cryptography ............................................................... 183

F.1 General ............................................................................................................. 183

F.2 Hash functions .................................................................................................. 183

F.3 Symmetric key algorithms .................................................................................. 184

F.3.1 General ..................................................................................................... 184

F.3.2 Encryption and decryption .......................................................................... 184

F.3.3 Advanced Encryption Standard (AES) ......................................................... 185

F.3.4 Encryption Modes of Operation .................................................................. 185

F.3.5 Message Authentication Code .................................................................... 186

F.3.6 Key establishment ...................................................................................... 187

F.4 Asymmetric key algorithms ................................................................................ 187

F.4.1 General ..................................................................................................... 187

F.4.2 Digital signatures ....................................................................................... 188

F.4.3 Key establishment ...................................................................................... 188

Annex G (informative) Significant technical changes with respect to IEC 62056-5-3

Ed.1.0:2013 ...................................................................................................................... 189

Bibliography ..................................................................................................................... 191

Index ................................................................................................................................ 194

Figure 1 – Structure of the COSEM Application layers ......................................................... 15

Figure 2 – Summary of DLMS/COSEM AL services .............................................................. 22

Figure 3 – Authentication mechanisms during AA establishment .......................................... 27

Figure 4 – Structure of service specific global ciphering and dedicated ciphering

APDUs ............................................................................................................................... 30

Figure 5 – Structure of general global ciphering and dedicated ciphering APDUs ................. 30

Figure 6 – Cryptographic protection of xDLMS APDUs using GCM ....................................... 37

Figure 7 – Service primitives ............................................................................................... 43

Figure 8 – Time sequence diagrams .................................................................................... 44

Figure 9 – Additional service parameters to control cryptographic protection and

general block transfer ......................................................................................................... 54

Figure 10 – Partial state machine for the client side control function .................................... 80

Figure 11 – Partial state machine for the server side control function ................................... 81

---------------------- Page: 10 ----------------------
SIST EN 62056-5-3:2017
IEC 62056-5-3:2016  IEC 2016 – 5 –
Figure 12 – MSC for successful AA establishment preceded by a successful lower

layer connection establishment ........................................................................................... 88

Figure 13 – Graceful AA release using the A-RELEASE service ........................................... 93

Figure 14 – Graceful AA release by disconnecting the supporting layer ................................ 94

Figure 15 – Aborting an AA following a PH-ABORT.indication .............................................. 95

Figure 16 – MSC of the GET service ................................................................................... 98

Figure 17 – MSC of the GET service with block transfer ....................................................... 99

Figure 18 – MSC of the GET service with block transfer, long GET aborted ........................ 101

Figure 19 – MSC of the SET service .................................................................................. 102

Figure 20 – MSC of the SET service with block transfer ..................................................... 102

Figure 21 – MSC of the ACTION service ........................................................................... 104

Figure 22 – MSC of the ACTION service with block transfer ............................................... 105

Figure 23 – MSC of the Read service used for reading an attribute .................................... 109

Figure 24 – MSC of the Read service used for invoking a method ...................................... 109

Figure 25 – MSC of the Read Service used for reading an attribute, with block transfer ...... 110

Figure 26 – MSC of the Write service used for writing an attribute ...................................... 113

Figure 27 – MSC of the Write service used for invoking a method ...................................... 113

Figure 28 – MSC of the Write service used for writing an attribute, with block transfer ....... 114

Figure 29 – MSC of the Unconfirmed Write service used for writing an attribute ................. 115

Figure 30 – Partial service invocations and GBT APDUs .................................................... 118

Figure 31 – GET service with GBT, switching to streaming ................................................ 120

Figure 32 – GET service with partial invocations, GBT and streaming, recovery of 4

block sent in the 2nd stream ............................................................................................. 121

Figure 33 – GET service with partial invocations, GBT and streaming, recovery of 4

and 5 blocks .................................................................................................................. 122

Figure 34 – GET service with partial invocations, GBT and streaming, recovery of last

block ................................................................................................................................ 123

Figure 35 – SET service with GBT, with server not supporting streaming, recovery of

3rd block .......................................................................................................................... 124

Figure 36 – ACTION-WITH-LIST service with bi-directional GBT and block recovery .......... 125

Figure 37 – DataNotification service with GBT with partial invocation ................................. 126

Figure B.1 – Short wrapper ............................................................................................... 144

Figure F.1 – Hash function ................................................................................................ 184

Figure F.2 – Encryption and decryption ............................................................................. 185

Figure F.3 – Message Authentication Codes (MACs) ......
...

2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.Datenkommunikation der elektrischen Energiemessung - DLMS/COSEM - Teil 5-3: DLMS/COSEM-AnwendungsschichtÉchange des données de comptage de l'électricité - La suite DLMS/COSEM - Partie 5-3: Couche application DLMS/COSEMElectricity metering data exchange - The DLMS/COSEM suite - Part 5-3: DLMS/COSEM application layer91.140.50Sistemi za oskrbo z elektrikoElectricity supply systems35.100.70Uporabniški slojApplication layer17.220.20Measurement of electrical and magnetic quantitiesICS:Ta slovenski standard je istoveten z:EN 62056-5-3:2016SIST EN 62056-5-3:2017en01-februar-2017SIST EN 62056-5-3:2017SLOVENSKI

STANDARDSIST EN 62056-5-3:20141DGRPHãþD
EUROPEAN STANDARD NORME EUROPÉENNE EUROPÄISCHE NORM
EN 62056-5-3
December 2016 ICS 17.220; 35.110; 91.140.50 Supersedes EN 62056-5-3:2014
English Version

Electricity metering data exchange - The DLMS/COSEM suite - Part 5-3: DLMS/COSEM application layer (IEC 62056-5-3:2016)

Échange des données de comptage de l'électricité - La suite DLMS/COSEM - Partie 5-3: Couche application DLMS/COSEM (IEC 62056-5-3:2016)

Datenkommunikation der elektrischen Energiemessung - DLMS/COSEM - Teil 5-3: DLMS/COSEM-Anwendungsschicht (IEC 62056-5-3:2016) This European Standard was approved by CENELEC on 2016-04-08. 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 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 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 Macedonia, 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é Européen de Normalisation Electrotechnique Europäisches Komitee für 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-5-3:2016 E

EN 62056-5-3:2016 2 European foreword The text of document 13/1648/FDIS, future edition 2 of IEC 62056-5-3, 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-5-3:2016.

The following dates are fixed: • latest date by which the document has to be implemented at national level by publication of an identical national standard or by endorsement (dop) 2017-06-09 • latest date by which the national standards conflicting with the document have to be withdrawn (dow) 2019-12-09

This document supersedes EN 62056-5-3:2014.

Attention is drawn to the possibility 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 Trade Association.

Endorsement notice The text of the International Standard IEC 62056-5-3:2016 was approved by CENELEC as a European Standard without any modification. In the official version, for Bibliography, the following notes have to be added for the standards indicated:

IEC 61334-4-3:1996 NOTE Harmonized as EN 61334-4-32:1996 (not modified). IEC 61334-4-511:2000 NOTE Harmonized as EN 61334-4-511:2000 (not modified). IEC 61334-4-512:2001 NOTE Harmonized as EN 61334-4-512:2002 (not modified). IEC 61334-5-1:2001 NOTE Harmonized as EN 61334-5-1:2001 (not modified). IEC 62056-7-6:2013 NOTE Harmonized as EN 62056-7-6:2013 (not modified). IEC 62056-9-7:2013 NOTE Harmonized as EN 62056-9-7:2013 (not modified). ISO/IEC 7498-1:1994 NOTE Harmonized as EN ISO/IEC 7498-1:1994 1) (not modified).

1) Withdrawn publication.
EN 62056-5-3:2016 3 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 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 amendments) 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 Title EN/HD Year
IEC 61334-4-41 1996
Distribution automation using distribution line carrier systems -

Part 4: Data communication protocols - Section 41: Application protocols - Distribution line message specification EN 61334-4-41 1996

IEC 61334-6 2000
Distribution automation using distribution line carrier systems -
Part 6: A-XDR encoding rule EN 61334-6 2000
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 exchange with metering equipment using DLMS/COSEM - -

IEC 62056-1-0 -
Electricity metering data exchange -
The DLMS/COSEM suite -
Part 1-0: Smart metering standardisation framework EN 62056-1-0 -
IEC 62056-6-1 2015
Electricity metering data exchange -
The DLMS/COSEM suite -
Part 6-1: Object Identification System (OBIS) EN 62056-6-1 2016
IEC 62056-6-2 2016
Electricity metering data exchange -
The DLMS/COSEM suite -
Part 6-2: COSEM interface classes EN 62056-6-2 2016 IEC 62056-8-3 2013
Electricity metering data exchange -
The DLMS/COSEM suite -
Part 8-3: Communication profile for PLC
S-FSK neighbourhood networks EN 62056-8-3 2013

ISO/IEC 8824-1 2008 2) Information technology - Abstract Syntax Notation One (ASN.1): Specification of basic notation - -

2) Superseded by ISO/IEC 8824-1:2015.
EN 62056-5-3:2016 4 Publication Year Title EN/HD Year

ISO/IEC 8825-1 2008 3) Information technology - ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER) - -

ISO/IEC 15953 1999

Information technology - Open Systems Interconnection - Service Definition for the Application Service Object Association Control Service Element - -

ISO/IEC 15954 1999

Information technology - Open Systems Interconnection - Connection-mode protocol for the Application Service Object Association Control Service Element - -

FIPS PUB 180-4 2012 Secure Hash Standard (SHS) - -
FIPS PUB 197 2001
Advanced Encryption Standard (AES) - -

NIST SP 800-38D 2007 Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMAC - -

NIST SP 800-57 2007 Recommendation for key management - Part 1: General - -

RFC 1321 1992 The MD5 Message-Digest Algorithm. Edited by R. Rivest (MIT Laboratory for Computer Science and RSA Data Security, Inc.) - -

RFC 3394 2002 Advanced Encryption Standard (AES) Key Wrap Algorithm. Edited by J. Schaad (Soaring Hawk Consulting) and R. Housley (RSA Laboratories) - -

RFC 4106 -
The Use of Galois/Counter Mode (GCM)
in IPsec Encapsulating Security Payload (ESP) - -
3) Superseded by ISO/IEC 8825-1:2015.
IEC 62056-5-3
Edition 2.0 2016-03

INTERNATIONAL STANDARD NORME INTERNATIONALE Electricity metering data exchange – The DLMS/COSEM suite –

Part 5-3: DLMS/COSEM application layer
Échange des données de comptage de l'électricité – La suite DLMS/COSEM –
Partie 5-3: Couche application DLMS/COSEM

INTERNATIONAL ELECTROTECHNICAL COMMISSION COMMISSION ELECTROTECHNIQUE INTERNATIONALE

ICS 17.220; 35.110; 91.140.50
ISBN 978-2-8322-3019-0
® Registered trademark of the International Electrotechnical Commission
Marque déposée de la Commission Electrotechnique Internationale ®

Warning! Make sure that you obtained this publication from an authorized distributor.

Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agréé.

colourinside
– 2 – IEC 62056-5-3:2016  IEC 2016

CONTENTS FOREWORD......................................................................................................................... 8 INTRODUCTION ................................................................................................................. 10 1 Scope .......................................................................................................................... 11 2 Normative references .................................................................................................. 11 3 Terms, definitions and abbreviations ............................................................................ 13 3.1 Terms and definitions .......................................................................................... 13 3.2 Abbreviations ...................................................................................................... 13 4 Overview ..................................................................................................................... 15 4.1 DLMS/COSEM application layer structure ............................................................ 15 4.2 DLMS/COSEM application layer services ............................................................. 16 4.2.1 ASO services ............................................................................................... 16 4.2.2 Services provided for application association establishment and release ....... 16 4.2.3 Services provided for data transfer ............................................................... 17 4.2.4 Layer management services ......................................................................... 22 4.2.5 Summary of DLMS/COSEM application layer services .................................. 22 4.3 DLMS/COSEM application layer protocols ........................................................... 22 5 Information security in DLMS/COSEM .......................................................................... 23 5.1 Definitions ........................................................................................................... 23 5.2 General ............................................................................................................... 23 5.3 Data access security ........................................................................................... 24 5.3.1 Overview ..................................................................................................... 24 5.3.2 No security (lowest level security) authentication .......................................... 24 5.3.3 Low Level Security (LLS) authentication ....................................................... 24 5.3.4 High Level Security (HLS) authentication ...................................................... 25 5.4 Data transport security ........................................................................................ 27 5.4.1 Applying, removing or checking the protection: ciphering and deciphering .................................................................................................. 27 5.4.2 Security context ........................................................................................... 28 5.4.3 Security policy ............................................................................................. 28 5.4.4 Security suite ............................................................................................... 29 5.4.5 Security material .......................................................................................... 29 5.4.6 Ciphered xDLMS APDUs .............................................................................. 29 5.4.7 Cryptographic keys ...................................................................................... 31 5.4.8 The Galois/Counter Mode of Operation (GCM) .............................................. 34 6 DLMS/COSEM application layer service specification ................................................... 43 6.1 Service primitives and parameters ....................................................................... 43 6.2 The COSEM-OPEN service ................................................................................. 45 6.3 The COSEM-RELEASE service ........................................................................... 50 6.4 COSEM-ABORT service ...................................................................................... 52 6.5 Protection and general block transfer parameters ................................................ 53 6.6 The GET service ................................................................................................. 57 6.7 The SET service ................................................................................................. 59 6.8 The ACTION service ........................................................................................... 62 6.9 The DataNotification service ................................................................................ 66 6.10 The EventNotification service .............................................................................. 67 6.11 The TriggerEventNotificationSending service ....................................................... 68

IEC 62056-5-3:2016  IEC 2016 – 3 –

6.12 Variable access specification ............................................................................... 69 6.13 The Read service ................................................................................................ 69 6.14 The Write service ................................................................................................ 73 6.15 The UnconfirmedWrite service ............................................................................. 76 6.16 The InformationReport service ............................................................................. 77 6.17 Client side layer management services: the SetMapperTable.request ................... 78 6.18 Summary of services and LN/SN data transfer service mapping ........................... 78 7 DLMS/COSEM application layer protocol specification .................................................. 79 7.1 The control function ............................................................................................ 79 7.1.1 State definitions of the client side control function ......................................... 79 7.1.2 State definitions of the server side control function ....................................... 81 7.2 The ACSE services and APDUs ........................................................................... 82 7.2.1 ACSE functional units, services and service parameters ............................... 82 7.2.2 Registered COSEM names ........................................................................... 85 7.2.3 APDU encoding rules ................................................................................... 87 7.2.4 Protocol for application association establishment ........................................ 87 7.2.5 Protocol for application association release .................................................. 92 7.3 Protocol for the data transfer services ................................................................. 95 7.3.1 Negotiation of services and options – the conformance block ........................ 95 7.3.2 Confirmed and unconfirmed service invocations ............................................ 96 7.3.3 Protocol for the GET service ........................................................................ 98 7.3.4 Protocol for the SET service ....................................................................... 101 7.3.5 Protocol for the ACTION service ................................................................. 104 7.3.6 Protocol of the DataNotification service ...................................................... 106 7.3.7 Protocol for the EventNotification service .................................................... 106 7.3.8 Protocol for the Read service ..................................................................... 106 7.3.9 Protocol for the Write service ..................................................................... 110 7.3.10 Protocol for the UnconfirmedWrite service .................................................. 114 7.3.11 Protocol for the InformationReport service .................................................. 115 7.3.12 Protocol of general block transfer mechanism ............................................. 116 8 Abstract syntax of ACSE and COSEM APDUs ............................................................ 127 Annex A (normative)

Using the COSEM application layer in various communications profiles ............................................................................................................................. 142 A.1 General ............................................................................................................. 142 A.2 Targeted communication environments .............................................................. 142 A.3 The structure of the profile ................................................................................ 142 A.4 Identification and addressing schemes .............................................................. 142 A.5 Supporting layer services and service mapping .................................................. 143 A.6 Communication profile specific parameters of the COSEM AL services ............... 143 A.7 Specific considerations / constraints using certain services within a given profile ............................................................................................................... 143 A.8 The 3-layer, connection-oriented, HDLC based communication profile ................ 143 A.9 The TCP-UDP/IP based communication profiles (COSEM_on_IP) ...................... 143 A.10 The S-FSK PLC profile ...................................................................................... 143 Annex B (normative)

SMS short wrapper .......................................................................... 144 Annex C (informative)

AARQ and AARE encoding examples ............................................. 145 C.1 General ............................................................................................................. 145 C.2 Encoding of the xDLMS InitiateRequest / InitiateResponse APDUs ..................... 145 C.3 Specification of the AARQ and AARE APDUs .................................................... 148

– 4 – IEC 62056-5-3:2016  IEC 2016

C.4 Data for the examples ....................................................................................... 149 C.5 Encoding of the AARQ APDU ............................................................................ 150 C.6 Encoding of the AARE APDU ............................................................................. 153 Annex D (informative)

Encoding examples: AARQ and AARE APDUs using a ciphered application context ............................................................................................................ 159 D.1 A-XDR encoding of the xDLMS InitiateRequest APDU, carrying a dedicated key ................................................................................................................... 159 D.2 Authenticated encryption of the xDLMS InitiateRequest APDU ........................... 160 D.3 The AARQ APDU .............................................................................................. 161 D.4 A-XDR encoding of the xDLMS InitiateResponse APDU ..................................... 162 D.5 Authenticated encryption of the xDLMS InitiateResponse APDU ......................... 163 D.6 The AARE APDU............................................................................................... 164 D.7 The RLRQ APDU (carrying a ciphered xDLMS InitiateRequest APDU) ................ 165 D.8 The RLRE APDU (carrying a ciphered xDLMS InitiateResponse APDU) .............. 166 Annex E (informative)

Data transfer service examples ...................................................... 167 Annex F (informative)

Overview of cryptography ............................................................... 183 F.1 General ............................................................................................................. 183 F.2 Hash functions .................................................................................................. 183 F.3 Symmetric key algorithms .................................................................................. 184 F.3.1 General ..................................................................................................... 184 F.3.2 Encryption and decryption .......................................................................... 184 F.3.3 Advanced Encryption Standard (AES) ......................................................... 185 F.3.4 Encryption Modes of Operation .................................................................. 185 F.3.5 Message Authentication Code .................................................................... 186 F.3.6 Key establishment ...................................................................................... 187 F.4 Asymmetric key algorithms ................................................................................ 187 F.4.1 General ..................................................................................................... 187 F.4.2 Digital signatures ....................................................................................... 188 F.4.3 Key establishment ...................................................................................... 188 Annex G (informative)

Significant technical changes with respect to IEC 62056-5-3 Ed.1.0:2013 ...................................................................................................................... 189 Bibliography ..................................................................................................................... 191 Index ................................................................................................................................ 194

Figure 1 – Structure of the COSEM Application layers ......................................................... 15 Figure 2 – Summary of DLMS/COSEM AL services .............................................................. 22 Figure 3 – Authentication mechanisms during AA establishment .......................................... 27 Figure 4 – Structure of service specific global ciphering and dedicated ciphering APDUs ............................................................................................................................... 30 Figure 5 – Structure of general global ciphering and dedicated ciphering APDUs ................. 30 Figure 6 – Cryptographic protection of xDLMS APDUs using GCM ....................................... 37 Figure 7 – Service primitives ............................................................................................... 43 Figure 8 – Time sequence diagrams .................................................................................... 44 Figure 9 – Additional service parameters to control cryptographic protection and general block transfer ......................................................................................................... 54 Figure 10 – Partial state machine for the client side control function .................................... 80 Figure 11 – Partial state machine for the server side control function ................................... 81

IEC 62056-5-3:2016  IEC 2016 – 5 –
Figure 12 – MSC for successful AA establishment preceded by a

successful lower layer connection establishment ........................................................................................... 88 Figure 13 – Graceful AA release using the A-RELEASE service ........................................... 93 Figure 14 – Graceful AA release by disconnecting the supporting layer ................................ 94 Figure 15 – Aborting an AA following a PH-ABORT.indication .............................................. 95 Figure 16 – MSC of the GET service ................................................................................... 98 Figure 17 – MSC of the GET service with block transfer ....................................................... 99 Figure 18 – MSC of the GET service with block transfer, long GET aborted ........................ 101 Figure 19 – MSC of the SET service .................................................................................. 102 Figure 20 – MSC of the SET service with block transfer ..................................................... 102 Figure 21 – MSC of the ACTION service ........................................................................... 104 Figure 22 – MSC of the ACTION service with block transfer ............................................... 105 Figure 23 – MSC of the Read service used for reading an attribute .................................... 109 Figure 24 – MSC of the Read service used for invoking a method ...................................... 109 Figure 25 – MSC of the Read Service used for reading an attribute, with block transfer ...... 110 Figure 26 – MSC of the Write service used for writing an attribute ...................................... 113 Figure 27 – MSC of the Write service used for invoking a method ...................................... 113 Figure 28 – MSC of the Write service used for

writing an attribute, with block transfer ....... 114 Figure 29 – MSC of the Unconfirmed Write service used for writing an attribute ................. 115 Figure 30 – Partial service invocations and GBT APDUs .................................................... 118 Figure 31 – GET service with GBT, switching to streaming ................................................ 120 Figure 32 – GET service with partial invocations, GBT and streaming, recovery of 4th block sent in the 2nd stream ............................................................................................. 121 Figure 33 – GET service with partial invocations, GBT and streaming, recovery of 4th and 5th blocks .................................................................................................................. 122 Figure 34 – GET service with partial invocations, GBT and streaming, recovery of last block ................................................................................................................................ 123 Figure 35 – SET service with GBT, with server not supporting streaming, recovery of 3rd block .......................................................................................................................... 124 Figure 36 – ACTION-WITH-LIST service with bi-directional GBT and block recovery .......... 125 Figure 37 – DataNotification service with GBT with partial invocation ................................. 126 Figure B.1 – Short wrapper ............................................................................................... 144 Figure F.1 – Hash function ................................................................................................ 184 Figure F.2 – Encryption and decryption ............................................................................. 185 Figure F.3 – Message Authentication Codes (MACs) ......................................................... 186

Table 1 – Clarification of the meaning of PDU Size for DLMS/COSEM ................................. 18 Table 2 – Security suites ..................................................................................................... 29 Table 3 – Ciphered xDLMS APDUs ..................................................................................... 29 Table 4 – Use of the fields of the ciphered APDUs ............................................................... 31 Table 5 – Cryptographic keys and their management ........................................................... 34 Table 6 – Security control byte ............................................................................................ 38 Table 7 – Plaintext and additional authenticated data .......................................................... 38 Table 8 – Example for ciphered APDUs ............................................................................... 40 Table 9 – HLS example with GMAC ..................................................................................... 42

– 6 – IEC 62056-5-3:2016  IEC 2016

Table 10 – Codes for AL service parameters ....................................................................... 45 Table 11 – Service parameters of the COSEM-OPEN service primitives ............................... 46 Table 12 – Service parameters of the COSEM-RELEASE service primitives ......................... 50 Table 13 – Service parameters of the COSEM-ABORT service primitives ............................. 53 Table 14 – Additional service parameters ..................................................

...

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.