wineslab/ns-o-ran-ns3-mmwave

Can't see RIC related messages after running scenario-zero.cc

Closed this issue · 1 comments

Hi,
When I try to set up simulator by following https://openrangym.com/tutorials/ns-o-ran tutorial, I didn't get any error. When I start to run scenario.zero, the log indicates that several E2 setup requests are being sent from different cells (cell1, cell 2, cell 3, cell 4, cell 5) to a server at IP address 10.0.2.10 on port 36422 using SCTP and the E2 setup request messages are being successfully sent over SCTP to the server, and it's waiting for SCTP data in response. At this point, it seems that the E2 setup process is progressing as expected. After that, however, no message appears and no error occurs.
All message flow after running scenario-zero.cc:

root@?../ns-3-mmwave-oran# ./waf --run scratch/scenario-zero.cc
Waf: Entering directory ../ns-3-mmwave-oran/build'
Waf: Leaving directory `../ns-3-mmwave-oran/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (0.928s)
bufferSize 10 OutageThreshold -5 HandoverMode DynamicTtt e2TermIp 10.0.2.10 enableE2FileLogging 0
e2lteEnabled 1 e2nrEnabled 1 e2du 1 e2cuCp 1 e2cuUp 1 controlFilename indicationPeriodicity 0.1
[INFO ] %%about to register e2sm func desc for 200

[INFO ] %%about to register callback for subscription for func_id 200
[INFO ] %%about to register e2sm func desc for 300

[INFO ] %%about to register callback for e2sm for func_id 300
+0.000000000s -1 MmWaveEnbNetDevice:SetE2Termination(): [DEBUG] Register E2SM
[INFO ] %%about to register e2sm func desc for 200

[INFO ] %%about to register callback for subscription for func_id 200
+0.000000000s -1 MmWaveEnbNetDevice:UpdateConfig(): [DEBUG] E2sim start in cell 2 force CSV logging 0
+0.000000000s -1 MmWaveEnbNetDevice:SetE2Termination(): [DEBUG] Register E2SM
[INFO ] %%about to register e2sm func desc for 200

[INFO ] %%about to register callback for subscription for func_id 200
+0.000000000s -1 MmWaveEnbNetDevice:UpdateConfig(): [DEBUG] E2sim start in cell 3 force CSV logging 0
+0.000000000s -1 MmWaveEnbNetDevice:SetE2Termination(): [DEBUG] Register E2SM
[INFO ] %%about to register e2sm func desc for 200

[INFO ] %%about to register callback for subscription for func_id 200
+0.000000000s -1 MmWaveEnbNetDevice:UpdateConfig(): [DEBUG] E2sim start in cell 4 force CSV logging 0
+0.000000000s -1 MmWaveEnbNetDevice:SetE2Termination(): [DEBUG] Register E2SM
[INFO ] %%about to register e2sm func desc for 200

[INFO ] %%about to register callback for subscription for func_id 200
+0.000000000s -1 MmWaveEnbNetDevice:UpdateConfig(): [DEBUG] E2sim start in cell 5 force CSV logging 0
Simulation time is 2 seconds
[UNCON] Start E2 Agent (E2 Simulator)
[UNCON] Current Log level is 3
[INFO ] [SCTP] Binding client socket with source port 38471
[INFO ] [SCTP] Connecting to server at 10.0.2.10:36422 ...
[INFO ] [SCTP] Connection established
[DEBUG] After starting client

[DEBUG] client_fd value is 3

[DEBUG] Looping through ran func
[DEBUG] Looping through ran func
[DEBUG] About to call setup request encode
[INFO ] About to register a function
[INFO ] About to register a function
[DEBUG] After generating e2setup req

1 3 31 31 31 0011000100000000000000000000 10 8 300 28 28 4F 52 41 4E 2D 57 47 33 2D 52 43 02 80 4F 49 44 31 32 33 0B 00 52 49 43 20 43 6F 6E 74 72 6F 6C 20 44 65 66 69 6E 69 74 69 6F 6E 73 01 00 05 01 01 09 80 52 61 64 69 6F 20 42 65 61 72 65 72 20 43 6F 6E 74 72 6F 6C 00 00 40 00 06 0B 00 44 52 42 20 73 70 6C 69 74 20 72 61 74 69 6F 20 63 6F 6E 74 72 6F 6C 02 00 03 0B 80 44 6F 77 6E 6C 69 6E 6B 20 50 44 43 50 20 44 61 74 61 20 53 70 6C 69 74 00 02 80 00 01 01 01 01 40 01 03 09 80 52 61 64 69 6F 20 42 65 61 72 65 72 20 43 6F 6E 74 72 6F 6C 00 00 40 00 01 07 80 48 61 6E 64 6F 76 65 72 20 63 6F 6E 74 72 6F 6C 02 00 04 02 80 4E 52 20 43 47 49 00 06 04 80 45 2D 55 54 52 41 20 43 47 49 01 01 01 01 2 8 200 34 16 4F 52 41 4E 2D 57 47 33 2D 4B 50 4D 02 80 4F 49 44 31 32 33 05 00 4B 50 4D 20 6D 6F 6E 69 74 6F 72 01 00 00 01 01 07 00 50 65 72 69 6F 64 69 63 20 72 65 70 6F 72 74 01 01 00 01 01 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 2 [DEBUG] After XER Encoding

[DEBUG] in sctp send data func

[DEBUG] data.len is 399
[DEBUG] after getting sent_len

[INFO ] [SCTP] Sent E2-SETUP-REQUEST
[DEBUG] [SCTP] Waiting for SCTP data
[UNCON] Start E2 Agent (E2 Simulator)
[UNCON] Current Log level is 3
[INFO ] [SCTP] Binding client socket with source port 38472
[INFO ] [SCTP] Connecting to server at 10.0.2.10:36422 ...
[INFO ] [SCTP] Connection established
[DEBUG] After starting client

[DEBUG] client_fd value is 6

[DEBUG] Looping through ran func
[DEBUG] About to call setup request encode
[INFO ] About to register a function
[DEBUG] After generating e2setup req

1 3 31 31 31 0011001000000000000000000000 10 8 200 34 16 4F 52 41 4E 2D 57 47 33 2D 4B 50 4D 02 80 4F 49 44 31 32 33 05 00 4B 50 4D 20 6D 6F 6E 69 74 6F 72 01 00 00 01 01 07 00 50 65 72 69 6F 64 69 63 20 72 65 70 6F 72 74 01 01 00 01 01 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 2 [DEBUG] After XER Encoding

[DEBUG] in sctp send data func

[DEBUG] data.len is 170
[DEBUG] after getting sent_len

[INFO ] [SCTP] Sent E2-SETUP-REQUEST
[DEBUG] [SCTP] Waiting for SCTP data
[UNCON] Start E2 Agent (E2 Simulator)
[UNCON] Current Log level is 3
[INFO ] [SCTP] Binding client socket with source port 38473
[INFO ] [SCTP] Connecting to server at 10.0.2.10:36422 ...
[INFO ] [SCTP] Connection established
[DEBUG] After starting client

[DEBUG] client_fd value is 7

[DEBUG] Looping through ran func
[DEBUG] About to call setup request encode
[INFO ] About to register a function
[DEBUG] After generating e2setup req

1 3 31 31 31 0011001100000000000000000000 10 8 200 34 16 4F 52 41 4E 2D 57 47 33 2D 4B 50 4D 02 80 4F 49 44 31 32 33 05 00 4B 50 4D 20 6D 6F 6E 69 74 6F 72 01 00 00 01 01 07 00 50 65 72 69 6F 64 69 63 20 72 65 70 6F 72 74 01 01 00 01 01 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 2 [DEBUG] After XER Encoding

[DEBUG] in sctp send data func

[DEBUG] data.len is 170
[DEBUG] after getting sent_len

[INFO ] [SCTP] Sent E2-SETUP-REQUEST
[DEBUG] [SCTP] Waiting for SCTP data
[UNCON] Start E2 Agent (E2 Simulator)
[UNCON] Current Log level is 3
[INFO ] [SCTP] Binding client socket with source port 38474
[INFO ] [SCTP] Connecting to server at 10.0.2.10:36422 ...
[INFO ] [SCTP] Connection established
[DEBUG] After starting client

[DEBUG] client_fd value is 8

[DEBUG] Looping through ran func
[DEBUG] About to call setup request encode
[INFO ] About to register a function
[DEBUG] After generating e2setup req

1 3 31 31 31 0011010000000000000000000000 10 8 200 34 16 4F 52 41 4E 2D 57 47 33 2D 4B 50 4D 02 80 4F 49 44 31 32 33 05 00 4B 50 4D 20 6D 6F 6E 69 74 6F 72 01 00 00 01 01 07 00 50 65 72 69 6F 64 69 63 20 72 65 70 6F 72 74 01 01 00 01 01 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 2 [DEBUG] After XER Encoding

[DEBUG] in sctp send data func

[DEBUG] data.len is 170
[DEBUG] after getting sent_len

[INFO ] [SCTP] Sent E2-SETUP-REQUEST
[DEBUG] [SCTP] Waiting for SCTP data
[UNCON] Start E2 Agent (E2 Simulator)
[UNCON] Current Log level is 3
[INFO ] [SCTP] Binding client socket with source port 38475
[INFO ] [SCTP] Connecting to server at 10.0.2.10:36422 ...
[INFO ] [SCTP] Connection established
[DEBUG] After starting client

[DEBUG] client_fd value is 9

[DEBUG] Looping through ran func
[DEBUG] About to call setup request encode
[INFO ] About to register a function
[DEBUG] After generating e2setup req

1 3 31 31 31 0011010100000000000000000000 10 8 200 34 16 4F 52 41 4E 2D 57 47 33 2D 4B 50 4D 02 80 4F 49 44 31 32 33 05 00 4B 50 4D 20 6D 6F 6E 69 74 6F 72 01 00 00 01 01 07 00 50 65 72 69 6F 64 69 63 20 72 65 70 6F 72 74 01 01 00 01 01 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 2 [DEBUG] After XER Encoding

[DEBUG] in sctp send data func

[DEBUG] data.len is 170
[DEBUG] after getting sent_len

[INFO ] [SCTP] Sent E2-SETUP-REQUEST
[DEBUG] [SCTP] Waiting for SCTP data
root@?../ns-3-mmwave-oran#

Problem is solved. 3 terminals need to be opened at the same time.