OPC Unified Architecture - Part 14: PubSub

This part of IEC 62541 defines the OPC Unified Architecture (OPC UA) PubSub
communication model. It defines an OPC UA publish subscribe pattern which complements
the client server pattern defined by the Services in IEC 62541-4. IEC TR 62541-1 gives an
overview of the two models and their distinct uses.
PubSub allows the distribution of data and events from an OPC UA information source to
interested observers inside a device network as well as in IT and analytics cloud systems.
This document consists of
• a general introduction of the PubSub concepts,
• a definition of the PubSub configuration parameters,
• mapping of PubSub concepts and configuration parameters to messages and transport
protocols, and
• a PubSub configuration model.
Not all OPC UA Applications will need to implement all defined message and transport
protocol mappings. IEC 62541-7 defines the Profile that dictates which mappings need to be
implemented in order to be compliant with a particular Profile.

OPC Unified Architecture - Teil 14: Festlegungen zur Umsetzung des Publisher-Subscriber-Models

Architecture unifiée OPC - Partie 14: PubSub

IEC 62541-14:2020 définit le modèle de communication PubSub de l'architecture unifiée OPC (OPC UA). Elle définit un modèle publication/abonnement OPC UA qui vient compléter le modèle client/serveur défini par les Services dans l'IEC 62541-4. Une présentation des deux modèles et de leurs utilisations est donnée dans l'IEC TR 62541-1. PubSub permet de distribuer des données et des événements provenant d'une source d'informations OPC UA aux observateurs d'intérêt à l'intérieur d'un réseau de dispositifs ainsi que dans les systèmes Cloud informatiques et d'analyse. Le présent document se compose: • d'une présentation générale des concepts PubSub; • d'une définition des paramètres de configuration PubSub; • d'un mapping des concepts et des paramètres de configuration PubSub avec les messages et les protocoles de transport; et • d'un modèle de configuration PubSub. Il n'est pas nécessaire que l'ensemble des Applications OPC UA mettent en œuvre tous les mappings avec les messages et les protocoles de transport. L'IEC 62541-7 définit le Profil qui dicte les mappings qu'il est nécessaire de mettre en œuvre afin d'être conforme à un Profil particulier.

Enotna arhitektura OPC - 14. del: Objava

General Information

Status
Published
Public Enquiry End Date
11-Nov-2018
Publication Date
09-Nov-2020
Current Stage
6060 - National Implementation/Publication (Adopted Project)
Start Date
09-Sep-2020
Due Date
14-Nov-2020
Completion Date
10-Nov-2020

Buy Standard

Standard
SIST EN IEC 62541-14:2020 - BARVE
English language
192 pages
sale 10% off
Preview
sale 10% off
Preview

e-Library read for
1 day

Standards Content (sample)

SLOVENSKI STANDARD
SIST EN IEC 62541-14:2020
01-december-2020
Enotna arhitektura OPC - 14. del: Objava
OPC Unified Architecture - Part 14: PubSub
OPC Unified Architecture - Teil 14: Festlegungen zur Umsetzung des Publisher-
Subscriber-Models
Architecture unifiée OPC - Partie 14: PubSub
Ta slovenski standard je istoveten z: EN IEC 62541-14:2020
ICS:
25.040.40 Merjenje in krmiljenje Industrial process
industrijskih postopkov measurement and control
35.240.50 Uporabniške rešitve IT v IT applications in industry
industriji
SIST EN IEC 62541-14:2020 en,fr,de

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

---------------------- Page: 1 ----------------------
SIST EN IEC 62541-14:2020
---------------------- Page: 2 ----------------------
SIST EN IEC 62541-14:2020
EUROPEAN STANDARD EN IEC 62541-14
NORME EUROPÉENNE
EUROPÄISCHE NORM
September 2020
ICS 25.040.40; 35.100.05
English Version
OPC unified architecture - Part 14: PubSub
(IEC 62541-14:2020)

Architecture unifiée OPC - Partie 14: PubSub OPC Unified Architecture - Teil 14: Festlegungen zur

(IEC 62541-14:2020) Umsetzung des Publisher-Subscriber-Models
(IEC 62541-14:2020)

This European Standard was approved by CENELEC on 2020-08-12. 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, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, the

Netherlands, Norway, Poland, Portugal, Republic of North Macedonia, Romania, Serbia, 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: Rue de la Science 23, B-1040 Brussels

© 2020 CENELEC All rights of exploitation in any form and by any means reserved worldwide for CENELEC Members.

Ref. No. EN IEC 62541-14:2020 E
---------------------- Page: 3 ----------------------
SIST EN IEC 62541-14:2020
EN IEC 62541-14:2020 (E)
European foreword

The text of document 65E/720/FDIS, future edition 1 of IEC 62541-14, prepared by SC 65E "Devices

and integration in enterprise systems" of IEC/TC 65 "Industrial-process measurement, control and

automation" was submitted to the IEC-CENELEC parallel vote and approved by CENELEC as

EN IEC 62541-14:2020.
The following dates are fixed:

• latest date by which the document has to be implemented at national (dop) 2021-05-12

level by publication of an identical national standard or by endorsement

• latest date by which the national standards conflicting with the (dow) 2023-08-12

document have to be withdrawn

Attention is drawn to the possibility that some of the elements of this document may be the subject of

patent rights. CENELEC shall not be held responsible for identifying any or all such patent rights.

Endorsement notice

The text of the International Standard IEC 62541-14:2020 was approved by CENELEC as a European

Standard without any modification.
---------------------- Page: 4 ----------------------
SIST EN IEC 62541-14:2020
EN IEC 62541-14:2020 (E)
Annex ZA
(normative)
Normative references to international publications
with their corresponding European publications

The following documents are referred to in the text in such a way that some or all of their content

constitutes requirements of this document. For dated references, only the edition cited applies. For

undated references, the latest edition of the referenced document (including any amendments)

applies.

NOTE 1 Where 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/TR 62541-1 - OPC unified architecture - Part 1: CLC/TR 62541-1 -
Overview and concepts
IEC/TR 62541-2 - OPC unified architecture - Part 2: CLC/TR 62541-2 -
Security model
IEC 62541-3 - OPC Unified Architecture - Part 3: - -
Address Space Model
IEC 62541-4 - OPC Unified Architecture - Part 4: - -
Services
IEC 62541-5 - OPC Unified Architecture - Part 5: - -
Information Model
IEC 62541-6 - OPC Unified Architecture - Part 6: - -
Mappings
IEC 62541-7 - OPC unified architecture - Part 7: EN IEC 62541-7 -
Profiles
IEC 62541-8 - OPC Unified Architecture - Part 8: EN IEC 62541-8 -
Data Access
IEC 62541-12 - OPC unified architecture - Part 12: EN IEC 62541-12 -
Discovery and global services
ISO/IEC 19464 2014 Information technology - Advanced - -
Message Queuing Protocol (AMQP)
v1.0 specification
ISO/IEC 20922 2016 Information technology - Message - -
Queuing Telemetry Transport (MQTT)
v3.1.1
IETF RFC 7159 - The JavaScript Object Notation - -
(JSON) Data Interchange Format
---------------------- Page: 5 ----------------------
SIST EN IEC 62541-14:2020
---------------------- Page: 6 ----------------------
SIST EN IEC 62541-14:2020
IEC 62541-14
Edition 1.0 2020-07
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
colour
inside
OPC unified architecture –
Part 14: PubSub
Architecture unifiée OPC –
Partie 14: PubSub
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
COMMISSION
ELECTROTECHNIQUE
INTERNATIONALE
ICS 25.040.40; 35.100.05 ISBN 978-2-8322-8577-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 IEC 62541-14:2020
– 2 – IEC 62541-14:2020 © IEC 2020
CONTENTS

FOREWORD ......................................................................................................................... 10

1 Scope ............................................................................................................................ 12

2 Normative references .................................................................................................... 12

3 Terms, definitions and abbreviated terms ...................................................................... 13

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

3.2 Abbreviated terms ................................................................................................. 14

4 Overview ....................................................................................................................... 14

4.1 Fields of application .............................................................................................. 14

4.2 Abstraction layers ................................................................................................. 15

4.3 Decoupling by use of middleware .......................................................................... 15

4.4 Synergy of models ................................................................................................ 16

5 PubSub Concepts .......................................................................................................... 16

5.1 General ................................................................................................................. 16

5.2 DataSet ................................................................................................................ 17

5.2.1 General ......................................................................................................... 17

5.2.2 DataSetClass ................................................................................................ 18

5.2.3 DataSetMetaData .......................................................................................... 18

5.3 Messages ............................................................................................................. 19

5.3.1 General ......................................................................................................... 19

5.3.2 DataSetMessage field .................................................................................... 20

5.3.3 DataSetMessage ........................................................................................... 20

5.3.4 NetworkMessage ........................................................................................... 21

5.3.5 Message security ........................................................................................... 21

5.3.6 Transport security .......................................................................................... 22

5.3.7 SecurityGroup ............................................................................................... 22

5.4 Entities ................................................................................................................. 22

5.4.1 Publisher ....................................................................................................... 22

5.4.2 Subscriber ..................................................................................................... 25

5.4.3 Security Key Service ..................................................................................... 26

5.4.4 Message Oriented Middleware ....................................................................... 29

6 PubSub communication parameters ............................................................................... 33

6.1 Overview............................................................................................................... 33

6.2 Common Configuration Parameters....................................................................... 34

6.2.1 PubSubState State Machine .......................................................................... 34

6.2.2 PublishedDataSet parameters ....................................................................... 36

6.2.3 DataSetWriter Parameters ............................................................................. 44

6.2.4 Shared PubSubGroup Parameters ................................................................. 48

6.2.5 WriterGroup parameters ................................................................................ 50

6.2.6 PubSubConnection Parameters ..................................................................... 52

6.2.7 ReaderGroup parameters .............................................................................. 55

6.2.8 DataSetReader Parameters ........................................................................... 56

6.2.9 SubscribedDataSet Parameters ..................................................................... 60

6.2.10 Information flow and status handling .............................................................. 63

6.2.11 PubSubConfigurationDataType ...................................................................... 65

6.3 Message mapping configuration parameters ......................................................... 66

6.3.1 UADP message mapping ............................................................................... 66

---------------------- Page: 8 ----------------------
SIST EN IEC 62541-14:2020
IEC 62541-14:2020 © IEC 2020 – 3 –

6.3.2 JSON message mapping ............................................................................... 74

6.4 Transport Protocol mapping configuration parameters .......................................... 77

6.4.1 Datagram Transport Protocol ......................................................................... 77

6.4.2 Broker Transport Protocol .............................................................................. 78

7 PubSub mappings ......................................................................................................... 83

7.1 General ................................................................................................................. 83

7.2 Message mappings ............................................................................................... 83

7.2.1 General ......................................................................................................... 83

7.2.2 UADP message mapping ............................................................................... 83

7.2.3 JSON message mapping ............................................................................... 99

7.3 Transport Protocol Mappings .............................................................................. 102

7.3.1 General ....................................................................................................... 102

7.3.2 OPC UA UDP .............................................................................................. 102

7.3.3 OPC UA Ethernet ........................................................................................ 103

7.3.4 AMQP .......................................................................................................... 104

7.3.5 MQTT .......................................................................................................... 109

8 PubSub security key service model ............................................................................. 111

8.1 Overview............................................................................................................. 111

8.2 PublishSubscribe Object ..................................................................................... 111

8.3 PubSubKeyServiceType ...................................................................................... 112

8.4 GetSecurityKeys method ..................................................................................... 112

8.5 GetSecurityGroup method ................................................................................... 114

8.6 SecurityGroupType ............................................................................................. 115

8.7 SecurityGroupFolderType ................................................................................... 116

8.8 AddSecurityGroup Method .................................................................................. 116

8.9 RemoveSecurityGroup Method ............................................................................ 117

9 PubSub configuration model ........................................................................................ 117

9.1 Common configuration model .............................................................................. 117

9.1.1 General ....................................................................................................... 117

9.1.2 Configuration behaviours ............................................................................. 120

9.1.3 Types for the PublishSubscribe Object ........................................................ 120

9.1.4 Published DataSet Model............................................................................. 125

9.1.5 Connection Model ........................................................................................ 141

9.1.6 Group Model ................................................................................................ 145

9.1.7 DataSetWriter Model ................................................................................... 153

9.1.8 DataSetReader Model ................................................................................. 155

9.1.9 Subscribed DataSet Model .......................................................................... 160

9.1.10 PubSub Status Object.................................................................................. 163

9.1.11 PubSub Diagnostics Objects ........................................................................ 164

9.1.12 PubSub Status Events ................................................................................. 173

9.2 Message Mapping Configuration Model ............................................................... 175

9.2.1 UADP Message Mapping ............................................................................. 175

9.2.2 JSON Message Mapping ............................................................................. 177

9.3 Transport Protocol Mapping Configuration Model ................................................ 178

9.3.1 Datagram Transport Protocol Mapping ......................................................... 178

9.3.2 Broker Transport Protocol Mapping.............................................................. 179

Annex A (normative) Common types .................................................................................. 182

A.1 DataType Schema Header structures .................................................................. 182

---------------------- Page: 9 ----------------------
SIST EN IEC 62541-14:2020
– 4 – IEC 62541-14:2020 © IEC 2020

A.1.1 DataTypeSchemaHeader ............................................................................. 182

A.1.2 DataTypeDescription ................................................................................... 183

A.1.3 StructureDescription .................................................................................... 183

A.1.4 EnumDescription ......................................................................................... 184

A.1.5 SimpleTypeDescription ................................................................................ 184

A.2 UABinaryFileDataType ........................................................................................ 184

A.3 NetworkAddress Model ....................................................................................... 185

A.3.1 NetworkAddressType ................................................................................... 185

A.3.2 NetworkAddressUrlType .............................................................................. 186

Annex B (informative) Client Server vs. Publish Subscribe ................................................. 187

B.1 Overview............................................................................................................. 187

B.2 Client Server Subscriptions ................................................................................. 187

B.3 Publish-Subscribe ............................................................................................... 188

B.4 Synergy of models .............................................................................................. 189

Figure 1 – Publish Subscribe Model overview ....................................................................... 15

Figure 2 – Publisher and Subscriber entities ......................................................................... 17

Figure 3 – DataSet in the process of publishing .................................................................... 18

Figure 4 – OPC UA PubSub message layers ......................................................................... 20

Figure 5 – Publisher details .................................................................................................. 23

Figure 6 – Publisher message sending sequence .................................................................. 24

Figure 7 – Subscriber details ................................................................................................ 25

Figure 8 – Subscriber message reception sequence ............................................................. 26

Figure 9 – SecurityGroup management sequence ................................................................. 27

Figure 10 – Handshake used to pull keys from SKS .............................................................. 28

Figure 11 – Handshake used to push keys to Publishers and Subscribers ............................ 28

Figure 12 – Handshake with a Security Key Service ............................................................. 29

Figure 13 – PubSub using network infrastructure .................................................................. 30

Figure 14 – UDP Multicast overview ...................................................................................... 30

Figure 15 – PubSub using broker .......................................................................................... 31

Figure 16 – Broker overview ................................................................................................. 32

Figure 17 – PubSub component overview ............................................................................. 33

Figure 18 – PubSub mapping specific parameters overview .................................................. 34

Figure 19 – PubSub component state dependencies ............................................................. 35

Figure 20 – PubSubState state machine ............................................................................... 35

Figure 21 – PubSub Information Flow dependency to field representation ............................. 45

Figure 22 – PubSub information flow .................................................................................... 64

Figure 23 – Start of the periodic publisher execution ............................................................. 67

Figure 24 – Timing offsets in a PublishingInterval ................................................................. 67

Figure 25 – DataSetOrdering and MaxNetworkMessageSize ................................................. 68

Figure 26 – PublishingOffset options for multiple NetworkMessages ..................................... 70

Figure 27 – UADP NetworkMessage ..................................................................................... 84

Figure 28 – UADP DataSet payload ...................................................................................... 90

Figure 29 – DataSetMessage header structure ..................................................................... 91

Figure 30 – Data Key Frame DataSetMessage data .............................................................. 93

---------------------- Page: 10 ----------------------
SIST EN IEC 62541-14:2020
IEC 62541-14:2020 © IEC 2020 – 5 –

Figure 31 – Data Delta Frame DataSetMessage ................................................................... 94

Figure 32 – Event DataSetMessage ...................................................................................... 95

Figure 33 – KeepAlive message ............................................................................................ 95

Figure 34 – PublishSubscribe Object Types overview ......................................................... 111

Figure 35 – PubSub configuration model overview .............................................................. 118

Figure 36 – PubSub example Objects ................................................................................. 119

Figure 37 – PubSub information flow .................................................................................. 119

Figure 38 – PublishSubscribe Object Types overview ......................................................... 121

Figure 39 – Published DataSet overview ............................................................................. 125

Figure 40 – PubSubConnectionType overview .................................................................... 142

Figure 41 – PubSubGroupType overview ............................................................................ 145

Figure 42 – DataSet Writer Model Overview ........................................................................ 153

Figure 43 – DataSet Reader Model overview ...................................................................... 155

Figure 44 – PubSub Diagnostics overview .......................................................................... 165

Figure 45 – PubSubDiagnosticsCounterType ...................................................................... 165

Figure B.1 – Subscriptions in OPC UA Client Server Model ................................................ 188

Figure B.2 – Publish Subscribe Model Overview ................................................................. 189

Table 1 – PubSubState values .............................................................................................. 35

Table 2 – PubSubState state machine .................................................................................. 36

Table 3 – DataSetMetaDataType structure ............................................................................ 36

Table 4 – DataSetMetaDataType definition ........................................................................... 37

Table 5 – FieldMetaData structure ........................................................................................ 37

Table 6 – DataSetFieldFlags values ...................................................................................... 39

Table 7 – DataSetFieldFlags definition .................................................................................. 39

Table 8 – ConfigurationVersionDataType structure ............................................................... 40

Table 9 – PublishedDataSetDataType structure .................................................................... 41

Table 10 – PublishedDataSetSourceDataType definition ....................................................... 41

Table 11 – PublishedVariableDataType structure .................................................................. 42

Table 12 – PublishedDataItemsDataType structure ............................................................... 43

Table 13 – PublishedEventsDataType structure .................................................................... 43

Table 14 – DataSetFieldContentMask values ........................................................................ 44

Table 15 – DataSetFieldContentMask definition .................................................................... 45

Table 16 – DataSetMessage field representation options ...................................................... 46

Table 17 – DataSetWriterDataType structure ........................................................................ 47

Table 18 – DataSetWriterTransportDataType definition ......................................................... 47

Table 19 – DataSetWriterMessageDataType structure .......................................................... 48

Table 20 – PubSubGroupDataType structure ........................................................................ 49

Table 21 – PubSubGroupDataType definition ........................................................................ 49

Table 22 – WriterGroupDataType structure ........................................................................... 51

Table 23 – WriterGroupDataType definition .......................................................................... 51

Table 24 – WriterGroupTransportDataType definition ............................................................ 52

Table 25 – WriterGroupMessageDataType structure ............................................................. 52

---------------------- Page: 11 ----------------------
SIST EN IEC 62541-14:2020
– 6 – IEC 62541-14:2020 © IEC 2020

Table 26 – PubSubConnectionDataType structure ................................................................ 53

Table 27 – ConnectionTransportDataType definition ............................................................. 54

Table 28 – NetworkAddressDataType structure .................................................................... 54

Table 29 – NetworkAddressDataType definition .................................................................... 54

Table 30 – NetworkAddressUrlDataType structure ................................................................ 54

Table 31 – NetworkAddressUrlDataType definition................................................................ 55

Table 32 – ReaderGroupDataType structure ......................................................................... 55

Table 33 – ReaderGroupDataType definition......................................................................... 55

Table 34 – ReaderGroupTransportDataType definition .......................................................... 56

Table 35 – ReaderGroupMessageDataType structure ........................................................... 56

Table 36 – DataSetReaderDataType structure ...................................................................... 59

Table 37 – DataSetReaderTransportDataType structure ....................................................... 5

...

Questions, Comments and Discussion

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