Start srsRAN and Open5GS With USRP - 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.
Once the gNB is started, it is necessary to configure the APN (Access Point Name) on the mobile device, using the same APN configured in the UDM (Unified Data Management). Additionally, the MCC (Mobile Country Code) and MNC (Mobile Network Code) values of the SIM card should be set to the same values configured in the enb.conf file.
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.