Files
5g-images/docs/open5gs-and-ueransim-two-slices

open5gs and ueransim with two slices

This tutorial is an adaptation of the Open5GS and UERANSIM tutorial.

The slices values were changed in the gNBs, and the NSSF and AMF configuration files were added in the config folder. Also, the SMF configuration file was modified, and the register_subscriber.sh script was updated with the new slice values.

Deployment NGC and register subscribers

deploy the ngc core (open5gs) with:

docker compose -f ngc.yaml up -d

Register subscribers in ngc with ./register_subscriber.sh.

Deploy gnodeb

gnb1.yaml is configured to deploy 1 gnodeb (gnb1) and 3 ues:

docker compose -f gnb1.yaml up -d

You can use gnb2.yaml to deploy a second gnodeb (gnb2) with 3 additional ues:

docker compose -f gnb2.yaml up -d

Test

To test ue connectivity through RAN, enter the gnb1-ues1 container:

docker compose -f gnb1.yaml exec ues1 /bin/bash
traceroute -i uesimtun0 google.es
ping -I uesimtun0 google.es

ues container will have multiple interfaces (one for each ue). You can try each tunnel providing the flag '-i' in traceroute and '-I' in ping.

If you have deployed a second genodeb (gnb2) the command to enter in the ues container is:

docker compose -f gnb2.yaml exec ues2 /bin/bash

Clean Up

Undeploy with:

docker compose -f gnb1.yaml down
docker compose -f gnb2.yaml down
docker compose -f ngc.yaml down -v