-
Notifications
You must be signed in to change notification settings - Fork 0
5G test process
We used raspberry Pi 3 b+'s and a Intel NUC 12 Pro Mini acting as the core and a Intel NUC 11PH as our radio tower that we connected via ethernet switch for our tests.
Click on the link for the hardware setup instructions below:
Note: Commands to run are in bold
- Connect everything to power – the Nuc(s) Pi cluster, and external hard drive adapter.
- Connect the external hard drive to the 5g core Nuc.
- Verify that these steps have been completed.
- Each Pi has all of the correct files mentioned in the setup stage.
- Each Pi has the correct imsi located in /home/ubuntu/scripts/script_config/open5gs-ue(#).yaml
- Pi1 should have an imsi that ends 11, pi2 imsi 21, pi3 imsi 31 etc. you can check localhost:3000 to see what all the imsi’s are for each pi.
- Check to make sure the appropriate Nuc has the correct files mentioned in the setup stage.
- Go to localhost:3000 and verify that every pi has an imsi associated with it.
- On the Core, verify that the 5g core is running by running the following command: /home/ubuntu/ldrd/scripts/restart_core.sh
- On the NugNB, verify that gNB is running.
-
If it is not run the following command on the NugNB:
sudo UERANSIM/build/nr-gnb -c UERANSIM/config/open5gs-gnb.yaml
-
On the piFS run the following commands in two different shell tabs:
- For the download server.
- cd /home/ubuntu/fs/files
- sudo python3 -m http.server 80
- Keep this tab open until all tests are complete.
- For the upload server.
- cd /home/ubuntu/fs/upload
- sudo python3 -m uploadserver 8000
- Keep this tab open until all tests are complete.
- Check that the data directory on the core was backed up and emptied from the previous runs (see step "Backup")
Note: All tests should be ran from the core.
- Run the following commands in a new shell tab on the core:
- cd /home/ubuntu/ldrd/
-
./run_tests_parallel.sh -s 1 -e 15 -p 6
- -s is the configuration ID we are starting at.
- -e is the configuration ID we are ending at.
- -p is the maximum number of concurrent raspberry Pis to use.
- Once all tests have finished Generate the summary.csv files on the core.
- Run the following commands in a new shell tab on the core:
- cd /home/ubuntu/ldrd/scripts
- source /home/ubuntu/ldrd/env/bin/activate
-
./process_configuration_range.sh -s 1 -e 15
- -s is the configuration ID we are starting at
- -e is the configuration ID we are ending at
- Once this script has finished spot check a few directories in /home/ubuntu/ldrd/data for summary.csv files.
- Run the following commands in a new shell tab on the core:
- Check that the external hard drive is connected to the core (/media/ubuntu/qos_ldrd_data_5g)
- Make a new directory for the run #
- Copy all data from /home/fs/ldrd/data/* into the new run directory you created.
- Verify that the data is all copied over to the external drive.
- Delete all data inside /home/fs/ldrd/data/
Throughout this process we have touched the following configuration files:
AMF component: /etc/open5gs/amf.yaml
UPF component: /etc/open5gs/upf.yaml
gNB component: UERANSIM/config/open5gs-gnb.yaml
UE component: UERANSIM/config/open5gs-ue(various).yaml
The system is set up in the way described below so if you are having trouble connecting any piece you will want to check the above configuration files.
From open5gs doc:
Interfaces
There are 3 main interface in UE/RAN perspective:
- Control Interface (between RAN and AMF)
- User Interface (between RAN and UPF)
- Radio Interface (between UE and RAN)
The UE connects to the gNB which then connects to the 5g core via the AMF for authentication or the UPF if you need to reach outside the network which in our case was where the file server was located.
If you need to change the IP address of the individual UE's you will want to set them under localhost:3000 by clicking the edit icon on the UE ISMI number to set the desired IP address for each UE.