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

IEC 620565-3:2013 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, using either logical name (LN) or short name (SN) referencing. This edition cancels and replaces IEC 62056-53 published in 2006. It constitutes a technical revision.

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

La CEI 62056-5-3:2013 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 la CEI 62056-6-2, à l'aide du référencement par nom logique (LN) ou par nom abrégé (SN). Cette édition annule et remplace la CEI 62056-53 parue en 2006. Cette édition constitue une révision technique.

General Information

Status
Published
Publication Date
04-Jun-2013
Current Stage
DELPUB - Deleted Publication
Completion Date
04-Mar-2016
Ref Project

Buy Standard

Standard
IEC 62056-5-3:2013 - Electricity metering data exchange - The DLMS/COSEM suite - Part 5-3: DLMS/COSEM application layer Released:6/5/2013
English and French language
368 pages
sale 15% off
Preview
sale 15% off
Preview

Standards Content (Sample)

IEC 62056-5-3
®

Edition 1.0 2013-06
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

IEC 62056-5-3:2013

---------------------- Page: 1 ----------------------
THIS PUBLICATION IS COPYRIGHT PROTECTED
Copyright © 2013 IEC, Geneva, Switzerland

All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form
or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from
either IEC or IEC's member National Committee in the country of the requester.
If you have any questions about IEC copyright or have an enquiry about obtaining additional rights to this publication,
please contact the address below or your local IEC member National Committee for further information.


Droits de reproduction réservés. Sauf indication contraire, aucune partie de cette publication ne peut être reproduite ni
utilisée sous quelque forme que ce soit et par aucun procédé, électronique ou mécanique, y compris la photocopie et les
microfilms, sans l'accord écrit de la CEI ou du Comité national de la CEI du pays du demandeur.
Si vous avez des questions sur le copyright de la CEI ou si vous désirez obtenir des droits supplémentaires sur cette
publication, utilisez les coordonnées ci-après ou contactez le Comité national de la CEI de votre pays de résidence.

IEC Central Office Tel.: +41 22 919 02 11
3, rue de Varembé Fax: +41 22 919 03 00
CH-1211 Geneva 20 info@iec.ch
Switzerland www.iec.ch

About the IEC
The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes
International Standards for all electrical, electronic and related technologies.

About IEC publications
The technical content of IEC publications is kept under constant review by the IEC. Please make sure that you have the
latest edition, a corrigenda or an amendment might have been published.

Useful links:

IEC publications search - www.iec.ch/searchpub Electropedia - www.electropedia.org
The advanced search enables you to find IEC publications The world's leading online dictionary of electronic and
by a variety of criteria (reference number, text, technical electrical terms containing more than 30 000 terms and
committee,…). definitions in English and French, with equivalent terms in
It also gives information on projects, replaced and additional languages. Also known as the International
withdrawn publications. Electrotechnical Vocabulary (IEV) on-line.

IEC Just Published - webstore.iec.ch/justpublished Customer Service Centre - webstore.iec.ch/csc
Stay up to date on all new IEC publications. Just Published If you wish to give us your feedback on this publication
details all new publications released. Available on-line and or need further assistance, please contact the
also once a month by email. Customer Service Centre: csc@iec.ch.


A propos de la CEI
La Commission Electrotechnique Internationale (CEI) est la première organisation mondiale qui élabore et publie des
Normes internationales pour tout ce qui a trait à l'électricité, à l'électronique et aux technologies apparentées.

A propos des publications CEI
Le contenu technique des publications de la CEI est constamment revu. Veuillez vous assurer que vous possédez
l’édition la plus récente, un corrigendum ou amendement peut avoir été publié.

Liens utiles:

Recherche de publications CEI - www.iec.ch/searchpub Electropedia - www.electropedia.org
La recherche avancée vous permet de trouver des Le premier dictionnaire en ligne au monde de termes
publications CEI en utilisant différents critères (numéro de électroniques et électriques. Il contient plus de 30 000
référence, texte, comité d’études,…). termes et définitions en anglais et en français, ainsi que
Elle donne aussi des informations sur les projets et les les termes équivalents dans les langues additionnelles.
publications remplacées ou retirées. Egalement appelé Vocabulaire Electrotechnique
International (VEI) en ligne.
Just Published CEI - webstore.iec.ch/justpublished
Service Clients - webstore.iec.ch/csc
Restez informé sur les nouvelles publications de la CEI.
Just Published détaille les nouvelles publications parues. Si vous désirez nous donner des commentaires sur
Disponible en ligne et aussi une fois par mois par email. cette publication ou si vous avez des questions
contactez-nous: csc@iec.ch.

---------------------- Page: 2 ----------------------
IEC 62056-5-3

®


Edition 1.0 2013-06




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

PRICE CODE
INTERNATIONALE

CODE PRIX XH


ICS 17.220; 35.110; 91.140.50 ISBN 978-2-83220-812-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: 3 ----------------------
– 2 – 62056-5-3 © IEC:2013
CONTENTS
FOREWORD . 7
1 Scope . 9
2 Normative references . 9
3 Terms, definitions and abbreviations . 11
3.1 Terms and definitions . 11
3.2 Abbreviations . 11
4 Overview . 13
4.1 COSEM application layer structure . 13
4.2 COSEM application layer services . 14
4.2.1 ASO services . 14
4.2.2 Services provided for application association establishment and
release . 14
4.2.3 Services provided for data transfer . 15
4.2.4 Layer management services . 19
4.2.5 Summary of COSEM application layer services . 19
4.3 COSEM application layer protocols . 20
5 Information security in DLMS/COSEM . 20
5.1 Definitions . 20
5.2 General . 20
5.3 Data access security . 21
5.3.1 Overview . 21
5.3.2 Lowest level security (no security) . 21
5.3.3 Low Level Security (LLS) . 21
5.3.4 High Level Security (HLS) . 22
5.4 Data transport security . 23
5.4.1 Applying, removing or checking the protection: ciphering and
deciphering. 23
5.4.2 Security context . 25
5.4.3 Security policy . 25
5.4.4 Security suite . 25
5.4.5 Security material . 26
5.4.6 Ciphered xDLMS APDUs . 26
5.4.7 Cryptographic keys . 27
5.4.8 The Galois/Counter Mode of Operation (GCM) . 30
6 COSEM application layer service specification . 40
6.1 Service primitives and parameters . 40
6.2 The COSEM-OPEN service . 42
6.3 The COSEM-RELEASE service . 47
6.4 COSEM-ABORT service . 49
6.5 Security parameters . 50
6.6 The GET service . 51
6.7 The SET service . 53
6.8 The ACTION service . 56
6.9 The EventNotification service . 60
6.10 The TriggerEventNotificationSending service . 61
6.11 Variable access specification . 62
6.12 The Read service . 63

---------------------- Page: 4 ----------------------
62056-5-3 © IEC:2013 – 3 –
6.13 The Write service . 67
6.14 The UnconfirmedWrite service . 70
6.15 The InformationReport service. 71
6.16 Client side layer management services: the SetMapperTable.request . 72
6.17 Summary of services and LN/SN data transfer service mapping . 72
7 COSEM application layer protocol specification . 73
7.1 The control function . 73
7.1.1 State definitions of the client side control function . 73
7.1.2 State definitions of the server side control function . 75
7.2 The ACSE services and APDUs . 76
7.2.1 ACSE functional units, services and service parameters . 76
7.2.2 Registered COSEM names . 79
7.2.3 APDU encoding rules . 81
7.2.4 Protocol for application association establishment . 81
7.2.5 Protocol for application association release . 85
7.3 Protocol for the data transfer services . 89
7.3.1 Negotiation of services and options – the conformance block . 89
7.3.2 Confirmed and unconfirmed service invocations . 90
7.3.3 Protocol for the GET service . 91
7.3.4 Protocol for the SET service . 94
7.3.5 Protocol for the ACTION service . 97
7.3.6 Protocol for the EventNotification service . 99
7.3.7 Protocol for the Read service . 100
7.3.8 Protocol for the Write service. 104
7.3.9 Protocol for the UnconfirmedWrite service . 108
7.3.10 Protocol for the InformationReport service . 109
8 Abstract syntax of ACSE and COSEM APDUs . 110
Annex A (normative) Using the COSEM application layer in various communications
profiles . 124
Annex B (informative) AARQ and AARE encoding examples . 126
Annex C (informative) Encoding examples: AARQ and AARE APDUs using a ciphered
application context . 140
Annex D (informative) Data transfer service examples . 148
Annex E (informative) Overview of cryptography . 163
Annex F (informative) Significant technical changes with respect to IEC 62056-53 . 169
Bibliography . 172
Index . 174

Figure 1 – Structure of the COSEM Application layers . 13
Figure 2 – Summary of COSEM AL services . 19
Figure 3 – LLS and HLS authentication . 23
Figure 4 – Data transport security in DLMS/COSEM . 24
Figure 5 – Ciphered xDLMS APDUs . 26
Figure 6 – Cryptographic protection of xDLMS APDUs using GCM . 33
Figure 7 – Service primitives . 40
Figure 8 – Time sequence diagrams . 41
Figure 9 – Partial state machine for the client side control function . 74

---------------------- Page: 5 ----------------------
– 4 – 62056-5-3 © IEC:2013
Figure 10 – Partial state machine for the server side control function . 75
Figure 11 – MSC for successful AA establishment preceded by a successful lower
layer connection establishment . 82
Figure 12 – Graceful AA release using the A-RELEASE service . 87
Figure 13 – Graceful AA release by disconnecting the supporting layer . 88

Figure 14 – Aborting an AA following a PH-ABORT.indication . 89
Figure 15 – MSC of the GET service . 92
Figure 16 – MSC of the GET service with block transfer . 92
Figure 17 – MSC of the GET service with block transfer, long GET aborted . 94
Figure 18 – MSC of the SET service . 95
Figure 19 – MSC of the SET service with block transfer . 96
Figure 20 – MSC of the ACTION service . 98
Figure 21 – MSC of the ACTION service with block transfer . 99
Figure 22 – MSC of the Read service used for reading an attribute . 102
Figure 23 – MSC of the Read service used for invoking a method . 103
Figure 24 – MSC of the Read Service used for reading an attribute, with block transfer . 104
Figure 25 – MSC of the Write service used for writing an attribute . 107
Figure 26 – MSC of the Write service used for invoking a method . 107
Figure 27 – MSC of the Write Service used for writing an attribute, with block transfer . 108
Figure 28 – MSC of the Unconfirmed Write service used for writing an attribute . 109
Figure E.1 – Hash function. 164
Figure E.2 – Encryption and decryption. 165
Figure E.3 – Message Authentication Codes (MACs) . 166

Table 1 – Clarification of the meaning of PDU Size for DLMS/COSEM . 16
Table 2 – Security suites . 26
Table 3 – Security control field . 27
Table 4 – Cryptographic keys and their management . 30
Table 5 – Plaintext and additional authenticated data . 34
Table 6 – Example for ciphered APDUs . 37
Table 7 – HLS example with GMAC . 39
Table 8 – Codes for AL service parameters . 42
Table 9 – Service parameters of the COSEM-OPEN service primitives . 43
Table 10 – Service parameters of the COSEM-RELEASE service primitives . 47
Table 11 – Service parameters of the COSEM-ABORT service primitives . 50
Table 12 – Security parameters . 50
Table 13 – Service parameters of the GET service . 51
Table 14 – GET service request and response types . 52
Table 15 – Service parameters of the SET service . 54
Table 16 – SET service request and response types . 55
Table 17 – Service parameters of the ACTION service . 57
Table 18 – ACTION service request and response types . 58
Table 19 – Service parameters of the EventNotification service primitives . 60

---------------------- Page: 6 ----------------------
62056-5-3 © IEC:2013 – 5 –
Table 20 – Service parameters of the TriggerEventNotificationSending.request service
primitive . 61
Table 21 – Variable Access Specification . 63
Table 22 – Service parameters of the Read service . 64
Table 23 – Use of the Variable_Access_Specification variants and the Read.response
choices . 65
Table 24 – Service parameters of the Write service . 68
Table 25 – Use of the Variable_Access_Specification variants and the Write.response
choices . 68
Table 26 – Service parameters of the UnconfirmedWrite service . 70
Table 27 – Use of the Variable_Access_Specification variants . 71
Table 28 – Service parameters of the InformationReport service. 72
Table 29 – Service parameters of the SetMapperTable.request service primitives . 72
Table 30 – Summary of ACSE services . 73
Table 31 – Summary of xDLMS services for LN referencing . 73
Table 32 – Summary of xDLMS services for SN referencing . 73
Table 33 – ACSE functional units, services and service parameters. 77
Table 34 – Use of ciphered / unciphered APDUs . 80
Table 35 – xDLMS Conformance block . 90
Table 36 – GET service types and APDUs . 91
Table 37 – SET service types and APDUs . 95
Table 38 – ACTION service types and APDUs . 98
Table 39 – Mapping between the GET and the Read services . 100
Table 40 – Mapping between the ACTION and the Read services . 101
Table 41 – Mapping between the SET and the Write services . 105
Table 42 – Mapping between the ACTION and the Write service. 106
Table 43 – Mapping between the SET and the UnconfirmedWrite services . 108
Table 44 – Mapping between the ACTION and the UnconfirmedWrite services . 109
Table 45 – Mapping between the EventNotification and InformationReport services . 110
Table B.1 – Conformance block . 127
Table B.2 – A-XDR encoding of the xDLMS InitiateRequest APDU . 128
Table B.3 – A-XDR encoding of the xDLMS InitiateResponse APDU . 129
Table B.4 – BER encoding of the AARQ APDU . 132
Table B.5 – Complete AARQ APDU . 134
Table B.6 – BER encoding of the AARE APDU . 135
Table B.7 – The complete AARE APDU . 139
Table C.1 – A-XDR encoding of the xDLMS InitiateRequest APDU . 140
Table C.2 – Authenticated encryption of the xDLMS InitiateRequest APDU . 141
Table C.3 – BER encoding of the AARQ APDU . 142
Table C.4 – A-XDR encoding of the xDLMS InitiateResponse APDU . 143
Table C.5 – Authenticated encryption of the xDLMS InitiateResponse APDU . 144
Table C.6 – BER encoding of the AARE APDU . 145
Table C.7 – BER encoding of the RLRQ APDU . 146
Table C.8 – BER encoding of the RLRE APDU . 147

---------------------- Page: 7 ----------------------
– 6 – 62056-5-3 © IEC:2013
Table D.1 – Objects used in the examples . 148
Table D.2 – Example: Reading the value of a single attribute without block transfer . 149
Table D.3 – Example: Reading the value of a list of attributes without block transfer . 150
Table D.4 – Example: Reading the value of a single attribute with block transfer . 151
Table D.5 – Example: Reading the value of a list of attributes with block transfer . 153
Table D.6 – Example: Writing the value of a single attribute without block transfer . 155
Table D.7 – Example: Writing the value of a list of attributes without block transfer . 156
Table D.8 – Example: Writing the value of a single attribute with block transfer . 158
Table D.9 – Example: Writing the value of a list of attributes with block transfer . 160

---------------------- Page: 8 ----------------------
62056-5-3 © IEC:2013 – 7 –
INTERNATIONAL ELECTROTECHNICAL COMMISSION
____________

ELECTRICITY METERING DATA EXCHANGE –
THE DLMS/COSEM SUITE –

Part 5-3: DLMS/COSEM application layer

FOREWORD
1) The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising
all national electrotechnical committees (IEC National Committees). The object of IEC is to promote
international co-operation on all questions concerning standardization in the electrical and electronic fields. To
this end and in addition to other activities, IEC publishes International Standards, Technical Specifications,
Technical Reports, Publicly Available Specifications (PAS) and Guides (hereafter referred to as “IEC
Publication(s)”). Their preparation is entrusted to technical committees; any IEC National Committee interested
in the subject dealt with may participate in this preparatory work. International, governmental and non-
governmental organizations liaising with the IEC also participate in this preparation. IEC collaborates closely
with the International Organization for Standardization (ISO) in accordance with conditions determined by
agreement between the two organizations.
2) The formal decisions or agreements of IEC on technical matters express, as nearly as possible, an international
consensus of opinion on the relevant subjects since each technical committee has representation from all
interested IEC National Committees.
3) IEC Publications have the form of recommendations for international use and are accepted by IEC National
Committees in that sense. While all reasonable efforts are made to ensure that the technical content of IEC
Publications is accurate, IEC cannot be held responsible for the way in which they are used or for any
misinterpretation by any end user.
4) In order to promote international uniformity, IEC National Committees undertake to apply IEC Publications
transparently to the maximum extent possible in their national and regional publications. Any divergence
between any IEC Publication and the corresponding national or regional publication shall be clearly indicated in
the latter.
5) IEC itself does not provide any attestation of conformity. Independent certification bodies provide conformity
assessment services and, in some areas, access to IEC marks of conformity. IEC is not responsible for any
services carried out by independent certification bodies.
6) All users should ensure that they have the latest edition of this publication.
...

Questions, Comments and Discussion

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