Start srsRAN and Open5GS - JsCc-Electro/5G-SA-Network-Open5gs-srsRAN GitHub Wiki
Once the CN and RAN have been configured, the next step is to execute them to verify the correct functioning of the simulated mobile cellular network, ensuring that it allows the connection of the UE. The commands to start the RAN are as follows, where the gNB should be started first, followed by 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.
To perform a controlled ping, you need to execute the following commands, where:
- -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.
sudo ip netns exec ue1 iperf3 -c 10.45.0.1 -b 10M -t 60 # Iniciar ping con iperf3.