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
[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
[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
[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
[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
[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.