Start srsRAN and Open5GS in different machines - JsCc-Electro/5G-SA-Network-Open5gs-srsRAN GitHub Wiki
Once the CN and RAN are configured, we proceed with their execution to verify the proper functioning of the simulated mobile cellular network, ensuring that it allows UE connection. The commands to start the RAN are as follows, with the gNB being started first and then the UE.
sudo su # Entrar en modo superusuario.
cd # Ir a la carpeta raíz.
cd srsRAN/build # Entrar en la carpeta build.
./srsenb/src/srsenb # Iniciar el gNB.
In another terminal, execute the following commands:
sudo su # Entrar en modo superusuario.
cd # Ir a la carpeta raíz.
cd srsRAN/build # Entrar en la carpeta build.
./srsue/src/srsue # Iniciar el UE.
Open5GS is a set of daemons, which means that they start executing automatically every time you boot up your computer.
Once the gNB and UE are running, open another terminal and use the ifconfig
command. You should observe that a new network called tun_srsue
has been created, which corresponds to the newly created cellular device, indicating the assigned IP address.
Furthermore, to perform controlled ping tests, you need to use iperf3
. To do this, start the iperf3
server on the computer running Open5GS, and then you can perform the ping from the computer with srsRAN.
- -c represents the destination IP address you want to ping.
- -b represents the packet size to send.
- -t represents the duration of time in which the packets will be sent.
iperf3 -s -i 1 # Iniciar el servidor iperf3 en Open5GS.
sudo ip netns exec ue1 iperf3 -c 10.45.0.1 -b 10M -t 60 # Iniciar ping con iperf3 en srsRAN.