Compare commits

...

19 Commits
main ... dev

Author SHA1 Message Date
c18f7330e1 fix timing 2024-04-29 12:19:27 +02:00
aa4014f4bc fix timing 2024-04-29 12:17:01 +02:00
117880f205 Fix timing interval in ping command 2024-04-29 12:05:09 +02:00
88991925d1 Refactor start order of srRAN and gnb services 2024-04-26 14:41:29 +02:00
baae0fbda9 fix: adjust timing 2024-04-25 15:25:36 +02:00
b36d6197b6 fix: start srRAN bevore gnb 2024-04-25 14:58:07 +02:00
10b1c41680 add docker instalatoin 2024-04-19 14:22:31 +02:00
c4a6aea6ef fix dupicalt line 2024-04-19 11:00:10 +02:00
865561f85d Build the docker image 2024-04-18 17:08:57 +02:00
8d807ea659 split functionality build and run 2024-04-18 16:28:29 +02:00
6209394465 stop ping as well 2024-04-18 15:34:53 +02:00
eb803830bf optimise timings 2024-04-18 15:33:22 +02:00
a605596f76 fix timing interval in ping command 2024-04-18 15:27:57 +02:00
950a5ebcdd add auto ping 2024-04-18 15:23:56 +02:00
f6e5446978 add running of xapp 2024-04-18 15:19:54 +02:00
4ce3142f6b test again 2024-04-18 15:16:56 +02:00
4ad35ca0ae test 2024-04-18 15:14:40 +02:00
49bff50c50 fix run script 2024-04-18 15:11:36 +02:00
f03a57477f make run script 2024-04-18 15:05:45 +02:00
3 changed files with 58 additions and 15 deletions

View File

@ -1,11 +1,33 @@
#!/bin/bash
# Install docker and compose plugin
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo apt-get install -y docker-compose-plugin
#---
cd /opt
apt update
apt install -y cmake make gcc g++ pkg-config libfftw3-dev libmbedtls-dev libsctp-dev libyaml-cpp-dev libgtest-dev screen libtool swig
git clone https://github.com/srsran/oran-sc-ric.git
cd oran-sc-ric
docker compose up -d
cd /opt
docker compose build
#install ZeroMQ
sudo apt-get install -y libzmq3-dev
@ -27,20 +49,17 @@ cd czmq
make -j`nproc`
sudo make install
sudo ldconfig
#-----#
cd /opt
git clone https://github.com/srsran/srsRAN_Project/
cd srsRAN_Project/docker
cd srsRAN_Project
git checkout test
docker compose up -d --build 5gc
cd ..
mkdir build
cd build
cmake .. -DENABLE_EXPORT=ON -DENABLE_ZEROMQ=ON
make -j`nproc`
#make test
cd apps/gnb
sudo screen -dmS gnb ./gnb -c /opt/oran-sc-ric/e2-agents/srsRAN/gnb_zmq.yaml
sudo ip netns add ue1
@ -55,9 +74,3 @@ cmake ../
make -j`nproc`
make install
srsran_install_configs.sh user
sleep 10
screen -dmS srsue srsue /opt/oran-sc-ric/e2-agents/srsRAN/ue_zmq.conf
cd /opt/oran-sc-ric
docker compose exec python_xapp_runner ./simple_mon_xapp.py --metrics=DRB.UEThpDl,DRB.UEThpUl

28
run Executable file
View File

@ -0,0 +1,28 @@
#!/bin/bash
ip netns add ue1
#start oran ric
cd /opt/oran-sc-ric
docker compose up -d
#start srsRAN 4g
sleep 15
screen -dmS srsue srsue /opt/oran-sc-ric/e2-agents/srsRAN/ue_zmq.conf
# start gnb
cd /opt/srsRAN_Project/docker
docker compose up -d 5gc
cd ../build/apps/gnb
sleep 15
screen -dmS gnb ./gnb -c /opt/oran-sc-ric/e2-agents/srsRAN/gnb_zmq.yaml
#start ping
sleep 15
LC_ALL=C screen -dmS ping ip netns exec ue1 ping -i 0.1 10.45.1.1
#start xapp
sleep 15
cd /opt/oran-sc-ric
screen -S xapp docker compose exec python_xapp_runner ./simple_mon_xapp.py --metrics=DRB.UEThpDl,DRB.UEThpUl

2
stop
View File

@ -5,3 +5,5 @@ cd /opt/oran-sc-ric
docker compose down
pkill srsue
pkill gnb
pkill ping
ip netns delete ue1