root@60d4489fdaa1:/playpen# kpm_sim 10.100.18.130 36422 Starting KPM processor simJSON Test kpm0 kpm0.9 kpm2 kpm3 ret is 0 kpm4 kpm5 kpm6 ORAN-E2SM-KPM OID123 KPM monitor 1 1 Periodic report 5 1 O-DU Measurement Container for the 5GC connected deployment 1 1 2 O-DU Measurement Container for the EPC connected deployment 1 1 3 O-CU-CP Measurement Container for the 5GC connected deployment 1 1 4 O-CU-CP Measurement Container for the EPC connected deployment 1 1 5 O-CU-UP Measurement Container for the 5GC connected deployment 1 1 6 O-CU-UP Measurement Container for the EPC connected deployment 1 1 er encded is 489 after encoding message here is encoded message ORAN-E2SM-KPM this is the char array ORAN-E2SM-KPM !!!lenth of ranfuncdesc is 15 value of this index is 32 value of this index is 192 value of this index is 79 value of this index is 82 value of this index is 65 value of this index is 78 value of this index is 45 value of this index is 77 value of this index is 0 value of this index is 32 value of this index is 102 %%about to register e2sm func desc for 0 %%about to register callback for subscription for func_id 0 Start E2 Agent (E2 Simulator After reading input options [SCTP] Binding client socket to source port 36422 [SCTP] Connecting to server at 10.100.18.130:36422 ... [SCTP] Connection established After starting client client_fd value is 3 looping through ran func about to call setup request encode After generating e2setup req 1 49 1 3 37 34 37 10110101110001100111011110001 10 8 0 20 C0 4F 52 41 4E 2D 45 32 53 4D 2D 4B 50 4D 00 00 05 4F 49 44 31 32 33 05 00 4B 50 4D 20 6D 6F 6E 69 74 6F 72 08 96 D6 8A 83 11 17 5C 00 60 00 01 01 07 00 50 65 72 69 6F 64 69 63 20 72 65 70 6F 72 74 01 05 14 01 01 1D 00 4F 2D 44 55 20 4D 65 61 73 75 72 65 6D 65 6E 74 20 43 6F 6E 74 61 69 6E 65 72 20 66 6F 72 20 74 68 65 20 35 47 43 20 63 6F 6E 6E 65 63 74 65 64 20 64 65 70 6C 6F 79 6D 65 6E 74 01 01 01 01 00 01 02 1D 00 4F 2D 44 55 20 4D 65 61 73 75 72 65 6D 65 6E 74 20 43 6F 6E 74 61 69 6E 65 72 20 66 6F 72 20 74 68 65 20 45 50 43 20 63 6F 6E 6E 65 63 74 65 64 20 64 65 70 6C 6F 79 6D 65 6E 74 01 01 01 01 00 01 03 1E 80 4F 2D 43 55 2D 43 50 20 4D 65 61 73 75 72 65 6D 65 6E 74 20 43 6F 6E 74 61 69 6E 65 72 20 66 6F 72 20 74 68 65 20 35 47 43 20 63 6F 6E 6E 65 63 74 65 64 20 64 65 70 6C 6F 79 6D 65 6E 74 01 01 01 01 00 01 04 1E 80 4F 2D 43 55 2D 43 50 20 4D 65 61 73 75 72 65 6D 65 6E 74 20 43 6F 6E 74 61 69 6E 65 72 20 66 6F 72 20 74 68 65 20 45 50 43 20 63 6F 6E 6E 65 63 74 65 64 20 64 65 70 6C 6F 79 6D 65 6E 74 01 01 01 01 00 01 05 1E 80 4F 2D 43 55 2D 55 50 20 4D 65 61 73 75 72 65 6D 65 6E 74 20 43 6F 6E 74 61 69 6E 65 72 20 66 6F 72 20 74 68 65 20 35 47 43 20 63 6F 6E 6E 65 63 74 65 64 20 64 65 70 6C 6F 79 6D 65 6E 74 01 01 01 01 00 01 06 1E 80 4F 2D 43 55 2D 55 50 20 4D 65 61 73 75 72 65 6D 65 6E 74 20 43 6F 6E 74 61 69 6E 65 72 20 66 6F 72 20 74 68 65 20 45 50 43 20 63 6F 6E 6E 65 63 74 65 64 20 64 65 70 6C 6F 79 6D 65 6E 74 01 01 01 01 2 OID123 50 51 nginterf 72 65 71 70 61 72 74 72 65 73 70 61 72 74 After XER Encoding error length 0 error buf er encded is 581 in sctp send data func data.len is 581after getting sent_len [SCTP] Sent E2-SETUP-REQUEST [SCTP] Waiting for SCTP data receive data1 receive data2 receive data3 [SCTP] Received new data of size 60 in e2ap_handle_sctp_data() decoding... full buffer length of data 60 result 0 index is 2 showing xer of data 1 49 1 4 13 10 14 10101010110011001110 9 6 0 2 52 53 nginterf [E2AP] Unpacked E2AP-PDU: index = 2, procedureCode = 1 [E2AP] Received SETUP-RESPONSE-SUCCESS receive data1 receive data2 receive data3 [SCTP] Received new data of size 41 in e2ap_handle_sctp_data() decoding... full buffer length of data 41 result 0 index is 1 showing xer of data 8 29 123 2 5 0 30 00 19 1 00 initiating message [E2AP] Unpacked E2AP-PDU: index = 1, procedureCode = 8 [E2AP] Received RIC-SUBSCRIPTION-REQUEST count3 size4 next present value 1 value of pres ranfuncid is 2 next present value 2 value of pres ranfuncid is 2 equal pres to ranfuncid next present value 3 value of pres ranfuncid is 2 After loop, func_id is 0 Function Id of message is 0 %%we are getting the subscription callback for func id 0 Calling callback function Calling callback_kpm_subscription_request count3 size4 The next present value 1 in case request id requestorId 123 instanceId 2 The next present value 2 in case ran func id The next present value 3 in case subscription details in case subscription details 1 in case subscription details 2 in case subscription details 3 action count1 adding accept After Processing Subscription Request requestorId 123 instanceId 2 Action ID 0 1 in for loop i = 0 error length 0 error buf now printing xer of subscription response 8 29 123 2 5 0 17 14 1 done printing xer of subscription response [E2AP ASN] Encoded succesfully, encoded size = 33 in sctp send data func data.len is 33after getting sent_len De line is {"ueMeasReport":{"du-id":1002,"measTimeStampRf":"2020-11-05T15:39:58.858734","ueMeasReportList":[{"ue-id":"Pedestrian-11","nrCellIdentity":2,"targetTput":0.3,"servingCellRfReport":{"rsrp":74,"rsrq":65,"rssinr":113},"neighbourCellList":[{"nbCellIdentity":8,"nbCellRfReport":{"rsrp":67,"rsrq":65,"rssinr":112}},{"nbCellIdentity":7,"nbCellRfReport":{"rsrp":65,"rsrq":65,"rssinr":107}},{"nbCellIdentity":9,"nbCellRfReport":{"rsrp":64,"rsrq":65,"rssinr":106}},{"nbCellIdentity":1,"nbCellRfReport":{"rsrp":63,"rsrq":65,"rssinr":104}},{"nbCellIdentity":3,"nbCellRfReport":{"rsrp":62,"rsrq":65,"rssinr":101}},{"nbCellIdentity":10,"nbCellRfReport":{"rsrp":61,"rsrq":65,"rssinr":100}},{"nbCellIdentity":6,"nbCellRfReport":{"rsrp":59,"rsrq":65,"rssinr":95}}],"throughput":0.3,"prb_usage":23}]}} key is valid first key is ueMeasReport it is equal to ue meas report UE number 0 UEID Pedestrian-11 Throughput 0.300000 Throughput 23 Serving Cell 2 RSRP 74 RSRQ 65 RSSINR 113 ind is 11 This is neighbor str [{"CID" : "37343722511136087", "Cell-RF" : {"rsrp": 67, "rsrq": 65, "rssinr": 112}},{"CID" : "37343722511136077", "Cell-RF" : {"rsrp": 65, "rsrq": 65, "rssinr": 107}},{"CID" : "37343722511136097", "Cell-RF" : {"rsrp": 64, "rsrq": 65, "rssinr": 106}},{"CID" : "37343722511136017", "Cell-RF" : {"rsrp": 63, "rsrq": 65, "rssinr": 104}},{"CID" : "37343722511136037", "Cell-RF" : {"rsrp": 62, "rsrq": 65, "rssinr": 101}},{"CID" : "373437225111360107", "Cell-RF" : {"rsrp": 61, "rsrq": 65, "rssinr": 100}},{"CID" : "37343722511136067", "Cell-RF" : {"rsrp": 59, "rsrq": 65, "rssinr": 95}}] Creating UE-level RAN-Container CUCP message enc1 enc2 enc3 enc3.2 enc3.3 enc3.4 00 00 00 00 00 00 00 00 10 70 60 D8 A2 55 00 00 00 00 00 00 00 00 00 37 34 37 001000100101101111010110000000100111 01 01 7B 22 72 73 72 70 22 3A 20 37 34 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 31 33 7D 5B 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 38 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 37 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 31 32 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 37 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 35 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 30 37 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 39 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 34 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 30 36 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 31 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 33 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 30 34 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 33 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 32 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 30 31 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 31 30 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 31 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 30 30 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 36 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 35 39 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 39 35 7D 7D 5D After creating RAN container, xer printing it 00 00 00 00 00 00 00 00 10 70 60 D8 A2 55 00 00 00 00 00 00 00 00 00 37 34 37 001000100101101111010110000000100111 01 01 7B 22 72 73 72 70 22 3A 20 37 34 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 31 33 7D 5B 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 38 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 37 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 31 32 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 37 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 35 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 30 37 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 39 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 34 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 30 36 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 31 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 33 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 30 34 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 33 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 32 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 30 31 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 31 30 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 31 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 30 30 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 36 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 35 39 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 39 35 7D 7D 5D error length 0 error buf 0 00 00 00 00 00 00 00 00 10 70 60 D8 A2 55 00 00 00 00 00 00 00 00 00 37 34 37 001000100101101111010110000000100111 01 01 7B 22 72 73 72 70 22 3A 20 37 34 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 31 33 7D 5B 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 38 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 37 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 31 32 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 37 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 35 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 30 37 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 39 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 34 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 30 36 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 31 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 33 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 30 34 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 33 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 32 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 30 31 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 31 30 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 36 31 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 31 30 30 7D 7D 2C 7B 22 43 49 44 22 20 3A 20 22 33 37 33 34 33 37 32 32 35 31 31 31 33 36 30 36 37 22 2C 20 22 43 65 6C 6C 2D 52 46 22 20 3A 20 7B 22 72 73 72 70 22 3A 20 35 39 2C 20 22 72 73 72 71 22 3A 20 36 35 2C 20 22 72 73 73 69 6E 72 22 3A 20 39 35 7D 7D 5D er encded is 668 after encoding message free(): double free detected in tcache 2 Aborted (core dumped) root@60d4489fdaa1:/playpen#