Previo
Before following these instructions, the servers that will run it must be previously configured.
This guide is provided for initial deployment.
1. Run the core
ssh nextnet@172.31.0.2
Core terminal (nextnet-oai1):
Create new tmux session
tmux new -s deploycore
cd ~/oai-cn5g
Core terminal (nextnet-oai1):
Start core:
docker compose up -dssh nextnet@172.31.0.2
View AMF logs:
docker logs oai-amf -f
Stop core(when you finish the session):
docker compose down
Desatach tmux session: press Ctrl + b, next press d
2. CHECK IF USRP N310 PINGS OAI:
Core terminal (nextnet-oai1):
ssh root@192.168.1.10
ip route add 192.168.70.128/26 via 192.168.20.50 dev sfp1
ping 192.168.70.132
exit
3. Run the GNB (USRP N310):
Create new tmux session
tmux new -s deploygnb
Core terminal (nextnet-oai1):
cd ~/openairinterface5g/cmake_targets/ran_build/build
sudo ./nr-softmodem -O ../../../targets/PROJECTS/GENERIC-NR-5GC/CONF3/gnb.band78.sa.fr1.106PRB.usrpn310.conf --sa
Desatach tmux session: press Ctrl + b, next press d
4. Start USRP B210 as UE:
Ssh to server oai 2 and create new tmux session
ssh nextnet@172.31.0.3
tmux new -s deployUE
UE terminal (nextnet-oai2):
cd ~/openairinterface5g/cmake_targets/ran_build/build
sudo ./nr-uesoftmodem -r 106 --numerology 1 --band 78 -C 3319680000 --ue-fo-compensation -E -O ../../../targets/PROJECTS/GENERIC-NR-5GC/CONF/ue.conf
Desatach tmux session: press Ctrl + b, next press d
5. CHECK CONNECTION:
Return to nextnet-oai1
exit
Create new tmux session
tmux new -s iperfserver
Core terminal (nextnet-oai1):
Start ipeft server
iperf3 -s
Desatach tmux session: press Ctrl + b, next press d
ssh nextnet@172.31.0.3
UE terminal (nextnet-oai2): Probe connection
ping 192.168.70.135 -I oaitun_ue1
traceroute -i oaitun_ue1 163.117.140.113
Before running iperf, check the IP address we have: 12.1.1.12
ip a
inet 12.1.1.12/24 scope global oaitun_ue1 and use the address it shows us instead of 12.1.1.12, which is used as an example
Finally we run the iperft:
iperf3 -c 172.31.0.2 -i 1 -t 30 -B 12.1.1.12
6. Notes:
*To kill all tmux session: tmux kill-server —> you should do that when you finish your experiments in nextnet-oai1 and nextnet-oai2
Example:
nextnet@nextnet-oai2: tmux kill-server
nextnet@nextnet-oai2: exit
Close session
Connection to 172.31.0.3 closed.
nextnet@nextnet-oai1: tmux kill-server
nextnet@nextnet-oai1: tmux ls
no server running on /tmp/tmux-1000/default
*To attach anny tmux session (in the correct server terminal): tmux attach-session -t name_session Example: tmux attach-session -t deployUE