Skip to content

fgjeci/millicar-oran-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Millicar O-Ran Integration: Relay functionality in V2X networks

This project includes an e2e setup and integration of Millicar ns3 module with OpenRAN architecture. It contains the deployment of OpenRAN ns3 module architecture, the adopted Millicar ns3 module to be interfaced with OpenRAN and the simulation script.

To run the project:

cd ../ns3-mmwave-millicar
./ns3 configure --build-profile=debug --disable-werror --enable-examples
./ns3 build
cd ../colosseum-near-rt-ric-2/setup-scripts
./setup-ric-bronze.sh
  • Create & install the shared library e2sim (E2-interface connecting ns3-module with OpenRAN-RIC via SCTP/IP)
cd ../oran-e2sim/e2sim
./build_e2sim.sh
cd ../millicar-xapp/setup-scripts
./setup-xapp-base.sh # Downloads & install the base image with the updated needed libraries. The base image shall have the e2 interface installed, thus by default enabling the connection with e2term and the exchange of E2 messages
./start-millicar-xapp-ns-o-ran.sh # Creates a secondary image with the python scripts of the xapp logic
# if outside the xapp container, access bash mode of the container -> docker exec -it millicar-xapp-24 bash
# Once inside the xapp container, go to /home/xapp-sm-connector directory

Following the aforementioned steps, the xApp is configured to receive E2 messages, decode the xml format of the these messages and send back E2-Ric encoded messages.

Simulation steps

The simulation involves these steps:

  1. Starting the xApp Agent in the xApp container: It starts the SCTP/IP server and binds to local address and accepts connection from the RIC
  2. Starting the ns3 simulation instances: Inside the ns3 it is started the ns3-E2-Termination endpoint, which connects ns3 to RIC via SCTP/IP. This simulation instance waits for Subscription Requests coming from RIC to start sending reports to the xApp.
  3. Starting RIC-E2-endpoint: The end point responsible to decode the incoming E2 messages, route them to the appropriate xApp and maintain the Service Model paradigm.

It is crucial to execute the steps as shown above: ns3 simulation instances (2) before the RIC-E2-endpoint(3), so that the ns3-E2-Termination endpoint can received and decode the Subscribe Requests generated by the RIC-E2-endpoint; start xApp-Agent (1) before the RIC-E2-endpoint, as the last opens a TCP/IP socket connection to the xApp and if xApp has not started and bind to the receiving address, the RIC won't be able to forward the incoming control messages

Commands

  1. Start xApp-Aggent
# Enter inside xApp container
docker exec -it millicar-xapp-24 bash
cd /home/millicar-xapp
python3 run_xapp_multi_sim.py
  1. Starting ns3 simulation instances
cd ../millicar-oran-integration
python millicar_load.py # Launches multiple processes in parallel, one per each simulation scenario
  1. Starting RIC-E2-endpoint
docker exec -it millicar-xapp-24 bash
cd /home/xapp-sm-connector
./run_xapp.sh

About

The e2e integration and setup of millicar with oran

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages