Sign inSign up

free5gc/n3iwf

By free5gc

•Updated about 3 hours ago

free5GC N3IWF

Image
0

10K+

free5gc/n3iwf repository overview

⁠Free5GC Compose

This repository is a docker compose version of free5GC⁠ for stage 3. It's inspire by free5gc-docker-compose⁠ and also reference to docker-free5GC⁠.

You can setup your own config in config⁠ folder and docker-compose.yaml⁠

⁠Prerequisites

⁠GTP5G kernel module

Due to the UPF issue, the host must be using kernel 5.0.0-23-generic. And it should contain gtp5g kernel module.

On you host OS:

git clone https://github.com/PrinzOwO/gtp5g.git
cd gtp5g
make
sudo make install
⁠Docker

⁠Start Free5gc

Because we need to create tunnel interface, we need to use privileged container with root permission.

$ git clone https://github.com/free5gc/free5gc-compose.git
$ cd free5gc-compose
$ make base
$ docker-compose build
$ sudo docker-compose up # Recommend use with tmux to run in frontground
$ sudo docker-compose up -d # Run in backbround if needed

⁠Troubleshooting

Sometimes, you need to drop data from DB:

$ docker exec -it mongodb mongo
> use free5gc
> db.subscribers.drop()
> exit # (Or Ctrl-D)

You can see logs for each service using docker logs command. For example, to access the logs of the SMF you can use:

docker logs smf

Please refer to the wiki⁠ for more troubleshooting information.

⁠Integration with external eNB/UE simulators

The integration with the UERANSIM⁠ eNB/UE simulator is documented here⁠.

You can also refer to this issue⁠ to find out how you can configure the UPF to forward traffic between the UERANSIM⁠ to the DN (eg. internet) in a docker environment.

⁠Vagrant Box Option

You can setup a working environment without the fuss of updating your kernel version just by using a vagrant box. You can follow the instructions provided here: https://github.com/abousselmi/vagrant-free5gc⁠

⁠NF dependencies and ports

NFExposed PortsDependenciesDependencies URI
amf8000nrfnrfUri: https://nrf:8000⁠
ausf8000nrfnrfUri: https://nrf:8000⁠
nrf8000dbMongoDBUrl: mongodb://db:27017
nssf8000nrfnrfUri: https://nrf:8000/⁠,
nrfId: https://nrf:8000/nnrf-nfm/v1/nf-instances⁠
pcf8000nrfnrfUri: https://nrf:8000⁠
smf8000nrf, upfnrfUri: https://nrf:8000⁠,
node_id: upf1, node_id: upf2, node_id: upf3
udm8000nrfnrfUri: https://nrf:8000⁠
udr8000nrf, dbnrfUri: https://nrf:8000⁠,
url: mongodb://db:27017
n3iwfN/Aamf, smf, upf
upf1N/Apfcp, gtpu, apnpfcp: upf1, gtpu: upf1, apn: internet
upf2N/Apfcp, gtpu, apnpfcp: upf2, gtpu: upf2, apn: internet
upfb (ulcl)N/Apfcp, gtpu, apnpfcp: upfb, gtpu: upfb, apn: intranet
webui5000dbMongoDBUrl: mongodb://db:27017

⁠Reference

Tag summary

Content type

Image

Digest

sha256:8d23fc56b…

Size

22.3 MB

Last updated

about 3 hours ago

docker pull free5gc/n3iwf