Files
5g-images/docs/open5gs-and-ueransim
2025-04-08 15:25:13 +02:00
..
2025-03-27 08:29:43 +01:00
2024-01-29 11:53:22 +01:00
2024-01-29 11:53:22 +01:00
2024-01-15 11:43:02 +01:00
2024-07-04 10:17:23 +02:00

open5gs and ueransim

5G end to end communication demo with open5gs and ueransim.

TL;DR -> asciicast

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