Commit a20a6ba4 authored by Robert Schmidt's avatar Robert Schmidt

Merge remote-tracking branch 'origin/NR_SA_Tutorials_v2' into integration_2022_wk30

parents 72bf1b1d 43298fd0
...@@ -71,10 +71,6 @@ reboot ...@@ -71,10 +71,6 @@ reboot
# https://docs.docker.com/compose/install/ # https://docs.docker.com/compose/install/
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose
docker network create --driver=bridge --subnet=192.168.70.128/26 -o "com.docker.network.bridge.name"="demo-oai" demo-oai-public-net
sudo service docker restart
``` ```
## 2.2 OAI CN5G Setup ## 2.2 OAI CN5G Setup
...@@ -82,39 +78,36 @@ sudo service docker restart ...@@ -82,39 +78,36 @@ sudo service docker restart
```bash ```bash
# Git oai-cn5g-fed repository # Git oai-cn5g-fed repository
git clone https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-fed.git ~/oai-cn5g-fed git clone https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-fed.git ~/oai-cn5g-fed
cd ~/oai-cn5g-fed
git checkout master
./scripts/syncComponents.sh --nrf-branch develop --amf-branch develop --smf-branch develop --spgwu-tiny-branch develop --ausf-branch develop --udm-branch develop --udr-branch develop --upf-vpp-branch develop --nssf-branch develop
# Pull docker images
docker pull oaisoftwarealliance/oai-amf:develop docker pull oaisoftwarealliance/oai-amf:develop
docker pull oaisoftwarealliance/oai-nrf:develop docker pull oaisoftwarealliance/oai-nrf:develop
docker pull oaisoftwarealliance/oai-smf:develop docker pull oaisoftwarealliance/oai-smf:develop
docker pull oaisoftwarealliance/oai-udr:develop docker pull oaisoftwarealliance/oai-udr:develop
docker pull oaisoftwarealliance/oai-udm:develop docker pull oaisoftwarealliance/oai-udm:develop
docker pull oaisoftwarealliance/oai-ausf:develop docker pull oaisoftwarealliance/oai-ausf:develop
docker pull oaisoftwarealliance/oai-upf-vpp:develop
docker pull oaisoftwarealliance/oai-spgwu-tiny:develop docker pull oaisoftwarealliance/oai-spgwu-tiny:develop
docker pull oaisoftwarealliance/oai-nssf:develop docker pull oaisoftwarealliance/trf-gen-cn5g:latest
# Tag docker images
docker image tag oaisoftwarealliance/oai-amf:develop oai-amf:develop docker image tag oaisoftwarealliance/oai-amf:develop oai-amf:develop
docker image tag oaisoftwarealliance/oai-nrf:develop oai-nrf:develop docker image tag oaisoftwarealliance/oai-nrf:develop oai-nrf:develop
docker image tag oaisoftwarealliance/oai-smf:develop oai-smf:develop docker image tag oaisoftwarealliance/oai-smf:develop oai-smf:develop
docker image tag oaisoftwarealliance/oai-udr:develop oai-udr:develop docker image tag oaisoftwarealliance/oai-udr:develop oai-udr:develop
docker image tag oaisoftwarealliance/oai-udm:develop oai-udm:develop docker image tag oaisoftwarealliance/oai-udm:develop oai-udm:develop
docker image tag oaisoftwarealliance/oai-ausf:develop oai-ausf:develop docker image tag oaisoftwarealliance/oai-ausf:develop oai-ausf:develop
docker image tag oaisoftwarealliance/oai-upf-vpp:develop oai-upf-vpp:develop
docker image tag oaisoftwarealliance/oai-spgwu-tiny:develop oai-spgwu-tiny:develop docker image tag oaisoftwarealliance/oai-spgwu-tiny:develop oai-spgwu-tiny:develop
docker image tag oaisoftwarealliance/oai-nssf:develop oai-nssf:develop docker image tag oaisoftwarealliance/trf-gen-cn5g:latest trf-gen-cn5g:latest
``` ```
## 2.3 OAI CN5G Configuration files ## 2.3 OAI CN5G Configuration files
Download and copy the configuration files to ~/oai-cn5g-fed/docker-compose: Download and copy configuration files:
- [docker-compose-basic-nrf.yaml](tutorial_resources/docker-compose-basic-nrf.yaml) - Copy [docker-compose-basic-nrf.yaml](tutorial_resources/docker-compose-basic-nrf.yaml) to `~/oai-cn5g-fed/docker-compose`
- [oai_db.sql](tutorial_resources/oai_db.sql) - Copy [oai_db.sql](tutorial_resources/oai_db.sql) to `~/oai-cn5g-fed/docker-compose/database`
Change permissions on oai_db.sql to prevent mysql permission denied error: Change permissions on oai_db.sql to prevent mysql permission denied error:
```bash ```bash
chmod 644 ~/oai-cn5g-fed/docker-compose/oai_db.sql chmod 644 ~/oai-cn5g-fed/docker-compose/database/oai_db.sql
``` ```
## 2.4 SIM Card ## 2.4 SIM Card
...@@ -175,7 +168,7 @@ cd cmake_targets ...@@ -175,7 +168,7 @@ cd cmake_targets
```bash ```bash
cd ~/oai-cn5g-fed/docker-compose cd ~/oai-cn5g-fed/docker-compose
python3 core-network.py --type start-basic --fqdn yes --scenario 1 python3 core-network.py --type start-basic --scenario 1
``` ```
## 4.2 Run OAI gNB ## 4.2 Run OAI gNB
......
...@@ -72,10 +72,6 @@ reboot ...@@ -72,10 +72,6 @@ reboot
# https://docs.docker.com/compose/install/ # https://docs.docker.com/compose/install/
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose
docker network create --driver=bridge --subnet=192.168.70.128/26 -o "com.docker.network.bridge.name"="demo-oai" demo-oai-public-net
sudo service docker restart
``` ```
## 2.2 OAI CN5G Setup ## 2.2 OAI CN5G Setup
...@@ -83,39 +79,36 @@ sudo service docker restart ...@@ -83,39 +79,36 @@ sudo service docker restart
```bash ```bash
# Git oai-cn5g-fed repository # Git oai-cn5g-fed repository
git clone https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-fed.git ~/oai-cn5g-fed git clone https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-fed.git ~/oai-cn5g-fed
cd ~/oai-cn5g-fed
git checkout master
./scripts/syncComponents.sh --nrf-branch develop --amf-branch develop --smf-branch develop --spgwu-tiny-branch develop --ausf-branch develop --udm-branch develop --udr-branch develop --upf-vpp-branch develop --nssf-branch develop
# Pull docker images
docker pull oaisoftwarealliance/oai-amf:develop docker pull oaisoftwarealliance/oai-amf:develop
docker pull oaisoftwarealliance/oai-nrf:develop docker pull oaisoftwarealliance/oai-nrf:develop
docker pull oaisoftwarealliance/oai-smf:develop docker pull oaisoftwarealliance/oai-smf:develop
docker pull oaisoftwarealliance/oai-udr:develop docker pull oaisoftwarealliance/oai-udr:develop
docker pull oaisoftwarealliance/oai-udm:develop docker pull oaisoftwarealliance/oai-udm:develop
docker pull oaisoftwarealliance/oai-ausf:develop docker pull oaisoftwarealliance/oai-ausf:develop
docker pull oaisoftwarealliance/oai-upf-vpp:develop
docker pull oaisoftwarealliance/oai-spgwu-tiny:develop docker pull oaisoftwarealliance/oai-spgwu-tiny:develop
docker pull oaisoftwarealliance/oai-nssf:develop docker pull oaisoftwarealliance/trf-gen-cn5g:latest
# Tag docker images
docker image tag oaisoftwarealliance/oai-amf:develop oai-amf:develop docker image tag oaisoftwarealliance/oai-amf:develop oai-amf:develop
docker image tag oaisoftwarealliance/oai-nrf:develop oai-nrf:develop docker image tag oaisoftwarealliance/oai-nrf:develop oai-nrf:develop
docker image tag oaisoftwarealliance/oai-smf:develop oai-smf:develop docker image tag oaisoftwarealliance/oai-smf:develop oai-smf:develop
docker image tag oaisoftwarealliance/oai-udr:develop oai-udr:develop docker image tag oaisoftwarealliance/oai-udr:develop oai-udr:develop
docker image tag oaisoftwarealliance/oai-udm:develop oai-udm:develop docker image tag oaisoftwarealliance/oai-udm:develop oai-udm:develop
docker image tag oaisoftwarealliance/oai-ausf:develop oai-ausf:develop docker image tag oaisoftwarealliance/oai-ausf:develop oai-ausf:develop
docker image tag oaisoftwarealliance/oai-upf-vpp:develop oai-upf-vpp:develop
docker image tag oaisoftwarealliance/oai-spgwu-tiny:develop oai-spgwu-tiny:develop docker image tag oaisoftwarealliance/oai-spgwu-tiny:develop oai-spgwu-tiny:develop
docker image tag oaisoftwarealliance/oai-nssf:develop oai-nssf:develop docker image tag oaisoftwarealliance/trf-gen-cn5g:latest trf-gen-cn5g:latest
``` ```
## 2.3 OAI CN5G Configuration files ## 2.3 OAI CN5G Configuration files
Download and copy the configuration files to ~/oai-cn5g-fed/docker-compose: Download and copy configuration files:
- [docker-compose-basic-nrf.yaml](tutorial_resources/docker-compose-basic-nrf.yaml) - Copy [docker-compose-basic-nrf.yaml](tutorial_resources/docker-compose-basic-nrf.yaml) to `~/oai-cn5g-fed/docker-compose`
- [oai_db.sql](tutorial_resources/oai_db.sql) - Copy [oai_db.sql](tutorial_resources/oai_db.sql) to `~/oai-cn5g-fed/docker-compose/database`
Change permissions on oai_db.sql to prevent mysql permission denied error: Change permissions on oai_db.sql to prevent mysql permission denied error:
```bash ```bash
chmod 644 ~/oai-cn5g-fed/docker-compose/oai_db.sql chmod 644 ~/oai-cn5g-fed/docker-compose/database/oai_db.sql
``` ```
## 2.4 SIM Card ## 2.4 SIM Card
...@@ -193,7 +186,7 @@ The following steps are recommended. Please change the network interface(s) as r ...@@ -193,7 +186,7 @@ The following steps are recommended. Please change the network interface(s) as r
```bash ```bash
cd ~/oai-cn5g-fed/docker-compose cd ~/oai-cn5g-fed/docker-compose
python3 core-network.py --type start-basic --fqdn yes --scenario 1 python3 core-network.py --type start-basic --scenario 1
``` ```
## 4.2 Run OAI gNB ## 4.2 Run OAI gNB
......
...@@ -4,8 +4,8 @@ services: ...@@ -4,8 +4,8 @@ services:
container_name: "mysql" container_name: "mysql"
image: mysql:5.7 image: mysql:5.7
volumes: volumes:
- ./oai_db.sql:/docker-entrypoint-initdb.d/oai_db.sql - ./database/oai_db.sql:/docker-entrypoint-initdb.d/oai_db.sql
- ./mysql-healthcheck2.sh:/tmp/mysql-healthcheck.sh - ./healthscripts/mysql-healthcheck2.sh:/tmp/mysql-healthcheck.sh
environment: environment:
- TZ=Europe/Paris - TZ=Europe/Paris
- MYSQL_DATABASE=oai_db - MYSQL_DATABASE=oai_db
...@@ -21,35 +21,45 @@ services: ...@@ -21,35 +21,45 @@ services:
public_net: public_net:
ipv4_address: 192.168.70.131 ipv4_address: 192.168.70.131
oai-udr: oai-udr:
container_name: oai-udr container_name: "oai-udr"
image: oai-udr:develop image: oai-udr:develop
environment: environment:
- TZ=Europe/Paris - TZ=Europe/Paris
- INSTANCE=0 - INSTANCE=0
- PID_DIRECTORY=/var/run - PID_DIRECTORY=/var/run
- UDR_NAME=OAI_UDR
- UDR_INTERFACE_NAME_FOR_NUDR=eth0 - UDR_INTERFACE_NAME_FOR_NUDR=eth0
- UDR_INTERFACE_PORT_FOR_NUDR=80 - UDR_INTERFACE_PORT_FOR_NUDR=80
- UDR_INTERFACE_HTTP2_PORT_FOR_NUDR=8080 - UDR_INTERFACE_HTTP2_PORT_FOR_NUDR=8080
- USE_HTTP2=no
- UDR_API_VERSION=v1 - UDR_API_VERSION=v1
- MYSQL_IPV4_ADDRESS=192.168.70.131 - MYSQL_IPV4_ADDRESS=192.168.70.131
- MYSQL_USER=test - MYSQL_USER=test
- MYSQL_PASS=test - MYSQL_PASS=test
- DB_CONNECTION_TIMEOUT=300 # Reset the connection to the DB after expiring the timeout (in second) currently can't be changed
- MYSQL_DB=oai_db - MYSQL_DB=oai_db
- WAIT_MYSQL=120 - WAIT_MYSQL=120
- USE_FQDN_DNS=yes
- REGISTER_NRF=yes
- NRF_IPV4_ADDRESS=192.168.70.130
- NRF_PORT=80
- NRF_API_VERSION=v1
- NRF_FQDN=oai-nrf
depends_on: depends_on:
- mysql - mysql
- oai-nrf
networks: networks:
public_net: public_net:
ipv4_address: 192.168.70.136 ipv4_address: 192.168.70.136
volumes: volumes:
- ./udr-healthcheck.sh:/openair-udr/bin/udr-healthcheck.sh - ./healthscripts/udr-healthcheck.sh:/openair-udr/bin/udr-healthcheck.sh
healthcheck: healthcheck:
test: /bin/bash -c "/openair-udr/bin/udr-healthcheck.sh" test: /bin/bash -c "/openair-udr/bin/udr-healthcheck.sh"
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5
oai-udm: oai-udm:
container_name: oai-udm container_name: "oai-udm"
image: oai-udm:develop image: oai-udm:develop
environment: environment:
- TZ=Europe/Paris - TZ=Europe/Paris
...@@ -58,26 +68,33 @@ services: ...@@ -58,26 +68,33 @@ services:
- UDM_NAME=OAI_UDM - UDM_NAME=OAI_UDM
- SBI_IF_NAME=eth0 - SBI_IF_NAME=eth0
- SBI_PORT=80 - SBI_PORT=80
- SBI_HTTP2_PORT=8080
- USE_HTTP2=no
- UDM_VERSION_NB=v1 - UDM_VERSION_NB=v1
- USE_FQDN_DNS=yes - USE_FQDN_DNS=yes
- UDR_IP_ADDRESS=192.168.70.136 - UDR_IP_ADDRESS=192.168.70.136
- UDR_PORT=80 - UDR_PORT=80
- UDR_VERSION_NB=v1 - UDR_VERSION_NB=v1
- UDR_FQDN=oai-udr - UDR_FQDN=oai-udr
- REGISTER_NRF=yes
- NRF_IPV4_ADDRESS=192.168.70.130
- NRF_PORT=80
- NRF_API_VERSION=v1
- NRF_FQDN=oai-nrf
depends_on: depends_on:
- oai-udr - oai-udr
networks: networks:
public_net: public_net:
ipv4_address: 192.168.70.137 ipv4_address: 192.168.70.137
volumes: volumes:
- ./udm-healthcheck.sh:/openair-udm/bin/udm-healthcheck.sh - ./healthscripts/udm-healthcheck.sh:/openair-udm/bin/udm-healthcheck.sh
healthcheck: healthcheck:
test: /bin/bash -c "/openair-udm/bin/udm-healthcheck.sh" test: /bin/bash -c "/openair-udm/bin/udm-healthcheck.sh"
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5
oai-ausf: oai-ausf:
container_name: oai-ausf container_name: "oai-ausf"
image: oai-ausf:develop image: oai-ausf:develop
environment: environment:
- TZ=Europe/Paris - TZ=Europe/Paris
...@@ -86,18 +103,25 @@ services: ...@@ -86,18 +103,25 @@ services:
- AUSF_NAME=OAI_AUSF - AUSF_NAME=OAI_AUSF
- SBI_IF_NAME=eth0 - SBI_IF_NAME=eth0
- SBI_PORT=80 - SBI_PORT=80
- USE_HTTP2
- SBI_HTTP2_PORT
- USE_FQDN_DNS=yes - USE_FQDN_DNS=yes
- UDM_IP_ADDRESS=192.168.70.137 - UDM_IP_ADDRESS=192.168.70.137
- UDM_PORT=80 - UDM_PORT=80
- UDM_VERSION_NB=v1 - UDM_VERSION_NB=v1
- UDM_FQDN=oai-udm - UDM_FQDN=oai-udm
- REGISTER_NRF=yes
- NRF_IPV4_ADDRESS=192.168.70.130
- NRF_PORT=80
- NRF_API_VERSION=v1
- NRF_FQDN=oai-nrf
depends_on: depends_on:
- oai-udm - oai-udm
networks: networks:
public_net: public_net:
ipv4_address: 192.168.70.138 ipv4_address: 192.168.70.138
volumes: volumes:
- ./ausf-healthcheck.sh:/openair-ausf/bin/ausf-healthcheck.sh - ./healthscripts/ausf-healthcheck.sh:/openair-ausf/bin/ausf-healthcheck.sh
healthcheck: healthcheck:
test: /bin/bash -c "/openair-ausf/bin/ausf-healthcheck.sh" test: /bin/bash -c "/openair-ausf/bin/ausf-healthcheck.sh"
interval: 10s interval: 10s
...@@ -107,9 +131,10 @@ services: ...@@ -107,9 +131,10 @@ services:
container_name: "oai-nrf" container_name: "oai-nrf"
image: oai-nrf:develop image: oai-nrf:develop
environment: environment:
- TZ=Europe/Paris
- NRF_INTERFACE_NAME_FOR_SBI=eth0 - NRF_INTERFACE_NAME_FOR_SBI=eth0
- NRF_INTERFACE_PORT_FOR_SBI=80 - NRF_INTERFACE_PORT_FOR_SBI=80
- NRF_INTERFACE_HTTP2_PORT_FOR_SBI=9090 - NRF_INTERFACE_HTTP2_PORT_FOR_SBI=8080
- NRF_API_VERSION=v1 - NRF_API_VERSION=v1
- INSTANCE=0 - INSTANCE=0
- PID_DIRECTORY=/var/run - PID_DIRECTORY=/var/run
...@@ -117,7 +142,7 @@ services: ...@@ -117,7 +142,7 @@ services:
public_net: public_net:
ipv4_address: 192.168.70.130 ipv4_address: 192.168.70.130
volumes: volumes:
- ./nrf-healthcheck.sh:/openair-nrf/bin/nrf-healthcheck.sh - ./healthscripts/nrf-healthcheck.sh:/openair-nrf/bin/nrf-healthcheck.sh
healthcheck: healthcheck:
test: /bin/bash -c "/openair-nrf/bin/nrf-healthcheck.sh" test: /bin/bash -c "/openair-nrf/bin/nrf-healthcheck.sh"
interval: 10s interval: 10s
...@@ -146,9 +171,7 @@ services: ...@@ -146,9 +171,7 @@ services:
- PLMN_SUPPORT_MNC=99 - PLMN_SUPPORT_MNC=99
- PLMN_SUPPORT_TAC=0x0001 - PLMN_SUPPORT_TAC=0x0001
- SST_0=1 - SST_0=1
- SD_0=1 - SD_0=0x1
- SST_1=1
- SD_1=12
- AMF_INTERFACE_NAME_FOR_NGAP=eth0 - AMF_INTERFACE_NAME_FOR_NGAP=eth0
- AMF_INTERFACE_NAME_FOR_N11=eth0 - AMF_INTERFACE_NAME_FOR_N11=eth0
- SMF_INSTANCE_ID_0=1 - SMF_INSTANCE_ID_0=1
...@@ -168,22 +191,30 @@ services: ...@@ -168,22 +191,30 @@ services:
- OPERATOR_KEY=1006020f0a478bf6b699f15c062e42b3 - OPERATOR_KEY=1006020f0a478bf6b699f15c062e42b3
- NRF_IPV4_ADDRESS=192.168.70.130 - NRF_IPV4_ADDRESS=192.168.70.130
- NRF_PORT=80 - NRF_PORT=80
- EXTERNAL_NRF=no
- NF_REGISTRATION=yes - NF_REGISTRATION=yes
- SMF_SELECTION=yes - SMF_SELECTION=yes
- USE_FQDN_DNS=yes - USE_FQDN_DNS=yes
- EXTERNAL_AUSF=yes - EXTERNAL_AUSF=yes
- EXTERNAL_UDM=no
- EXTERNAL_NSSF=no
- USE_HTTP2=no
- NRF_API_VERSION=v1 - NRF_API_VERSION=v1
- NRF_FQDN=oai-nrf - NRF_FQDN=oai-nrf
- AUSF_IPV4_ADDRESS=192.168.70.138 - AUSF_IPV4_ADDRESS=192.168.70.138
- AUSF_PORT=80 - AUSF_PORT=80
- AUSF_API_VERSION=v1 - AUSF_API_VERSION=v1
- AUSF_FQDN=oai-ausf - AUSF_FQDN=oai-ausf
- UDM_IPV4_ADDRESS=192.168.70.137
- UDM_PORT=80
- UDM_API_VERSION=v2
- UDM_FQDN=oai-udm
depends_on: depends_on:
- mysql - mysql
- oai-nrf - oai-nrf
- oai-ausf - oai-ausf
volumes: volumes:
- ./amf-healthcheck.sh:/openair-amf/bin/amf-healthcheck.sh - ./healthscripts/amf-healthcheck.sh:/openair-amf/bin/amf-healthcheck.sh
healthcheck: healthcheck:
test: /bin/bash -c "/openair-amf/bin/amf-healthcheck.sh" test: /bin/bash -c "/openair-amf/bin/amf-healthcheck.sh"
interval: 10s interval: 10s
...@@ -212,26 +243,35 @@ services: ...@@ -212,26 +243,35 @@ services:
- AMF_FQDN=oai-amf - AMF_FQDN=oai-amf
- UDM_IPV4_ADDRESS=192.168.70.137 - UDM_IPV4_ADDRESS=192.168.70.137
- UDM_PORT=80 - UDM_PORT=80
- UDM_API_VERSION=v1 - UDM_API_VERSION=v2
- UDM_FQDN=oai-udm - UDM_FQDN=oai-udm
- UPF_IPV4_ADDRESS=192.168.70.134 - UPF_IPV4_ADDRESS=192.168.70.134
- UPF_FQDN_0=oai-spgwu - UPF_FQDN_0=oai-spgwu
- NRF_IPV4_ADDRESS=192.168.70.130 - NRF_IPV4_ADDRESS=192.168.70.130
- NRF_PORT=80 - NRF_PORT=80
- NRF_API_VERSION=v1 - NRF_API_VERSION=v1
- USE_LOCAL_SUBSCRIPTION_INFO=yes - USE_LOCAL_SUBSCRIPTION_INFO=yes #Set to yes if SMF uses local subscription information instead of from an UDM
- USE_NETWORK_INSTANCE=no #Set yes if network instance is to be used for given UPF
- NRF_FQDN=oai-nrf - NRF_FQDN=oai-nrf
- REGISTER_NRF=yes - REGISTER_NRF=yes
- DISCOVER_UPF=yes - DISCOVER_UPF=yes
- USE_FQDN_DNS=yes - USE_FQDN_DNS=yes
- DNN_RANGE1=12.1.1.2 - 12.1.1.128 - HTTP_VERSION=1 # Default: 1
- DNN_RANGE0=12.2.1.2 - 12.2.1.128 - UE_MTU=1500
- DNN_NI1=oai - DNN_NI0=oai
- TYPE0=IPv4
- DNN_RANGE0=12.1.1.2 - 12.1.1.253
- NSSAI_SST0=1
- NSSAI_SD0=0x1
- SESSION_AMBR_UL0=1000Mbps
- SESSION_AMBR_DL0=1000Mbps
- DEFAULT_CSCF_IPV4_ADDRESS=127.0.0.1 # only needed when ims is being used
- ENABLE_USAGE_REPORTING=no # Set yes if UE USAGE REPORTING is to be done at UPF
depends_on: depends_on:
- oai-nrf - oai-nrf
- oai-amf - oai-amf
volumes: volumes:
- ./smf-healthcheck.sh:/openair-smf/bin/smf-healthcheck.sh - ./healthscripts/smf-healthcheck.sh:/openair-smf/bin/smf-healthcheck.sh
healthcheck: healthcheck:
test: /bin/bash -c "/openair-smf/bin/smf-healthcheck.sh" test: /bin/bash -c "/openair-smf/bin/smf-healthcheck.sh"
interval: 10s interval: 10s
...@@ -258,17 +298,23 @@ services: ...@@ -258,17 +298,23 @@ services:
- MNC03=099 - MNC03=099
- TAC=1 - TAC=1
- GW_ID=1 - GW_ID=1
- THREAD_S1U_PRIO=80
- S1U_THREADS=8
- THREAD_SX_PRIO=81
- SX_THREADS=1
- THREAD_SGI_PRIO=80
- SGI_THREADS=8
- REALM=openairinterface.org - REALM=openairinterface.org
- ENABLE_5G_FEATURES=yes - ENABLE_5G_FEATURES=yes
- REGISTER_NRF=yes - REGISTER_NRF=yes
- USE_FQDN_NRF=no - USE_FQDN_NRF=yes
- UPF_FQDN_5G=oai-spgwu - UPF_FQDN_5G=oai-spgwu
- NRF_IPV4_ADDRESS=192.168.70.130 - NRF_IPV4_ADDRESS=192.168.70.130
- NRF_PORT=80 - NRF_PORT=80
- NRF_API_VERSION=v1 - NRF_API_VERSION=v1
- NRF_FQDN=oai-nrf - NRF_FQDN=oai-nrf
- NSSAI_SST_0=1 - NSSAI_SST_0=1
- NSSAI_SD_0=1 - NSSAI_SD_0=0x1
- DNN_0=oai - DNN_0=oai
depends_on: depends_on:
- oai-nrf - oai-nrf
...@@ -280,7 +326,7 @@ services: ...@@ -280,7 +326,7 @@ services:
- ALL - ALL
privileged: true privileged: true
volumes: volumes:
- ./spgwu-healthcheck.sh:/openair-spgwu-tiny/bin/spgwu-healthcheck.sh - ./healthscripts/spgwu-healthcheck.sh:/openair-spgwu-tiny/bin/spgwu-healthcheck.sh
healthcheck: healthcheck:
test: /bin/bash -c "/openair-spgwu-tiny/bin/spgwu-healthcheck.sh" test: /bin/bash -c "/openair-spgwu-tiny/bin/spgwu-healthcheck.sh"
interval: 10s interval: 10s
...@@ -290,12 +336,10 @@ services: ...@@ -290,12 +336,10 @@ services:
public_net: public_net:
ipv4_address: 192.168.70.134 ipv4_address: 192.168.70.134
oai-ext-dn: oai-ext-dn:
image: ubuntu:bionic image: trf-gen-cn5g:latest
privileged: true privileged: true
container_name: oai-ext-dn container_name: oai-ext-dn
entrypoint: /bin/bash -c \ entrypoint: /bin/bash -c \
"apt update; apt install -y iptables iproute2 iperf iperf3 iputils-ping;"\
"iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;"\
"ip route add 12.1.1.0/24 via 192.168.70.134 dev eth0; sleep infinity" "ip route add 12.1.1.0/24 via 192.168.70.134 dev eth0; sleep infinity"
depends_on: depends_on:
- oai-spgwu - oai-spgwu
...@@ -303,14 +347,14 @@ services: ...@@ -303,14 +347,14 @@ services:
public_net: public_net:
ipv4_address: 192.168.70.135 ipv4_address: 192.168.70.135
networks: networks:
# public_net:
# external:
# name: demo-oai-public-net
public_net: public_net:
external: driver: bridge
name: demo-oai-public-net name: demo-oai-public-net
# public_net: ipam:
# driver: bridge config:
# name: demo-oai-public-net - subnet: 192.168.70.128/26
# ipam: driver_opts:
# config: com.docker.network.bridge.name: "demo-oai"
# - subnet: 192.168.70.128/26
# driver_opts:
# com.docker.network.bridge.name: "demo-oai"
...@@ -151,10 +151,13 @@ CREATE TABLE `AuthenticationSubscription` ( ...@@ -151,10 +151,13 @@ CREATE TABLE `AuthenticationSubscription` (
-- --
INSERT INTO `AuthenticationSubscription` (`ueid`, `authenticationMethod`, `encPermanentKey`, `protectionParameterId`, `sequenceNumber`, `authenticationManagementField`, `algorithmId`, `encOpcKey`, `encTopcKey`, `vectorGenerationInHss`, `n5gcAuthMethod`, `rgAuthenticationInd`, `supi`) VALUES INSERT INTO `AuthenticationSubscription` (`ueid`, `authenticationMethod`, `encPermanentKey`, `protectionParameterId`, `sequenceNumber`, `authenticationManagementField`, `algorithmId`, `encOpcKey`, `encTopcKey`, `vectorGenerationInHss`, `n5gcAuthMethod`, `rgAuthenticationInd`, `supi`) VALUES
('208950000000031', '5G_AKA', '0C0A34601D4F07677303652C0462535B', '0C0A34601D4F07677303652C0462535B', '{\"sqn\": \"000000000020\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '8000', 'milenage', '63bfa50ee6523365ff14c1f45f88737d', NULL, NULL, NULL, NULL, '208950000000031'); ('2089900007487', '5G_AKA', 'fec86ba6eb707ed08905757b1bb44b8f', 'fec86ba6eb707ed08905757b1bb44b8f', '{\"sqn\": \"000000000000\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '8000', 'milenage', 'C42449363BBAD02B66D16BC975D77CC1', NULL, NULL, NULL, NULL, '2089900007487');
INSERT INTO `AuthenticationSubscription` (`ueid`, `authenticationMethod`, `encPermanentKey`, `protectionParameterId`, `sequenceNumber`, `authenticationManagementField`, `algorithmId`, `encOpcKey`, `encTopcKey`, `vectorGenerationInHss`, `n5gcAuthMethod`, `rgAuthenticationInd`, `supi`) VALUES
('208990000000001', '5G_AKA', 'fec86ba6eb707ed08905757b1bb44b8f', 'fec86ba6eb707ed08905757b1bb44b8f', '{\"sqn\": \"000000000000\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '8000', 'milenage', 'C42449363BBAD02B66D16BC975D77CC1', NULL, NULL, NULL, NULL, '208990000000001');
INSERT INTO `AuthenticationSubscription` (`ueid`, `authenticationMethod`, `encPermanentKey`, `protectionParameterId`, `sequenceNumber`, `authenticationManagementField`, `algorithmId`, `encOpcKey`, `encTopcKey`, `vectorGenerationInHss`, `n5gcAuthMethod`, `rgAuthenticationInd`, `supi`) VALUES INSERT INTO `AuthenticationSubscription` (`ueid`, `authenticationMethod`, `encPermanentKey`, `protectionParameterId`, `sequenceNumber`, `authenticationManagementField`, `algorithmId`, `encOpcKey`, `encTopcKey`, `vectorGenerationInHss`, `n5gcAuthMethod`, `rgAuthenticationInd`, `supi`) VALUES
('208990000000001', '5G_AKA', 'fec86ba6eb707ed08905757b1bb44b8f', 'fec86ba6eb707ed08905757b1bb44b8f', '{\"sqn\": \"000000000020\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '8000', 'milenage', 'C42449363BBAD02B66D16BC975D77CC1', NULL, NULL, NULL, NULL, '208990000000001'); ('208990000000002', '5G_AKA', 'fec86ba6eb707ed08905757b1bb44b8f', 'fec86ba6eb707ed08905757b1bb44b8f', '{\"sqn\": \"000000000000\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '8000', 'milenage', 'C42449363BBAD02B66D16BC975D77CC1', NULL, NULL, NULL, NULL, '208990000000002');
INSERT INTO `AuthenticationSubscription` (`ueid`, `authenticationMethod`, `encPermanentKey`, `protectionParameterId`, `sequenceNumber`, `authenticationManagementField`, `algorithmId`, `encOpcKey`, `encTopcKey`, `vectorGenerationInHss`, `n5gcAuthMethod`, `rgAuthenticationInd`, `supi`) VALUES
('208990000000003', '5G_AKA', 'fec86ba6eb707ed08905757b1bb44b8f', 'fec86ba6eb707ed08905757b1bb44b8f', '{\"sqn\": \"000000000000\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '8000', 'milenage', 'C42449363BBAD02B66D16BC975D77CC1', NULL, NULL, NULL, NULL, '208990000000003');
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -203,6 +206,19 @@ CREATE TABLE `SessionManagementSubscriptionData` ( ...@@ -203,6 +206,19 @@ CREATE TABLE `SessionManagementSubscriptionData` (
`3gppChargingCharacteristics` varchar(50) DEFAULT NULL `3gppChargingCharacteristics` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `SessionManagementSubscriptionData`
--
INSERT INTO `SessionManagementSubscriptionData` (`ueid`, `servingPlmnid`, `singleNssai`, `dnnConfigurations`) VALUES
('2089900007487', '20899', '{\"sst\": 1, \"sd\": \"1\"}','{\"oai\":{\"pduSessionTypes\":{ \"defaultSessionType\": \"IPV4\"},\"sscModes\": {\"defaultSscMode\": \"SSC_MODE_1\"},\"5gQosProfile\": {\"5qi\": 6,\"arp\":{\"priorityLevel\": 1,\"preemptCap\": \"NOT_PREEMPT\",\"preemptVuln\":\"NOT_PREEMPTABLE\"},\"priorityLevel\":1},\"sessionAmbr\":{\"uplink\":\"1000Mbps\", \"downlink\":\"1000Mbps\"},\"staticIpAddress\":[{\"ipv4Addr\": \"12.1.1.2\"}]}}');
INSERT INTO `SessionManagementSubscriptionData` (`ueid`, `servingPlmnid`, `singleNssai`, `dnnConfigurations`) VALUES
('208990000000001', '20899', '{\"sst\": 1, \"sd\": \"1\"}','{\"oai\":{\"pduSessionTypes\":{ \"defaultSessionType\": \"IPV4\"},\"sscModes\": {\"defaultSscMode\": \"SSC_MODE_1\"},\"5gQosProfile\": {\"5qi\": 6,\"arp\":{\"priorityLevel\": 1,\"preemptCap\": \"NOT_PREEMPT\",\"preemptVuln\":\"NOT_PREEMPTABLE\"},\"priorityLevel\":1},\"sessionAmbr\":{\"uplink\":\"1000Mbps\", \"downlink\":\"1000Mbps\"},\"staticIpAddress\":[{\"ipv4Addr\": \"12.1.1.2\"}]}}');
INSERT INTO `SessionManagementSubscriptionData` (`ueid`, `servingPlmnid`, `singleNssai`, `dnnConfigurations`) VALUES
('208990000000002', '20899', '{\"sst\": 1, \"sd\": \"1\"}','{\"oai\":{\"pduSessionTypes\":{ \"defaultSessionType\": \"IPV4\"},\"sscModes\": {\"defaultSscMode\": \"SSC_MODE_1\"},\"5gQosProfile\": {\"5qi\": 6,\"arp\":{\"priorityLevel\": 1,\"preemptCap\": \"NOT_PREEMPT\",\"preemptVuln\":\"NOT_PREEMPTABLE\"},\"priorityLevel\":1},\"sessionAmbr\":{\"uplink\":\"1000Mbps\", \"downlink\":\"1000Mbps\"},\"staticIpAddress\":[{\"ipv4Addr\": \"12.1.1.3\"}]}}');
INSERT INTO `SessionManagementSubscriptionData` (`ueid`, `servingPlmnid`, `singleNssai`, `dnnConfigurations`) VALUES
('208990000000003', '20899', '{\"sst\": 1, \"sd\": \"1\"}','{\"oai\":{\"pduSessionTypes\":{ \"defaultSessionType\": \"IPV4\"},\"sscModes\": {\"defaultSscMode\": \"SSC_MODE_1\"},\"5gQosProfile\": {\"5qi\": 6,\"arp\":{\"priorityLevel\": 1,\"preemptCap\": \"NOT_PREEMPT\",\"preemptVuln\":\"NOT_PREEMPTABLE\"},\"priorityLevel\":1},\"sessionAmbr\":{\"uplink\":\"1000Mbps\", \"downlink\":\"1000Mbps\"},\"staticIpAddress\":[{\"ipv4Addr\": \"12.1.1.4\"}]}}');
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment