|
|
# A Deployment Example
|
|
|
|
|
|
## Network overview
|
|
|
|
|
|
![Network Overview](images/smf_testbed.jpg)
|
|
|
|
|
|
|
|
|
## Create configuration file for SMF
|
|
|
Following instructions from the section [installation](installation) and [configuration](smf_configuration) to create a configuration file for SMF.
|
|
|
|
|
|
**SMF and UPF configuration files are generated and put in /usr/local/etc/oai/**
|
|
|
## Build and launch an UDM
|
|
|
|
|
|
```
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf$ cd ./src/test/udm
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/src/test/udm$ mkdir build
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/src/test/udm/build$ cmake ..
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/src/test/udm/build$ make
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/src/test/udm/build$ sudo ./udm-server -i 172.16.1.103
|
|
|
```
|
|
|
|
|
|
## Build and launch an AMF server
|
|
|
|
|
|
```
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf$ cd ./src/test/amf
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/src/test/amf$ mkdir build
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/src/test/amf/build$ cmake ..
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/src/test/amf/build$ make
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/src/test/amf/build$ sudo ./amf-server -i 172.16.1.102
|
|
|
```
|
|
|
|
|
|
## launch SMF
|
|
|
sudo smf -c /usr/local/etc/oai/smf.conf -o
|
|
|
|
|
|
## Build UPF (SPGWU) and configure UPF (SPGWU)
|
|
|
UPF, for the moment, use SPGU implementation from [OAI CUPS](https://github.com/OPENAIRINTERFACE/openair-cn-cups).
|
|
|
|
|
|
git clone https://github.com/OPENAIRINTERFACE/openair-cn-cups/
|
|
|
cd /openair-cn-cups/build/scripts
|
|
|
./build_spgwu -I -f
|
|
|
./build_spgwu -c -V -b Debug -j
|
|
|
|
|
|
```
|
|
|
ubuntu@test-smf:~$ git clone https://github.com/OPENAIRINTERFACE/openair-cn-cups/
|
|
|
ubuntu@test-smf:~$ cd openair-cn-cups/
|
|
|
ubuntu@test-smf:~/openair-cn-cups$ cd ./build/scripts
|
|
|
ubuntu@test-smf:~/openair-cn-cups/build/scripts$ ./build_spgwu -I -f
|
|
|
```
|
|
|
|
|
|
Configure SPGWU using an example configure file (spgw_u.conf)
|
|
|
|
|
|
```
|
|
|
ubuntu@test-smf:~$ cd oai-cn5g-smf/
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf$ cd ./src/test/upf
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/src/test/upf$ ./spgwu_conf.sh
|
|
|
```
|
|
|
|
|
|
## Build an AMF client
|
|
|
|
|
|
|
|
|
```
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf$ cd ./src/test/amf_client
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/src/test/amf_client$ mkdir build
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/src/test/amf_client/build$ cmake ..
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/src/test/amf_client/build$ make
|
|
|
```
|
|
|
|
|
|
## Lauch SMF, UPF (SPGWU) and AMF client
|
|
|
**Launch SMF**
|
|
|
|
|
|
```
|
|
|
ubuntu@test-smf:~$ cd oai-cn5g-smf/
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf$ cd ./build/scripts
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/build/scripts$ sudo smf -c /usr/local/etc/oai/smf.conf -o
|
|
|
```
|
|
|
|
|
|
**Launch UPF (SPGWU)**
|
|
|
|
|
|
```
|
|
|
ubuntu@test-smf:~$ cd ./src/test/upf
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/src/test/upf$ sudo spgwu -c /usr/local/etc/oai/spgw_u.conf
|
|
|
```
|
|
|
|
|
|
**Launch AMF client**
|
|
|
|
|
|
```
|
|
|
ubuntu@test-smf:~$ cd ./src/test/amf_client
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/src/test/amf_client$ ./amf-client -i 172.16.1.101
|
|
|
```
|
|
|
|
|
|
# |
|
|
\ No newline at end of file |