DLMS/COSEM Architecture and Protocols
Total Page:16
File Type:pdf, Size:1020Kb
DLMS/COSEM Architecture and Protocols Excerpt from Companion Specification for Energy Metering DLMS/COSEM Architecture and Protocols DLMS User Association Green Green 9 Book Ed. © Copyright 1997-2019 DLMS User Association DLMS/COSEM Architecture and Protocols CONTENTS Foreword to Excerpt ............................................................................................................. 10 Foreword .............................................................................................................................. 10 List of main technical changes in Edition 9 ........................................................................... 11 1 Scope ........................................................................................................................... 12 2 Referenced Documents ................................................................................................. 14 3 Terms, definitions and abbreviations and symbols ........................................................ 16 3.1 General DLMS/COSEM definitions .................................................................. 16 3.2 Definitions related to cryptographic security .................................................... 17 3.4 General abbreviations ..................................................................................... 22 3.5 Definitions, abbreviations, symbols and notation relevant for related to the Galois/Counter Mode ....................................................................................... 27 3.6 Definitions, abbreviations, symbols and notation relevant for the ECDSA algorithm ......................................................................................................... 28 3.7 Definitions, abbreviations, symbols and notation relevant for the key agreement algorithms ....................................................................................................... 28 3.8 Abbreviations related to the DLMS/COSEM M-Bus communication profile ....... 28 4 Information exchange in DLMS/COSEM ........................................................................ 30 4.1 General ........................................................................................................... 30 4.2 Communication model ..................................................................................... 30 4.3 Naming and addressing ................................................................................... 31 4.3.1 General .......................................................................................... 31 4.3.2 Naming .......................................................................................... 32 4.3.3 Addressing ..................................................................................... 32 4.3.4 System title .................................................................................... 33 4.3.5 Logical Device Name ..................................................................... 34 4.3.6 Client user identification ................................................................. 34 4.4 Connection oriented operation ......................................................................... 34 4.5 Application associations .................................................................................. 35 4.5.1 General .......................................................................................... 35 4.5.2 Application context ......................................................................... 35 4.5.3 Authentication ................................................................................ 35 4.5.4 xDLMS context ............................................................................... 36 4.5.5 Security context ............................................................................. 36 4.5.6 Access rights ................................................................................. 36 4.6 Messaging patterns ......................................................................................... 36 4.7 Data exchange between third parties and DLMS/COSEM servers .................... 37 4.8 Communication profiles ................................................................................... 37 4.9 Model of a DLMS/COSEM metering system ..................................................... 38 4.10 Model of DLMS/COSEM servers ...................................................................... 39 4.11 Model of a DLMS/COSEM client ...................................................................... 40 4.12 Interoperability and interconnectivity in DLMS/COSEM .................................... 41 4.13 Ensuring interconnectivity: the protocol identification service .......................... 42 4.14 System integration and meter installation ........................................................ 42 2/142 2019-05-08 DLMS UA 1000-2 Ed. 9 Excerpt DLMS User Association © Copyright 1997-2019 DLMS User Association DLMS/COSEM Architecture and Protocols 5 Physical layer services and procedures for connection-oriented asynchronous data exchange (excerpt) ....................................................................................................... 43 5.1 Overview ......................................................................................................... 43 5.2 Service specification ....................................................................................... 44 5.2.1 List of services ............................................................................... 44 5.2.2 Use of the physical layer services .................................................. 44 6 Direct Local Connection (excerpt) ................................................................................. 46 6.1 Introduction ..................................................................................................... 46 6.2 METERING HDLC protocol using protocol mode E for direct local data exchange46 6.3 Overview ......................................................................................................... 47 7 DLMS/COSEM transport layer for IP networks .............................................................. 48 7.1 Scope .............................................................................................................. 48 7.2 Overview ......................................................................................................... 48 7.3 The DLMS/COSEM connection-less, UDP-based transport layer ..................... 50 7.3.1 General .......................................................................................... 50 7.4 The DLMS/COSEM connection-oriented, TCP-based transport layer ............... 50 7.4.1 General .......................................................................................... 50 7.5 Converting OSI-style TL services to and from RFC-style TCP function calls .... 51 7.5.1 Transport layer and TCP connection establishment ........................ 51 8 Data Link Layer using the HDLC protocol ...................................................................... 53 8.1 Overview ......................................................................................................... 53 8.1.1 General .......................................................................................... 53 8.1.2 Structure of the data link layer ....................................................... 53 8.1.3 Specification method ...................................................................... 54 8.2 Service specification ....................................................................................... 55 8.2.1 General .......................................................................................... 55 8.3 Protocol specification for the LLC sublayer ...................................................... 55 8.3.1 Role of the LLC sublayer ................................................................ 55 8.3.2 LLC PDU format ............................................................................. 55 8.4 Protocol specification for the MAC sublayer..................................................... 56 8.4.1 The MAC PDU and the HDLC frame ............................................... 56 8.4.1.1 HDLC frame format type 3 .......................................................... 56 8.4.1.2 Flag field .................................................................................... 56 8.4.1.3 Frame format field ...................................................................... 56 8.4.1.4 Destination and source address fields ........................................ 56 8.4.1.5 Control field ................................................................................ 57 8.4.1.6 Header check sequence (HCS) field ........................................... 57 8.4.1.7 Information field ......................................................................... 57 8.4.1.8 Frame check sequence (FCS) field ............................................. 57 8.4.2 MAC addressing ............................................................................. 57 8.4.2.1 Use of extended addressing ....................................................... 57 8.4.2.2 Address field structure ................................................................ 57 8.4.2.3 Reserved special HDLC addresses............................................. 58 8.4.2.4 Handling special addresses ........................................................ 59