blob: 438cdf1fe2e788bd8c116b3a3b0c683ee93dd7bd [file] [log] [blame]
PatrikBuhr499fc372023-05-10 14:07:22 +02001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. SPDX-License-Identifier: CC-BY-4.0
3.. Copyright (C) 2023 Nordix
4
5
PatrikBuhr5a01ec42023-05-16 10:54:58 +02006PM File Converter
PatrikBuhr499fc372023-05-10 14:07:22 +02007~~~~~~~~~~~~~~~~~
8
9
10********
11Overview
12********
13
PatrikBuhr5a01ec42023-05-16 10:54:58 +020014The task of the PM File Converter is to convert PM Measurement report files,
PatrikBuhr499fc372023-05-10 14:07:22 +020015(XML formatted according to 3GPP TS 32.432 and 3GPP TS 32.435) into Json.
16
17The component receives objects from kafka that indicates that new PM Report files
18are collected from the RAN. The event is sent by the Data File Collector.
19
20The XML file is read from the storage, converted to Json, gzipped and stored.
21
22A Json object indicating that a new Json PM Mesurement report is available is sent on
23a Kafka topic to be picked up by other components for further processing,
24
25.. image:: ./Architecture.png
26 :width: 500pt
27
28
29
30This product is a part of :doc:`NONRTRIC <nonrtric:index>`.
31
32
33
34*********************
35Output PM Measurement
36*********************
37
38The Json format of the PM mesaurememt follows the same structure as the input XML format (defined by 3GPP).
39
40Here follows an example:
41
42.. code-block:: javascript
43
44 {
45 "event":{
46 "commonEventHeader":{
47 "domain":"perf3gpp",
48 "eventId":"9efa1210-f285-455f-9c6a-3a659b1f1882",
49 "eventName":"perf3gpp_gnb-Ericsson_pmMeasResult",
50 "sourceName":"O-DU-1122",
51 "reportingEntityName":"",
52 "startEpochMicrosec":951912000000,
53 "lastEpochMicrosec":951912900000,
54 "timeZoneOffset":"+00:00"
55 },
56 "perf3gppFields":{
57 "perf3gppFieldsVersion":"1.0",
58 "measDataCollection":{
59 "granularityPeriod":900,
60 "measuredEntityUserName":"RNC Telecomville",
61 "measuredEntityDn":"SubNetwork=CountryNN,MeContext=MEC-Gbg-1,ManagedElement=RNC-Gbg-1",
62 "measuredEntitySoftwareVersion":"",
63 "measInfoList":[
64 {
65 "measInfoId":{
66 "sMeasInfoId":"PM=1,PmGroup=NRCellDU_GNBDU"
67 },
68 "measTypes":{
69 "sMeasTypesList":[
70 "succImmediateAssignProcs"
71 ]
72 },
73 "measValuesList":[
74 {
75 "measObjInstId":"RncFunction=RF-1,UtranCell=Gbg-997",
76 "suspectFlag":"false",
77 "measResults":[
78 {
79 "p":1,
80 "sValue":"1113"
81 }
82 ]
83 },
84 {
85 "measObjInstId":"RncFunction=RF-1,UtranCell=Gbg-998",
86 "suspectFlag":"false",
87 "measResults":[
88 {
89 "p":1,
90 "sValue":"234"
91 }
92 ]
93 },
94 {
95 "measObjInstId":"RncFunction=RF-1,UtranCell=Gbg-999",
96 "suspectFlag":"true",
97 "measResults":[
98 {
99 "p":1,
100 "sValue":"789"
101 }
102 ]
103 }
104 ]
105 }
106 ]
107 }
108 }
109 }
110 }
111
112
PatrikBuhr28bb3da2023-05-16 08:56:41 +0200113*************************
PatrikBuhr499fc372023-05-10 14:07:22 +0200114Output File Ready Message
PatrikBuhr28bb3da2023-05-16 08:56:41 +0200115*************************
PatrikBuhr499fc372023-05-10 14:07:22 +0200116
117Here follows an example of the sent object indicating that a new Json file is available.
118It only contains the name of the stored file. The name of the bucket and the minio endpoint
119must be known by the event receiver.
120
121.. code-block:: javascript
122
123 {
124 "filename": "xyz.json.gzip"
125 }
126
127
PatrikBuhr28bb3da2023-05-16 08:56:41 +0200128************************
129Input File Ready Message
130************************
131
132Below follows an example of an input File Ready Message. The
133message is sent by the Data File Collector. The only elemts used by this component are sourceName, name and
134objectStoreBucket.
135
136.. code-block:: javascript
137
138 {
139 "productName":"RnNode",
140 "vendorName":"Ericsson",
141 "lastEpochMicrosec":151983,
142 "sourceName":"5GRAN_DU",
143 "startEpochMicrosec":15198378,
144 "timeZoneOffset":"UTC+05:00",
145 "compression":"gzip",
146 "fileFormatType":"org.3GPP.32.435#measCollec",
147 "fileFormatVersion":"V10",
148 "name":"5GRAN_DU/A20220418.1900-1915_seliitdus00487.xml",
149 "changeIdentifier":"PM_MEAS_FILES",
150 "objectStoreBucket":"ropfiles"
151 }
152
PatrikBuhr499fc372023-05-10 14:07:22 +0200153
154