Skip to content

About

An ns-3 module for simulating intent-based orchestration in Open RAN.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

15 stars

Watchers

0 watching

Forks

Repository files navigation

ib-ORAN: Intent-Based Open RAN

License: MIT ns-3 RAT

ib-ORAN (ns3-iboran) is an ns-3 module for testing intent-based orchestration in Open RAN. You write the control logic in Python as Open RAN apps, and ib-ORAN runs it against a simulated LTE or 5G NR network. Alongside standard KPIs, it reports how well the expressed intent on each link is satisfied.

The apps follow the three Open RAN control loops. At the O-DU, dApps act in real time below 10 ms, and in the Near-RT RIC, xApps act between 10 ms and 1 s. rApps in the Non-RT RIC, which act above 1 s, are planned.

LTE is simulated with an adapted version of the ns-3 lte module, and 5G NR with the 5G-LENA nr module.

Architecture

ib-ORAN architecture

ib-ORAN separates the network simulation from the control logic. On one side, the network simulator, written in C++ on top of ns-3, contains the RAN functions and the E2 and E3 agents that expose them. On the other side, the dApps and the Near-RT RIC with its xApps run in Python and reach those agents through the shared-memory interface of ns3-ai. The Non-RT RIC with its rApps is planned.

The Near-RT RIC uses the E2 service models E2SM-KPM, E2SM-RC and E2SM-DAPP, and the dApps use the E3 service model (E3SM). The E2-E3 bridge relays E2SM-DAPP messages between the Near-RT RIC and the dApps. The fields of each message are listed in service models.

E2SM-KPM and E2SM-RC are modeled on the O-RAN Alliance specifications, with only the fields the apps use, while E3 and E2SM-DAPP are not standardized yet. The A1 interface between the RICs is planned with the rApps.

Installation

ib-ORAN builds as an ns-3 contrib module. It is tested with ns-3.48, ns3-ai from its main branch, 5G-LENA nr 5.1 and Python 3.11. The full list of prerequisites and the step-by-step procedure are in installation.

Clone ns-3 and the three contrib modules:

git clone --branch ns-3.48 --depth 1 https://gitlab.com/nsnam/ns-3-dev.git ns-3
cd ns-3
git clone https://github.com/hust-diangroup/ns3-ai.git contrib/ai
rm -rf contrib/ai/examples
git clone --branch v5.1 --depth 1 https://gitlab.com/cttc-lena/nr.git contrib/nr
git clone https://github.com/Orange-OpenSource/ns3-iboran.git contrib/iboran

Tip

The versions above are the tested ones. Newer releases are expected to work, but each nr release supports one ns-3 release, so pick a pair from the nr release timeline.

Create a Python virtual environment in the ns-3 root and install the ns3-ai Python interfaces:

python3 -m venv .venv
source .venv/bin/activate
pip install -e contrib/ai/python_utils
pip install -e contrib/ai/model/gym-interface/py

Configure and build ns-3 with all contrib modules:

./ns3 configure --enable-examples --enable-tests
./ns3 build

Run the setup script, which installs the Python dependencies of ib-ORAN into the virtual environment, rebuilds the module and verifies the installation:

cd contrib/iboran
bash quick-setup.sh

Usage

The parameters, campaigns and reproducibility are described in usage.

Single run

A single simulation runs from model/iboran_campaign. From contrib/iboran:

cd model/iboran_campaign
python3 iboran_run.py --rat_type="NR" --k=3 --dapp_algo_ue_selection="ibTopKCqi"

Parameters omitted on the command line take their values from iboranConfig.yaml. The full parameter list is in usage.

Campaign

For larger evaluations, iboran_campaign.py sweeps parameters and control algorithms over Monte Carlo replications. The notebook iboran_evaluation.ipynb sets up a campaign and compares scheduling algorithms.

Each run writes its KPIs, logs and a NetAnim animation file to notebook/. See simulation data and visualization.

Documentation

Document Content
Installation Prerequisites, installation steps and troubleshooting
Usage Run parameters, examples, campaigns and reproducibility
Apps Implemented dApps, xApps and rApps
Algorithms dApp UE selection and xApp RBG bounding algorithms
Service models Message fields of each E2 and E3 service model
Simulation data Payload formats, datasets, embedding models and run outputs
Application layer Content types, criticality, A2A envelope models, packet framing and reception
KPIs Standard, intent-based and control KPIs
Visualization Viewing runs in NetAnim
Changelog Changes in each release

Contributing

Ask questions in Discussions and report bugs in Issues. Check existing issues before opening a new one. A bug report should state the ib-ORAN commit or release, the ns-3, ns3-ai, nr and Python versions, the OS and compiler, the command that failed and its full error output.

Pull requests are welcome. Read CONTRIBUTING.md before opening one. Everyone taking part in the project follows the code of conduct. A new dApp, xApp, rApp or algorithm must also be listed in apps or algorithms.

Citation

If you use ib-ORAN in your research, cite the following paper:

@inproceedings{agheli2026iboran,
  author        = {Agheli, Pouya and Lefebvre, Gr{\'e}goire},
  title         = {Intent-Based Orchestration in Open RAN: An ns-3 Simulation Framework},
  booktitle     = {European Conference on Networks and Communications (EuCNC) \& 6G Summit},
  year          = {2026},
  url           = {https://ieeexplore.ieee.org/document/11577276},
  eprint        = {2605.30079},
  archivePrefix = {arXiv}
}

To cite the software itself:

@software{iboran,
  author  = {Agheli, Pouya and Lefebvre, Gr{\'e}goire},
  title   = {ib-ORAN: Intent-Based Open RAN},
  year    = {2026},
  url     = {https://github.com/Orange-OpenSource/ns3-iboran},
  license = {MIT}
}

Acknowledgment

ib-ORAN is developed within the ANR COMSEMA project, funded by the French National Research Agency (ANR).

License

The original contributions in this repository are licensed under the MIT License. Third-party components keep their own copyright notices and licenses, which are preserved in their directories and summarized in THIRD-PARTY.txt.

About

An ns-3 module for simulating intent-based orchestration in Open RAN.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

15 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages