Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run the ns-O-RAN-flexric #2

Closed
Ali78k opened this issue Aug 5, 2024 · 14 comments
Closed

Unable to run the ns-O-RAN-flexric #2

Ali78k opened this issue Aug 5, 2024 · 14 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@Ali78k
Copy link

Ali78k commented Aug 5, 2024

Hi.
I hope this message finds you well.

I've followed the instruction and install FlexRIC from branch you mentioned in the instruction.
When I run the scenario_zero I faced this issue:
Screenshot from 2024-08-05 10-58-01

@MinaYonan123
Copy link
Collaborator

MinaYonan123 commented Aug 7, 2024

Hello,

Can you please the installation steps/ system information. Also please check the port 36422 is not used.

BR,
Mina Yonan

@Ali78k
Copy link
Author

Ali78k commented Aug 10, 2024

Thanks for your reply @MinaYonan123

installation steps:

Here is my sysinfo and commands that I've used.

System Information:

  • VitrualBox VM (Ubuntu 22.04):
  • number of CPUs: 6
  • RAM: 16 GB
  • Disk: 60 GB

Install

install FlexRIC from source:

Firstly I installed depencies that I prefer to not mention. After that:

git clone https://gitlab.eurecom.fr/mosaic5g/flexric.git 
cd flexric
git checkout d3ff8791

By following the instruction, I've edit CMakeLists.txt with editor, and then I compiled the code.

mkdir build && cd build && cmake .. && make -j`nproc`
sudo make install

Install ns-ORAN from source

I've used your repo as base. So:

git clone --recurse-submodules https://github.com/Orange-OpenSource/ns-O-RAN-flexric
cd ns-O-RAN-flexric/e2sim-kpmv3/e2sim/
mkdir build
sudo ./build_e2sim.sh 3

It's time to build ns3 - for the purpose I cloned E2 requirement as mentioned here.

cd path/to/ns-O-RAN-flexric
cd ns-3-mmwave-oran/contrib
git clone -b master https://github.com/o-ran-sc/sim-ns3-o-ran-e2 oran-interface
cd ..  # go back to the ns-3-mmwave-oran folder
./waf configure --enable-examples --enable-tests
./waf build

Run

To run the whole system

# in terminal 1
cd path/to/flexric/build/examples/ric/ && ./nearRT-RIC
# in terminal 2
cd path/to/ns-3-mmwave-oran && ./waf --run scratch/scenario-zero.cc
# in terminal 3
cd path/to/flexric/build/examples/xApp/c/kpm_rc && ./xapp_kpm_rc'

@MinaYonan123
Copy link
Collaborator

MinaYonan123 commented Aug 11, 2024

Hello @Ali78k

Please don't clone the oran-interface from original repo.
The line below is not right

git clone -b master https://github.com/o-ran-sc/sim-ns3-o-ran-e2 oran-interface

When you clone with sub-module option, it clones the code from our fork https://github.com/MinaYonan123/oran-interface/tree/a6811bad9042eea7a20411bd19623daaca2f2ea1 not from https://github.com/o-ran-sc/sim-ns3-o-ran-e2 oran-interface.

@Ali78k
Copy link
Author

Ali78k commented Aug 11, 2024

Hi @MinaYonan123 . Thank you for your response.
I will evaluate mentioned points and I'll inform you soon!

Ali

@Ali78k
Copy link
Author

Ali78k commented Aug 11, 2024

Dear @MinaYonan123 .
Although your tip fixed the ns-3-based scenario-zero.cc, the xApp still cannot communicate properly with FlexRIC.

/root/flexric/src/xApp/msg_generator_xapp.c:92: generate_e42_setup_request: Assertion `sm->ran_func_id == def.rf.id' failed.

What should I do?
I've also attached an image.

Screenshot from 2024-08-11 18-45-09

Many thanks!
Ali

@MinaYonan123 MinaYonan123 added question Further information is requested help wanted Extra attention is needed and removed question Further information is requested labels Aug 13, 2024
@mostafa-ashraf1709 mostafa-ashraf1709 added the question Further information is requested label Aug 13, 2024
@mostafa-ashraf1709
Copy link
Collaborator

mostafa-ashraf1709 commented Aug 13, 2024

Hi @Ali78k,
I tried the whole process again, and as I see in my environment, everything goes well.

I recommend you:

  1. Delete the build file of flexric and rebuild again, and be sure you install the service models.
  2. Make a recursive clone for ns-O-RAN-flexric, and build again.
  3. I see in your screenshot you run ./nearRT-RIC twice, so I recommend to kill the processes, and run ./nearRT-RIC one time on your PC, with (default)port number 36421

Please try these solutions and feel free to ask Anytime.
Good luck!

@mostafa-ashraf1709 mostafa-ashraf1709 changed the title ns-O-RAN does not work! Unable to run the ns-O-RAN-flexric Aug 13, 2024
@Ali78k
Copy link
Author

Ali78k commented Aug 13, 2024

Thanks you @mostafa-ashraf1709 . I'll try on a new VM and I'll inform you soon.

@mostafa-ashraf1709
Copy link
Collaborator

mostafa-ashraf1709 commented Aug 14, 2024

Hi @Ali78k, Any updates? Did you try the solutions?

@Ali78k
Copy link
Author

Ali78k commented Aug 21, 2024

Hiii @mostafa-ashraf1709 ,
Thanks for your help! I followed your guidance and installed everything on a new VM, and it worked perfectly. Everything is running smoothly, and the interaction between all components is great. However, I'm noticing that the latency is showing as a negative number.
his appears in the last lines of the xapp_kpm_rc log:

UE ID 112358132134 
 KPM ind_msg latency = -3538111659215464801 μs
Sojourn time 84.100000 
UE ID 112358132134 
 KPM ind_msg latency = -3538111660500953409 μs
Sojourn time 142.100000 
UE ID 112358132134 
 KPM ind_msg latency = -3538111661055322422 μs
Sojourn time 69.100000 
UE ID 112358132134 
 [xApp]: E42 SUBSCRIPTION DELETE RESPONSE received
Pending event size before remove = 1 
[xApp]: Successfully received SUBSCRIPTION-DELETE-RESPONSE 
Remove handle number = 6 
E42 RIC_SUBSCRIPTION_DELETE_REQUEST  sdr->ric_id.ran_func_id 2  sdr->ric_id.ric_req_id 6 
ric_req_id not found in the registry 
ric_req_id = 5 not in the registry. Spuriosly can happen.
[xApp]: E42 SUBSCRIPTION-DELETE sent 
adding event fd = 8 ev-> 7 
ric_req_id not found in the registry 
ric_req_id = 5 not in the registry. Spuriosly can happen.
KPM ind_msg latency = -3538111659586655046 μs
Sojourn time 168.100000 
UE ID 112358132134 
 KPM ind_msg latency = -3538111660123853597 μs
Sojourn time 228.100000 
UE ID 112358132134 
 KPM ind_msg latency = -3538111659628073711 μs
Sojourn time 142.100000 
UE ID 112358132134 
 KPM ind_msg latency = -3538111658655257295 μs
Sojourn time 139.100000 
UE ID 112358132134 
 [xApp]: E42 SUBSCRIPTION DELETE RESPONSE received
Pending event size before remove = 1 
[xApp]: Successfully received SUBSCRIPTION-DELETE-RESPONSE 
ric_req_id not found in the registry 
ric_req_id = 6 not in the registry. Spuriosly can happen.
ric_req_id not found in the registry 
ric_req_id = 6 not in the registry. Spuriosly can happen.
Closing the agent socket: Socket operation on non-socket 
[xApp]: Sucessfully stopped 
Test xApp run SUCCESSFULLY

@mostafa-ashraf1709
Copy link
Collaborator

mostafa-ashraf1709 commented Aug 29, 2024

Hi @Ali78k,

Thanks for reporting, this is an issue in different datatypes between Simulator and Flexric.
I suggest you to open an issue in repo here reporting it, and we will work on that, or you're welcome if you would like to work in this issue then push this bug fixes in pull request.

Thanks!

@MinaYonan123
Copy link
Collaborator

Hello @Ali78k

The issue fixed and we rebase the code lastet flexric commit (E2APv1.01, KPMv3 and RC v1.03)

BR,
Mina Yonan

@aliasadi2001
Copy link

Hello @MinaYonan123
Thank you for your update! I compiled FlexRIC using the specified repository and commit with the following commands. However, I’m experiencing an issue where the KPM metrics are showing negative values.
Image

Image

Could you please assist me in resolving this?

Thank you in advance!

@mostafa-ashraf1709
Copy link
Collaborator

Hi @Ali78k,

Thanks for using trying to build the simulator with the last version, please check the updated installation instructions of flexric.

For the negative value of latency, we solved this bug and will push updates soon in PR.

Thanks!

@mostafa-ashraf1709
Copy link
Collaborator

mostafa-ashraf1709 commented Nov 26, 2024

Fixed 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants