echo-e"\nChecking if SMF and UPF registered with nrf core network"
smf_registration_nrf=$(curl -s-X GET http://192.168.70.130/nnrf-nfm/v1/nf-instances?nf-type="SMF" | grep-o'192.168.70.133')
upf_registration_nrf=$(curl -s-X GET http://192.168.70.130/nnrf-nfm/v1/nf-instances?nf-type="UPF" | grep-o'192.168.66.134')
sample_registration=$(curl -s-X GET http://192.168.70.130/nnrf-nfm/v1/nf-instances?nf-type="SMF")
echo-e"\n${BLUE}For example: oai-smf Registration with oai-nrf can be checked on this url /nnrf-nfm/v1/nf-instances?nf-type='SMF' $sample_registration${NC}"
echo-e"${BLUE}Checking the if the containers are configured${NC}..."
if[[$2=='nrf'&&$3!='vpp-upf'&&$STATUS== 0 ]];then
echo-e"\nChecking if SMF and UPF registered with nrf core network"
smf_registration_nrf=$(curl -s-X GET http://192.168.70.130/nnrf-nfm/v1/nf-instances?nf-type="SMF" | grep-o'192.168.70.133')
upf_registration_nrf=$(curl -s-X GET http://192.168.70.130/nnrf-nfm/v1/nf-instances?nf-type="UPF" | grep-o'192.168.70.134')
sample_registration=$(curl -s-X GET http://192.168.70.130/nnrf-nfm/v1/nf-instances?nf-type="SMF")
echo-e"\n${BLUE}For example: oai-smf Registration with oai-nrf can be checked on this url /nnrf-nfm/v1/nf-instances?nf-type='SMF' $sample_registration${NC}"
vpp-upf: vpp-upf should be used (only works without nrf, no-nrf option1)
spgwu : spgwu should be used as upf (works with or without nrf, nrf or no-nrf option1)
Example 1 : ./core-network.sh start nrf spgwu
Example 2: ./core-network.sh start no-nrf vpp-upf
Example 1 : ./core-network.sh stop nrf spgwu
Example 2: ./core-network.sh stop no-nrf vpp-upf
```
- Before executing the script it is better to start capturing packets to see the message flow between smf <--> nrf <--> upf. The packets will be captured on **demo-oai** bridge which should be configured on the `docker-compose-host` machine.
...
...
@@ -214,7 +225,7 @@ To know how to configure the machine with the above requirements vist [pre-requi
Checking if SMF and UPF registered with nrf core network
For example: oai-smf Registration with oai-nrf can be checked on this url /nnrf-nfm/v1/nf-instances?nf-type='SMF'{"_links":{"item":[{"href":"192.168.70.133"}],"self":""}}
SMF and UPF are registered to NRF...
Core network is configured and healthy, total time taken 43187 milli seconds
oai-cn5g-fed/docker-compose$
```
```bah
oai-cn5g-fed/docker-compose$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c25db05aa023 ubuntu:bionic "/bin/bash -c ' apt …" 23 seconds ago Up 22 seconds oai-ext-dn
* The configuration parameters, are preconfigured in [docker-compose.yaml](../docker-compose/docker-compose.yaml) and [docker-compose-gnbsim.yaml](../docker-compose/docker-compose-gnbsim.yaml) and one can modify it for test.
oai-cn5g-fed/docker-compose$ docker-compose -f docker-compose-gnbsim.yaml up -d gnbsim
Creating gnbsim ... done
```
...
...
@@ -184,7 +206,7 @@ iperf Done.
Here we try some scaling test with gnbsim. There are additional IMSIs are added into database (208950000000031-208950000000040). Now we create few more gnbsim instances (4 more for now). We use same script to generate additional instance as follow -