GithubHelp home page GithubHelp logo

natanzi / ts-xapp Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 2.0 54.46 MB

Traffic Steering (TS) xApp for OAIC O-RAN Testbed

License: Other

Python 42.91% Shell 47.25% HTML 7.22% Dockerfile 2.62%
o-ran oaic x-app handover rmr sdl congestion

ts-xapp's Introduction

Traffic Steering (TS) xApp

The Traffic Steering (TS) xApp is a specialized tool designed for the OAIC O-RAN testbed. Its primary purpose is to efficiently manage and optimize traffic flow within cellular networks. By utilizing real-time metrics and adhering to dynamic policies, this xApp ensures optimal network performance by making informed decisions about user equipment (UE) handovers between cells. This xApp can be onboarded through the xApp Onboarder.

๐ŸŒŸ Key Features

  • Interface Integration:
    • Direct RAN communication and real-time metric acquisition through E2 Interface interactions.
  • Health Check Operations:
    • Includes RMR, E2, A1 and SDL health checks.
  • KPIMON xApp Integration:
    • Responsible for collecting RAN metrics and writing to InfluxDB.
  • Dynamic Policy Management:
    • Adapts traffic steering policies in response to real-time updates from the A1 interface.
  • Load Balancing:
    • Redistributes UEs to achieve balanced load across cells when overload is detected.
  • UE Profiling:
    • Captures detailed profiles for each UE, including attributes like ID, cell, priority, type, origin, signal strength, and throughput.
  • InfluxDB Integration:
    • Logs metrics and policies for historical data analysis and visualization with tools like Grafana.
  • Flask API Support:
    • Enables external xApps to dynamically push or modify policies, supporting ML/RL/DRL plugins.
  • Scalability:
    • Accommodates a growing number of UEs and cells while maintaining efficiency.
  • Modular Design:
    • Allows for easy integration of future features.

๐Ÿ›  Prerequisites

  • Installation of OAIC and SRSRAN.
  • Setup of multiple UEs with initiated network traffic flow.
  • KPImon xApp running in the environment.

๐Ÿš€ Getting Started

Start with root permission and:

  1. Execute the RIC installation:
    chmod +x ./ricinstallation.sh
    ./ricinstallation.sh
  2. move ssrsran script to oaic folder and Start SRSRAN:
    chmod +x srsrandeploy.sh
    ./srsrandeploy.sh
    
    After this step you should run the below command and see 14 pods
    sudo kubectl get pods -A
  3. Execute KPImon-xApp in oaic folder:
    chmod +x kpimon.sh
    ./kpimon.sh
  4. Clone TS xApp fro the below repo
    git clone https://github.com/natanzi/ts-xapp
    
  5. Go to ts-xapp folder and run it:
    chmod +x ts-xapp.sh
    ./ts-xapp.sh
  6. Open the below address in your browser to see the ts-xapp dashboard and grafana:
    http://localhost:5001/
    http://localhost:3000/
    
  7. To remove the ts-xapp:
    chmod +x del-tsxapp.sh
    ./del-tsxapp.sh   

Note:

xApp Re-Deployment & Undeployment

To redeploy the xApp on the near-RT RIC side, run:

sudo kubectl -n ricxapp rollout restart deployment ricxapp-ts-xapp

To undeploy the xApp, first retrieve the IP address of the App Manager:

export APPMGR_HTTP=`sudo kubectl get svc -n ricplt --field-selector metadata.name=service-ricplt-appmgr-http -o jsonpath='{.items[0].spec.clusterIP}'`
curl -L -X DELETE http://${APPMGR_HTTP}:8080/ric/v1/xapps/ts-xapp

To remove the xApp descriptors from the Chart Museum, execute:

curl -L -X DELETE "http://${ONBOARDER_HTTP}:8080/api/charts/ts-xapp/1.0.0"

To delete a Docker image

sudo docker rmi -f xApp-registry.local:5008/ts-xapp:1.0.0

To see the Docker image

docker images

get the name of the pod where your container is running: kubectl get pods -n ricxapp

need to know the container's name or ID? docker ps

to run commands inside the container docker exec -it /bin/bash

๐Ÿค Contributing

We welcome your contributions to enhance this xApp! Feel free to fork the repository and submit a pull request with your improvements.

ts-xapp's People

Contributors

natanzi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

fklement philrod1

ts-xapp's Issues

Setup srsRAN

Hi Natanzi.

1- Where I can find the code of srsRAN that can interact with ts-xApp
2- Is there any document or published paper that describe how this xApp works ?

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.