教養としての5GC(free5gc+UERANSIMで学ぶ5Gコアネットワーク)その1


# 1. free5gcとは

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/241184/5fb326f3-129b-13a0-c413-a957277c5bc9.png)


公式サイト
https://www.free5gc.org/

オープンソースの5GC(5G Core)です。台湾の国立交通大学が開発主導しているプロジェクトの様でかなり5GCとして色んな機能がサポートされており、お気軽に5Gの基地局・端末シュミレーター(UERANSIM)等と組み合わせて5GC通信を試す事ができます。と言われても5GCの前提知識がないと何がなんだか分からないと思いますが、そちらは別途以下の記事等を参考にしてください。

https://qiita.com/kuro227/items/f3b7b5d27dfc41849d58

超簡単に言うと、今現在(2021/9/1現在)日本の携帯電話事業者が提供している5Gサービスは正確には5G NSA(non-standalone)というシステムで、コアネットワーク側は5G EPCと呼ばれる4Gのコア(EPC)を5Gで使えるようにした物を使っています。5GCは5G専用のコアで5G RAN+5GCの組み合わせで真の5Gシステムといえる5G SA(standalone)が構成されます。最近ではLocal5Gというキャリアのネットワークを使わない工場内とか空港内とか閉鎖的環境で5G技術を使用して、DX推進しようという活発な動きもあります。Local5Gでも5G SAの場合はコアは5GCが使われます。

という訳で早速Installして使ってみましょう！

使用するVersionは以下の通りです。

```
free5GC version: v3.0.5
UERANSIM version 3.2.3
```

# 2. Install環境

Windows PC上にVirualBoxを入れて、VirualBox上でLinux(Ubuntsu)を動かし、Linux上で5GCを構築します。

VirtualBoxの入手先は[こちら](https://www.virtualbox.org/wiki/Downloads)
最新Versionは6.1.26の様ですが、今回は6.1.22を使ってます。最新のVirtualBoxでも動作すると思います。

インストールするUbuntsuのイメージ(ubuntu-20.04.3-live-server-amd64.iso)は[こちら](https://releases.ubuntu.com/20.04/ubuntu-20.04.3-live-server-amd64.iso)

<font color="Red">**注意:最新のUbuntsu入れるとKernel versionが新し過ぎてgtpモジュールのコンパイルが出来ません。なので20.4を使います。**</font>

```
使用システム（ホストPC）

OS 名:Microsoft Windows 10 Home
バージョン:10.0.19042 ビルド 19042
プロセッサ:AMD Ryzen 5 1600 (Six-Core Processor、3200 Mhz)
インストール済みの物理メモリ (RAM):32.0 GB
SSD:464GB

VirtualBox側（ゲスト)
メモリ1G
ディスク:10G
OS:ubuntu-20.04.3-live-server-amd64
```

# 3. Linux Install
適当にデフォルトのままでも動くのですが、後々のため（別VMにInstallするUERANSIMと通信させるため）にNICを追加しておきます。VirtualBoxの設定メニュー->ネットワーク->アダプター2のところでネットワークアダプターを有効化しておきます。

![vbox.PNG](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/241184/796c6cd8-dbe2-5ed6-2134-43bb8bc70f2b.png)

あとはダウンロードしたisoイメージを指定してあげてVMを起動して普通にLinuxをInstallします。Host PCからLinuxにつなげるためにInstall時にOpenSSHをONにしておきましょう。以下はhostnameをfree5gcにした場合の例です。ServerイメージなのでGUIなしです。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/241184/48f1b886-0590-1023-85dc-c77c3a89e719.png)

InstallしたらKernel versionを確認しておきましょう。5.8以上だとgtpモジュールのコンパイルが失敗します。free5gcの公式では5.0.0-23-genericにしろ書いてありますが、5.4.0-81-genericでも動作します。

```
q14537@free5gc:~$ uname -r
5.4.0-81-generic
```
また今回は2つ目のNICに静的にIPアドレスを付与しています。Defautl Gatewayにアドレスをいれると設定を書き換えないとインターネットに出られないかもしれません。enp0s8のgateway4に設定がある場合は以下の様にコメントアウトしてしまいましょう。

```yaml
q14537@free5gc:~$ cat /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
  ethernets:
    enp0s3:
      dhcp4: true
    enp0s8:
      addresses:
      - 192.168.56.103/24
        #      gateway4: 192.168.56.1
      nameservers:
        addresses: []
        search: []
  version: 2
```
# 4. free5gc Install

LinuxのInstallが終われば以下の公式インストラクションに従い、もろもろInstallします。Installの細かい事はインストラクション通りにコマンド打っていくだけなので割愛。

https://github.com/free5gc/free5gc/wiki/Installation

という訳であっという間に5GCの完成です。いやー早い。

free5GCがサポートしているの以下のNF(NetworkFunction(5GCの構成要素))です。

```
q14537@free5gc:~/free5gc/NFs$ ls -l
total 40
drwxrwxr-x 18 q14537 q14537 4096 Sep  1 14:58 amf
drwxrwxr-x 12 q14537 q14537 4096 Sep  1 14:58 ausf
drwxrwxr-x 12 q14537 q14537 4096 Sep  1 14:58 n3iwf
drwxrwxr-x 12 q14537 q14537 4096 Sep  1 14:58 nrf
drwxrwxr-x 13 q14537 q14537 4096 Sep  1 14:58 nssf
drwxrwxr-x 17 q14537 q14537 4096 Sep  1 14:58 pcf
drwxrwxr-x 14 q14537 q14537 4096 Sep  1 14:58 smf
drwxrwxr-x 15 q14537 q14537 4096 Sep  1 14:58 udm
drwxrwxr-x 10 q14537 q14537 4096 Sep  1 14:58 udr
drwxrwxr-x  8 q14537 q14537 4096 Sep  1 14:59 upf
```

冒頭のリンク先にも絵がありますが、5GCの簡単なネットワークは以下の様になっており用途別に様々なNFが定義されているのですが、free5gcでサポートしているの以下の青の四角で囲ったNFです。赤の部分は後程InstallするUERANSIMで疑似をしますが、free5gcにもテストコールのモジュールがついているのでそちらでも疑似できます。


![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/241184/2f5f4d77-33b0-d531-5e2f-1072a5f02c46.png)

詳しいNFの説明は以下も参考になります。

https://qiita.com/kuro227/items/9613052cf55468a12163



それではテストコールをしてみましょう！

# 5. コールテスト
インストールが終わったらtest.shというシェルスクリプトが用意されていますのでコールテストを行ってみましょう。以下の様に様々なコールフローのシナリオが用意されています。


```
q14537@free5gc:~/free5gc$ ./test.sh
Usage: ./test.sh [ TestRegistration | TestGUTIRegistration | TestServiceRequest | TestXnHandover | TestN2Handover | TestDeregistration | TestPDUSessionReleaseRequest | TestPaging | TestNon3GPP | TestReSynchronisation | TestDuplicateRegistration ]
```

まずは通常のRegistration。いわゆるUE(端末)が電源ONしてネットワークに登録され通信を行う事です。このTestRegistrationのシナリオでは5GCの立ち上げ->UE電源ON->認証->通信可能な状態に遷移->端末からインターネットにパケット送信->UE電源OFF->5GCシャットダウンまで自動に行われる様です。

```
q14537@free5gc:~/free5gc$ ./test.sh TestRegistration
[sudo] password for q14537:
```

以下実行結果。なんだかメッセージがいっぱいでて何がなんだかわからないと思いますが、やっている事は5GCのNF達を起動し、5GCネットワークを構築し、5GCに疑似基地局経由の疑似UEから認証し、パケットを送っているのです。

```

q14537@free5gc:~/free5gc$ ./test.sh
[sudo] password for q14537:
Usage: ./test.sh [ TestRegistration | TestGUTIRegistration | TestServiceRequest | TestXnHandover | TestN2Handover | TestDeregistration | TestPDUSessionReleaseRequest | TestPaging | TestNon3GPP | TestReSynchronisation | TestDuplicateRegistration ]
q14537@free5gc:~/free5gc$ ./test.sh TestRegistration
2021-09-02T13:33:00Z [INFO][UPF][Util] Config: /home/q14537/free5gc/NFs/upf/build/config/upfcfg.test.yaml
2021-09-02T13:33:00Z [INFO][UPF][Util] UPF config version [1.0.0]
2021-09-02T13:33:00Z [INFO][UPF][Util] Set log level: info
2021-09-02T13:33:00Z [INFO][UPF][Util] DNN routes added, main routing table:
2021-09-02T13:33:00Z [INFO][UPF][Util] DstIp               Gateway        Iface     Priority RtProto   Type
2021-09-02T13:33:00Z [INFO][UPF][Util] 60.60.0.0 /24       0.0.0.0        upfgtp    0        static    unicast
2021-09-02T13:33:00Z [INFO][UPF][Util] 10.200.200.0 /24    0.0.0.0        veth1     0        kernel    unicast
2021-09-02T13:33:07Z [INFO][NRF][Init] NRF Log level is set to [info] level
2021-09-02T13:33:07Z [INFO][LIB][Path] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][Path] set report call : false
2021-09-02T13:33:07Z [INFO][LIB][OAPI] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][OAPI] set report call : false
2021-09-02T13:33:07Z [INFO][LIB][MonDB] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][MonDB] set report call : false
2021-09-02T13:33:07Z [INFO][NRF][CFG] config version [1.0.0]
2021-09-02T13:33:07Z [INFO][NRF][Init] Server started
2021-09-02T13:33:07Z [INFO][NRF][Init] nrfconfig Info: Version[1.0.0] Description[NRF initial local configuration]
2021-09-02T13:33:07Z [INFO][NRF][Init] Binding addr: [127.0.0.10:8000]
2021-09-02T13:33:07Z [INFO][AMF][Init] AMF Log level is set to [info] level
2021-09-02T13:33:07Z [INFO][LIB][NAS] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][NAS] set report call : false
2021-09-02T13:33:07Z [INFO][LIB][NGAP] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][NGAP] set report call : false
2021-09-02T13:33:07Z [INFO][LIB][FSM] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][FSM] set report call : false
2021-09-02T13:33:07Z [INFO][LIB][Aper] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][Aper] set report call : false
2021-09-02T13:33:07Z [INFO][LIB][Path] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][Path] set report call : false
2021-09-02T13:33:07Z [INFO][LIB][OAPI] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][OAPI] set report call : false
2021-09-02T13:33:07Z [INFO][AMF][CFG] config version [1.0.0]
2021-09-02T13:33:07Z [INFO][AMF][Init] Server started
2021-09-02T13:33:07Z [INFO][AMF][Util] amfconfig Info: Version[1.0.0] Description[AMF initial local configuration]
2021-09-02T13:33:07Z [INFO][AMF][NGAP] Listen on 127.0.0.1:38412
2021-09-02T13:33:07Z [INFO][NRF][MGMT] Handle NFRegisterRequest
2021-09-02T13:33:07Z [INFO][NRF][MGMT] urilist update
2021-09-02T13:33:07Z [INFO][NRF][MGMT] Create NF Profile
2021-09-02T13:33:07Z [INFO][NRF][MGMT] Location header:  http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/e1638c23-2634-48bf-be5a-c98ef6bb6492
2021-09-02T13:33:07Z [INFO][NRF][GIN] | 201 |       127.0.0.1 | PUT     | /nnrf-nfm/v1/nf-instances/e1638c23-2634-48bf-be5a-c98ef6bb6492 |
2021-09-02T13:33:07Z [INFO][SMF][Init] SMF Log level is set to [info] level
2021-09-02T13:33:07Z [INFO][LIB][NAS] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][NAS] set report call : false
2021-09-02T13:33:07Z [INFO][LIB][NGAP] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][NGAP] set report call : false
2021-09-02T13:33:07Z [INFO][LIB][Aper] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][Aper] set report call : false
2021-09-02T13:33:07Z [INFO][LIB][Path] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][Path] set report call : false
2021-09-02T13:33:07Z [INFO][LIB][OAPI] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][OAPI] set report call : false
2021-09-02T13:33:07Z [INFO][LIB][PFCP] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][PFCP] set report call : false
2021-09-02T13:33:07Z [INFO][SMF][CFG] SMF config version [1.0.0]
2021-09-02T13:33:07Z [INFO][SMF][CFG] UE-Routing config version [1.0.0]
2021-09-02T13:33:07Z [INFO][SMF][CTX] smfconfig Info: Version[1.0.0] Description[SMF initial local configuration]
2021-09-02T13:33:07Z [INFO][SMF][CTX] Endpoints: [10.200.200.102]
2021-09-02T13:33:07Z [INFO][SMF][Init] Server started
2021-09-02T13:33:07Z [INFO][NRF][MGMT] Handle NFRegisterRequest
2021-09-02T13:33:07Z [INFO][NRF][MGMT] urilist update
2021-09-02T13:33:07Z [INFO][NRF][MGMT] Create NF Profile
2021-09-02T13:33:07Z [INFO][NRF][MGMT] Location header:  http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/fa2c4b3b-3de2-4d52-a6bc-ac7ee30dfcde
2021-09-02T13:33:07Z [INFO][NRF][GIN] | 201 |       127.0.0.1 | PUT     | /nnrf-nfm/v1/nf-instances/fa2c4b3b-3de2-4d52-a6bc-ac7ee30dfcde |
2021-09-02T13:33:07Z [INFO][SMF][Init] SMF Registration to NRF {fa2c4b3b-3de2-4d52-a6bc-ac7ee30dfcde SMF REGISTERED 0 0xc000541440 0xc000541480 [] []   [127.0.0.2] [] <nil> [] [] <nil> 0 0 0  <nil> <nil> <nil> <nil> 0xc000369c80 <nil> <nil> <nil> <nil> <nil> map[] <nil> false 0xc0005412c0 false false []}
2021-09-02T13:33:07Z [INFO][SMF][PFCP] Listen on 10.200.200.1:8805
2021-09-02T13:33:07Z [INFO][SMF][App] Send PFCP Association Request to UPF[10.200.200.101]
2021-09-02T13:33:07Z [INFO][UPF][Util] [PFCP] Handle PFCP association setup request
2021-09-02T13:33:07Z [INFO][UPF][Util] [PFCP] Association Setup Response
2021-09-02T13:33:07Z [INFO][LIB][PFCP] Remove Request Transaction [1]
2021-09-02T13:33:07Z [INFO][SMF][PFCP] In HandlePfcpAssociationSetupResponse
2021-09-02T13:33:07Z [INFO][SMF][PFCP] Handle PFCP Association Setup Response with NodeID[10.200.200.101]
2021-09-02T13:33:07Z [INFO][SMF][PFCP] UPF(10.200.200.101)[internet] setup association
2021-09-02T13:33:07Z [INFO][UDR][Init] UDR Log level is set to [info] level
2021-09-02T13:33:07Z [INFO][LIB][Path] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][Path] set report call : false
2021-09-02T13:33:07Z [INFO][LIB][OAPI] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][OAPI] set report call : false
2021-09-02T13:33:07Z [INFO][LIB][MonDB] set log level : info
2021-09-02T13:33:07Z [INFO][LIB][MonDB] set report call : false
2021-09-02T13:33:07Z [INFO][UDR][CFG] config version [1.0.0]
2021-09-02T13:33:07Z [INFO][UDR][Init] UDR Config Info: Version[1.0.0] Description[UDR initial local configuration]
2021-09-02T13:33:07Z [INFO][UDR][Init] Server started
2021-09-02T13:33:07Z [INFO][UDR][Util] udrconfig Info: Version[1.0.0] Description[UDR initial local configuration]
2021-09-02T13:33:07Z [INFO][NRF][MGMT] Handle NFRegisterRequest
2021-09-02T13:33:07Z [INFO][NRF][MGMT] urilist update
2021-09-02T13:33:07Z [INFO][NRF][MGMT] Create NF Profile
2021-09-02T13:33:07Z [INFO][NRF][MGMT] Location header:  http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/2d22c34c-301e-497a-8090-770246bf18d8
2021-09-02T13:33:07Z [INFO][NRF][GIN] | 201 |       127.0.0.1 | PUT     | /nnrf-nfm/v1/nf-instances/2d22c34c-301e-497a-8090-770246bf18d8 |
2021-09-02T13:33:08Z [INFO][PCF][Init] PCF Log level is set to [info] level
2021-09-02T13:33:08Z [INFO][LIB][Path] set log level : info
2021-09-02T13:33:08Z [INFO][LIB][Path] set report call : false
2021-09-02T13:33:08Z [INFO][LIB][OAPI] set log level : info
2021-09-02T13:33:08Z [INFO][LIB][OAPI] set report call : false
2021-09-02T13:33:08Z [INFO][PCF][CFG] config version [1.0.0]
2021-09-02T13:33:08Z [INFO][PCF][Init] Server started
2021-09-02T13:33:08Z [INFO][PCF][Util] pcfconfig Info: Version[1.0.0] Description[PCF initial local configuration]
2021-09-02T13:33:08Z [INFO][NRF][MGMT] Handle NFRegisterRequest
2021-09-02T13:33:08Z [INFO][NRF][MGMT] urilist update
2021-09-02T13:33:08Z [INFO][NRF][MGMT] Create NF Profile
2021-09-02T13:33:08Z [INFO][NRF][MGMT] Location header:  http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/1a977d01-da9e-4a1d-b7dc-fba57fdff178
2021-09-02T13:33:08Z [INFO][NRF][GIN] | 201 |       127.0.0.1 | PUT     | /nnrf-nfm/v1/nf-instances/1a977d01-da9e-4a1d-b7dc-fba57fdff178 |
2021-09-02T13:33:08Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:08Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=PCF&service-names=nudr-dr&target-nf-type=UDR |
2021-09-02T13:33:08Z [INFO][UDM][Init] UDM Log level is set to [info] level
2021-09-02T13:33:08Z [INFO][LIB][Path] set log level : info
2021-09-02T13:33:08Z [INFO][LIB][Path] set report call : false
2021-09-02T13:33:08Z [INFO][LIB][OAPI] set log level : info
2021-09-02T13:33:08Z [INFO][LIB][OAPI] set report call : false
2021-09-02T13:33:08Z [INFO][UDM][CFG] config version [1.0.0]
2021-09-02T13:33:08Z [INFO][UDM][Init] UDM Config Info: Version[1.0.0] Description[UDM initial local configuration]
2021-09-02T13:33:08Z [INFO][UDM][Init] Server started
2021-09-02T13:33:08Z [INFO][UDM][Util] udmconfig Info: Version[1.0.0] Description[UDM initial local configuration]
2021-09-02T13:33:08Z [INFO][NRF][MGMT] Handle NFRegisterRequest
2021-09-02T13:33:08Z [INFO][NRF][MGMT] urilist update
2021-09-02T13:33:08Z [INFO][NRF][MGMT] Create NF Profile
2021-09-02T13:33:08Z [INFO][NRF][MGMT] Location header:  http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/d0599b1c-f15a-4c90-bc49-d01b794b50d9
2021-09-02T13:33:08Z [INFO][NRF][GIN] | 201 |       127.0.0.1 | PUT     | /nnrf-nfm/v1/nf-instances/d0599b1c-f15a-4c90-bc49-d01b794b50d9 |
2021-09-02T13:33:08Z [INFO][NSSF][Init] NSSF Log level is set to [info] level
2021-09-02T13:33:08Z [INFO][LIB][Path] set log level : info
2021-09-02T13:33:08Z [INFO][LIB][Path] set report call : false
2021-09-02T13:33:08Z [INFO][LIB][OAPI] set log level : info
2021-09-02T13:33:08Z [INFO][LIB][OAPI] set report call : false
2021-09-02T13:33:08Z [INFO][NSSF][CFG] config version [1.0.0]
2021-09-02T13:33:08Z [INFO][NSSF][Init] Server started
2021-09-02T13:33:08Z [INFO][NRF][MGMT] Handle NFRegisterRequest
2021-09-02T13:33:08Z [INFO][NRF][MGMT] urilist update
2021-09-02T13:33:08Z [INFO][NRF][MGMT] Create NF Profile
2021-09-02T13:33:08Z [INFO][NRF][MGMT] Location header:  http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/6aba05a1-1a73-42de-8e19-07ad1e64e79b
2021-09-02T13:33:08Z [INFO][NRF][GIN] | 201 |       127.0.0.1 | PUT     | /nnrf-nfm/v1/nf-instances/6aba05a1-1a73-42de-8e19-07ad1e64e79b |
2021-09-02T13:33:08Z [INFO][AUSF][Init] AUSF Log level is set to [info] level
2021-09-02T13:33:08Z [INFO][LIB][Path] set log level : info
2021-09-02T13:33:08Z [INFO][LIB][Path] set report call : false
2021-09-02T13:33:08Z [INFO][LIB][OAPI] set log level : info
2021-09-02T13:33:08Z [INFO][LIB][OAPI] set report call : false
2021-09-02T13:33:08Z [INFO][AUSF][CFG] config version [1.0.0]
2021-09-02T13:33:08Z [INFO][AUSF][Init] Server started
2021-09-02T13:33:08Z [INFO][AUSF][Init] ausfconfig Info: Version[1.0.0] Description[AUSF initial local configuration]
ausf context =  &{{{0 0} {<nil>} map[] 0} {{0 0} {<nil>} map[] 0} 1ff00965-3595-4fe1-a8ab-198da9d72aec ausfGroup001 8000 127.0.0.9 127.0.0.9 http://127.0.0.9:8000 http http://127.0.0.10:8000 map[nausf-auth:{1ff00965-3595-4fe1-a8ab-198da9d72aec nausf-auth 0xc0003c06a0 http REGISTERED   0xc0003c0680  [] <nil> [] [] <nil> 0 0 0 <nil> <nil> }] [{208 93} {123 45}]  0xc00027b0e0}
2021-09-02T13:33:08Z [INFO][NRF][MGMT] Handle NFRegisterRequest
2021-09-02T13:33:08Z [INFO][NRF][MGMT] urilist update
2021-09-02T13:33:08Z [INFO][NRF][MGMT] Create NF Profile
2021-09-02T13:33:08Z [INFO][NRF][MGMT] Location header:  http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/1ff00965-3595-4fe1-a8ab-198da9d72aec
2021-09-02T13:33:08Z [INFO][NRF][GIN] | 201 |       127.0.0.1 | PUT     | /nnrf-nfm/v1/nf-instances/1ff00965-3595-4fe1-a8ab-198da9d72aec |
=== RUN   TestRegistration
2021-09-02T13:33:08Z [INFO][AMF][NGAP] [AMF] SCTP Accept from: 127.0.0.1:9487
2021-09-02T13:33:08Z [INFO][AMF][NGAP] Create a new NG connection for: 127.0.0.1:9487
2021-09-02T13:33:08Z [INFO][AMF][NGAP][127.0.0.1:9487] Handle NG Setup request
2021-09-02T13:33:08Z [INFO][AMF][NGAP][127.0.0.1:9487] Send NG-Setup response
2021-09-02T13:33:08Z [INFO][AMF][NGAP][127.0.0.1:9487] Handle Initial UE Message
2021-09-02T13:33:08Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Handle Registration Request
2021-09-02T13:33:08Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Authentication procedure
2021-09-02T13:33:08Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:08Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&target-nf-type=AUSF |
2021-09-02T13:33:08Z [INFO][AUSF][UeAuthPost] HandleUeAuthPostRequest
2021-09-02T13:33:08Z [INFO][AUSF][UeAuthPost] Serving network authorized
2021-09-02T13:33:08Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:08Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=AUSF&service-names=nudm-ueau&target-nf-type=UDM |
2021-09-02T13:33:08Z [INFO][UDM][UEAU] Handle GenerateAuthDataRequest
2021-09-02T13:33:08Z [INFO][LIB][3GPP] suciPart [suci 0 208 93 0 0 0 00007487]
2021-09-02T13:33:08Z [INFO][LIB][3GPP] scheme 0
2021-09-02T13:33:08Z [INFO][LIB][3GPP] SUPI type is IMSI
http://127.0.0.10:8000
2021-09-02T13:33:08Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:08Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=UDM&target-nf-type=UDR |
2021-09-02T13:33:08Z [INFO][UDR][DRepo] Handle QueryAuthSubsData
2021-09-02T13:33:08Z [INFO][UDR][GIN] | 200 |       127.0.0.1 | GET     | /nudr-dr/v1/subscription-data/imsi-2089300007487/authentication-data/authentication-subscription |
2021-09-02T13:33:08Z [INFO][UDR][DRepo] Handle ModifyAuthentication
2021-09-02T13:33:08Z [INFO][UDR][GIN] | 204 |       127.0.0.1 | PATCH   | /nudr-dr/v1/subscription-data/imsi-2089300007487/authentication-data/authentication-subscription |
AUTN = fb04da746ef380009296fe8251f8cfca
2021-09-02T13:33:08Z [INFO][UDM][GIN] | 200 |       127.0.0.1 | POST    | /nudm-ueau/v1/suci-0-208-93-0-0-0-00007487/security-information/generate-auth-data |
2021-09-02T13:33:08Z [INFO][AUSF][UeAuthPost] Add SuciSupiPair (suci-0-208-93-0-0-0-00007487, imsi-2089300007487) to map.
2021-09-02T13:33:08Z [INFO][AUSF][UeAuthPost] Use 5G AKA auth method
2021-09-02T13:33:08Z [INFO][AUSF][5gAkaAuth] XresStar = 3634353665373962613931656639373965363032326332313834643661666364
2021-09-02T13:33:08Z [INFO][AUSF][GIN] | 201 |       127.0.0.1 | POST    | /nausf-auth/v1/ue-authentications |
2021-09-02T13:33:08Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Send Authentication Request
2021-09-02T13:33:08Z [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Send Downlink Nas Transport
2021-09-02T13:33:08Z [INFO][AMF][NGAP][127.0.0.1:9487] Handle Uplink Nas Transport
2021-09-02T13:33:08Z [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1)
2021-09-02T13:33:08Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Handle Authentication Response
2021/09/02 13:33:09 http2: server connection error from 127.0.0.1:35170: connection error: PROTOCOL_ERROR
2021-09-02T13:33:09Z [INFO][AUSF][5gAkaAuth] Auth5gAkaComfirmRequest
2021-09-02T13:33:09Z [INFO][AUSF][5gAkaAuth] res*: 3634353665373962613931656639373965363032326332313834643661666364
Xres*: 3634353665373962613931656639373965363032326332313834643661666364
2021-09-02T13:33:09Z [INFO][AUSF][5gAkaAuth] 5G AKA confirmation succeeded
2021-09-02T13:33:09Z [INFO][UDM][UEAU] Handle ConfirmAuthDataRequest
2021-09-02T13:33:09Z [INFO][UDR][DRepo] Handle CreateAuthenticationStatus
2021-09-02T13:33:09Z [INFO][UDR][GIN] | 204 |       127.0.0.1 | PUT     | /nudr-dr/v1/subscription-data/imsi-2089300007487/authentication-data/authentication-status |
2021-09-02T13:33:09Z [INFO][UDM][GIN] | 201 |       127.0.0.1 | POST    | /nudm-ueau/v1/imsi-2089300007487/auth-events |
2021-09-02T13:33:09Z [INFO][AUSF][GIN] | 200 |       127.0.0.1 | PUT     | /nausf-auth/v1/ue-authentications/suci-0-208-93-0-0-0-00007487/5g-aka-confirmation |
2021-09-02T13:33:09Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Send Security Mode Command
2021-09-02T13:33:09Z [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Send Downlink Nas Transport
Security Header Type Integrity Protected With New 5g Nas Security Context
cmac value: 0x0fcc2f13
err <nil>
2021-09-02T13:33:09Z [INFO][AMF][NGAP][127.0.0.1:9487] Handle Uplink Nas Transport
2021-09-02T13:33:09Z [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1)
2021-09-02T13:33:09Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle Security Mode Complete
2021-09-02T13:33:09Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle InitialRegistration
2021-09-02T13:33:09Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:09Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&supi=imsi-2089300007487&target-nf-type=UDM |
2021-09-02T13:33:09Z [INFO][UDM][SDM] Handle GetNssai
2021-09-02T13:33:09Z [INFO][UDR][DRepo] Handle QueryAmData
2021-09-02T13:33:09Z [INFO][UDR][GIN] | 200 |       127.0.0.1 | GET     | /nudr-dr/v1/subscription-data/imsi-2089300007487/20893/provisioned-data/am-data?supported-features= |
2021-09-02T13:33:09Z [INFO][UDM][GIN] | 200 |       127.0.0.1 | GET     | /nudm-sdm/v1/imsi-2089300007487/nssai?plmn-id=20893 |
2021-09-02T13:33:09Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:09Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&supi=imsi-2089300007487&target-nf-type=UDM |
2021-09-02T13:33:09Z [INFO][UDM][UECM] Handle RegistrationAmf3gppAccess
2021-09-02T13:33:09Z [INFO][UDM][UECM] UEID: imsi-2089300007487
http://127.0.0.10:8000
2021-09-02T13:33:09Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:09Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=UDM&target-nf-type=UDR |
2021-09-02T13:33:09Z [INFO][UDR][DRepo] Handle CreateAmfContext3gpp
2021-09-02T13:33:09Z [INFO][UDR][GIN] | 204 |       127.0.0.1 | PUT     | /nudr-dr/v1/subscription-data/imsi-2089300007487/context-data/amf-3gpp-access |
2021-09-02T13:33:09Z [INFO][UDM][GIN] | 201 |       127.0.0.1 | PUT     | /nudm-uecm/v1/imsi-2089300007487/registrations/amf-3gpp-access |
2021-09-02T13:33:09Z [INFO][UDM][SDM] Handle GetAmData
2021-09-02T13:33:09Z [INFO][UDR][DRepo] Handle QueryAmData
2021-09-02T13:33:09Z [INFO][UDR][GIN] | 200 |       127.0.0.1 | GET     | /nudr-dr/v1/subscription-data/imsi-2089300007487/20893/provisioned-data/am-data?supported-features=20893 |
2021-09-02T13:33:09Z [INFO][UDM][GIN] | 200 |       127.0.0.1 | GET     | /nudm-sdm/v1/imsi-2089300007487/am-data?plmn-id=20893 |
2021-09-02T13:33:09Z [INFO][UDM][SDM] Handle GetSmfSelectData
http://127.0.0.10:8000
2021-09-02T13:33:09Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:09Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=UDM&target-nf-type=UDR |
2021-09-02T13:33:09Z [INFO][UDR][DRepo] Handle QuerySmfSelectData
2021-09-02T13:33:09Z [INFO][UDR][GIN] | 200 |       127.0.0.1 | GET     | /nudr-dr/v1/subscription-data/imsi-2089300007487/20893/provisioned-data/smf-selection-subscription-data?supported-features= |
2021-09-02T13:33:09Z [INFO][UDM][GIN] | 200 |       127.0.0.1 | GET     | /nudm-sdm/v1/imsi-2089300007487/smf-select-data?plmn-id=20893 |
2021-09-02T13:33:09Z [INFO][UDM][SDM] Handle GetUeContextInSmfData
http://127.0.0.10:8000
2021-09-02T13:33:09Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:09Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=UDM&target-nf-type=UDR |
2021-09-02T13:33:09Z [INFO][UDR][DRepo] Handle QuerySmfRegList
2021-09-02T13:33:09Z [INFO][UDR][GIN] | 200 |       127.0.0.1 | GET     | /nudr-dr/v1/subscription-data/imsi-2089300007487/context-data/smf-registrations?supported-features= |
2021-09-02T13:33:09Z [INFO][UDM][GIN] | 200 |       127.0.0.1 | GET     | /nudm-sdm/v1/imsi-2089300007487/ue-context-in-smf-data |
2021-09-02T13:33:09Z [INFO][UDM][SDM] Handle Subscribe
http://127.0.0.10:8000
2021-09-02T13:33:09Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:09Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=UDM&target-nf-type=UDR |
2021-09-02T13:33:09Z [INFO][UDR][DRepo] Handle CreateSdmSubscriptions
2021-09-02T13:33:09Z [INFO][UDR][GIN] | 201 |       127.0.0.1 | POST    | /nudr-dr/v1/subscription-data/imsi-2089300007487/context-data/sdm-subscriptions |
2021-09-02T13:33:09Z [INFO][UDM][GIN] | 201 |       127.0.0.1 | POST    | /nudm-sdm/v1/imsi-2089300007487/sdm-subscriptions |
2021-09-02T13:33:09Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:09Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&supi=imsi-2089300007487&target-nf-type=PCF |
2021-09-02T13:33:09Z [INFO][PCF][Ampolicy] Handle AM Policy Create Request
2021-09-02T13:33:09Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:09Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=PCF&target-nf-type=UDR |
2021-09-02T13:33:09Z [INFO][UDR][DRepo] Handle PolicyDataUesUeIdAmDataGet
2021-09-02T13:33:09Z [INFO][UDR][GIN] | 200 |       127.0.0.1 | GET     | /nudr-dr/v1/policy-data/ues/imsi-2089300007487/am-data |
2021-09-02T13:33:09Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:09Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?guami=%7B%22plmnId%22%3A%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D%2C%22amfId%22%3A%22cafe00%22%7D&requester-nf-type=PCF&target-nf-type=AMF |
2021-09-02T13:33:09Z [INFO][PCF][GIN] | 201 |       127.0.0.1 | POST    | /npcf-am-policy-control/v1/policies |
2021-09-02T13:33:09Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Send Registration Accept
2021-09-02T13:33:09Z [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Send Initial Context Setup Request
2021-09-02T13:33:09Z [INFO][AMF][NGAP][127.0.0.1:9487] Handle Initial Context Setup Response
2021-09-02T13:33:09Z [INFO][NAS][Message] Encode ExtendedProtocolConfigurationOptions in EncodePDUSessionEstablishmentRequest
2021-09-02T13:33:09Z [INFO][AMF][NGAP][127.0.0.1:9487] Handle Uplink Nas Transport
2021-09-02T13:33:09Z [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1)
2021-09-02T13:33:09Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle Registration Complete
2021-09-02T13:33:09Z [INFO][AMF][NGAP][127.0.0.1:9487] Handle Uplink Nas Transport
2021-09-02T13:33:09Z [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1)
2021-09-02T13:33:09Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle UL NAS Transport
2021-09-02T13:33:09Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Transport 5GSM Message to SMF
2021-09-02T13:33:09Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Select SMF [snssai: {Sst:1 Sd:010203}, dnn: internet]
2021-09-02T13:33:09Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:09Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&target-nf-type=NSSF |
2021-09-02T13:33:09Z [INFO][NSSF][NsSelect] Handle NSSelectionGet
2021-09-02T13:33:09Z [INFO][NSSF][GIN] | 200 |       127.0.0.1 | GET     | /nnssf-nsselection/v1/network-slice-information?nf-id=e1638c23-2634-48bf-be5a-c98ef6bb6492&nf-type=AMF&slice-info-request-for-pdu-session=%7B%22sNssai%22%3A%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D%2C%22roamingIndication%22%3A%22NON_ROAMING%22%7D |
2021-09-02T13:33:09Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:09Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?dnn=internet&requester-nf-type=AMF&service-names=nsmf-pdusession&snssais=%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D&target-nf-type=SMF&target-plmn-list=%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D |
2021-09-02T13:33:09Z [INFO][SMF][PduSess] Recieve Create SM Context Request
2021-09-02T13:33:09Z [INFO][SMF][PduSess] In HandlePDUSessionSMContextCreate
2021-09-02T13:33:09Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:09Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=SMF&target-nf-type=UDM |
2021-09-02T13:33:09Z [INFO][SMF][PduSess] Send NF Discovery Serving UDM Successfully
2021-09-02T13:33:09Z [INFO][UDM][SDM] Handle GetSmData
2021-09-02T13:33:09Z [INFO][UDM][SDM] getSmDataProcedure: SUPI[imsi-2089300007487] PLMNID[20893] DNN[internet] SNssai[{"sst":1,"sd":"010203"}]
2021-09-02T13:33:09Z [INFO][UDR][DRepo] Handle QuerySmData
2021-09-02T13:33:09Z [INFO][UDR][GIN] | 200 |       127.0.0.1 | GET     | /nudr-dr/v1/subscription-data/imsi-2089300007487/20893/provisioned-data/sm-data?single-nssai=%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D |
2021-09-02T13:33:09Z [INFO][UDM][GIN] | 200 |       127.0.0.1 | GET     | /nudm-sdm/v1/imsi-2089300007487/sm-data?dnn=internet&plmn-id=20893&single-nssai=%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D |
2021-09-02T13:33:09Z [INFO][SMF][GSM] In HandlePDUSessionEstablishmentRequest
2021-09-02T13:33:09Z [INFO][NAS][Convert] ProtocolOrContainerList:  [0xc00083d4a0 0xc00083d4e0 0xc00083d520]
2021-09-02T13:33:09Z [INFO][SMF][GSM] Protocol Configuration Options
2021-09-02T13:33:09Z [INFO][SMF][GSM] &{[0xc00083d4a0 0xc00083d4e0 0xc00083d520]}
2021-09-02T13:33:09Z [INFO][SMF][GSM] Didn't Implement container type IPAddressAllocationViaNASSignallingUL
2021-09-02T13:33:09Z [INFO][SMF][PduSess] PCF Selection for SMContext SUPI[imsi-2089300007487] PDUSessionID[10]
2021-09-02T13:33:09Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:09Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=SMF&target-nf-type=PCF |
2021-09-02T13:33:09Z [INFO][PCF][SMpolicy] Handle CreateSmPolicy
2021-09-02T13:33:09Z [INFO][UDR][DRepo] Handle PolicyDataUesUeIdSmDataGet
2021-09-02T13:33:09Z [INFO][UDR][GIN] | 200 |       127.0.0.1 | GET     | /nudr-dr/v1/policy-data/ues/imsi-2089300007487/sm-data?dnn=internet&snssai=%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D |
2021-09-02T13:33:09Z [INFO][PCF][GIN] | 201 |       127.0.0.1 | POST    | /npcf-smpolicycontrol/v1/sm-policies |
2021-09-02T13:33:09Z [INFO][SMF][PduSess] SUPI[imsi-2089300007487] has no pre-config route
2021-09-02T13:33:09Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest
2021-09-02T13:33:09Z [INFO][NRF][GIN] | 200 |       127.0.0.1 | GET     | /nnrf-disc/v1/nf-instances?requester-nf-type=SMF&target-nf-instance-id=e1638c23-2634-48bf-be5a-c98ef6bb6492&target-nf-type=AMF |
2021-09-02T13:33:09Z [INFO][SMF][Consumer] SendNFDiscoveryServingAMF ok
2021-09-02T13:33:09Z [INFO][SMF][GIN] | 201 |       127.0.0.1 | POST    | /nsmf-pdusession/v1/sm-contexts |
2021-09-02T13:33:09Z [INFO][UPF][Util] [PFCP] Handle PFCP session establishment request
2021-09-02T13:33:09Z [INFO][UPF][Util] [PFCP] Session Establishment Response
2021-09-02T13:33:09Z [INFO][SMF][PFCP] In HandlePfcpSessionEstablishmentResponse
&{1000 Kbps 1000 Kbps}
2021-09-02T13:33:09Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] create smContext[pduSessionID: 10] Success
2021-09-02T13:33:09Z [INFO][LIB][PFCP] Remove Request Transaction [2]
2021-09-02T13:33:09Z [INFO][AMF][Producer] Handle N1N2 Message Transfer Request
2021-09-02T13:33:09Z [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Send PDU Session Resource Setup Request
2021-09-02T13:33:09Z [INFO][AMF][GIN] | 200 |       127.0.0.1 | POST    | /namf-comm/v1/ue-contexts/imsi-2089300007487/n1-n2-messages |
2021-09-02T13:33:09Z [INFO][AMF][NGAP][127.0.0.1:9487] Handle PDU Session Resource Setup Response
2021-09-02T13:33:09Z [INFO][SMF][PduSess] Recieve Update SM Context Request
2021-09-02T13:33:09Z [INFO][SMF][PduSess] In HandlePDUSessionSMContextUpdate
2021-09-02T13:33:09Z [INFO][UPF][Util] [PFCP] Handle PFCP session modification request
2021-09-02T13:33:09Z [INFO][UPF][Util] [PFCP] Session Modification Response
2021-09-02T13:33:09Z [INFO][LIB][PFCP] Remove Request Transaction [3]
2021-09-02T13:33:09Z [INFO][SMF][PFCP] In HandlePfcpSessionModificationResponse
2021-09-02T13:33:09Z [INFO][SMF][PduSess] [SMF] PFCP Modification Resonse Accept
2021-09-02T13:33:09Z [INFO][SMF][PFCP] PFCP Session Modification Success[1]
2021-09-02T13:33:09Z [INFO][SMF][GIN] | 200 |       127.0.0.1 | POST    | /nsmf-pdusession/v1/sm-contexts/urn:uuid:9e539456-ad06-4f25-825e-de03b609a611/modify |
2021-09-02T13:33:11Z [INFO][NRF][Init] Terminating NRF...
2021-09-02T13:33:11Z [INFO][NRF][Init] NRF terminated
2021-09-02T13:33:11Z [INFO][AMF][Init] Terminating AMF...
2021-09-02T13:33:11Z [INFO][AMF][Consumer] [AMF] Send Deregister NFInstance
2021-09-02T13:33:11Z [INFO][NRF][MGMT] Handle NFDeregisterRequest
2021-09-02T13:33:11Z [INFO][AMF][NGAP] Handle SCTP Notification[addr: <nil>]
2021-09-02T13:33:11Z [INFO][AMF][NGAP][127.0.0.1:9487] SCTP_SHUTDOWN_EVENT notification, close the connection
2021-09-02T13:33:11Z [INFO][AMF][NGAP][127.0.0.1:9487] Remove RAN Context[ID: <PlmnID: {Mcc:208 Mnc:93}, GNbID: 000102>]
2021-09-02T13:33:11Z [INFO][AMF][NGAP] Handle SCTP Notification[addr: <nil>]
2021-09-02T13:33:11Z [WARN][AMF][NGAP] RAN context has been removed[addr: <nil>]
2021-09-02T13:33:12Z [INFO][NRF][GIN] | 204 |       127.0.0.1 | DELETE  | /nnrf-nfm/v1/nf-instances/e1638c23-2634-48bf-be5a-c98ef6bb6492 |
2021-09-02T13:33:12Z [INFO][AMF][Init] [AMF] Deregister from NRF successfully
2021-09-02T13:33:12Z [INFO][AMF][Init] Send AMF Status Indication to Notify RANs due to AMF terminating
2021-09-02T13:33:12Z [INFO][AMF][NGAP] Close SCTP server...
2021-09-02T13:33:12Z [INFO][AMF][NGAP] SCTP server closed
2021-09-02T13:33:12Z [INFO][AMF][Init] AMF terminated
2021-09-02T13:33:12Z [INFO][SMF][Init] Terminating SMF...
2021-09-02T13:33:12Z [INFO][SMF][Consumer] Send Deregister NFInstance
2021-09-02T13:33:12Z [INFO][NRF][MGMT] Handle NFDeregisterRequest
2021-09-02T13:33:13Z [INFO][NRF][GIN] | 204 |       127.0.0.1 | DELETE  | /nnrf-nfm/v1/nf-instances/fa2c4b3b-3de2-4d52-a6bc-ac7ee30dfcde |
2021-09-02T13:33:13Z [INFO][SMF][Init] Deregister from NRF successfully
2021-09-02T13:33:13Z [INFO][UDR][Init] Terminating UDR...
2021-09-02T13:33:13Z [INFO][UDR][Consumer] Send Deregister NFInstance
2021-09-02T13:33:13Z [INFO][NRF][MGMT] Handle NFDeregisterRequest
2021-09-02T13:33:14Z [INFO][NRF][GIN] | 204 |       127.0.0.1 | DELETE  | /nnrf-nfm/v1/nf-instances/2d22c34c-301e-497a-8090-770246bf18d8 |
2021-09-02T13:33:14Z [INFO][UDR][Init] Deregister from NRF successfully
2021-09-02T13:33:14Z [INFO][UDR][Init] UDR terminated
2021-09-02T13:33:14Z [INFO][PCF][Init] Terminating PCF...
2021-09-02T13:33:14Z [INFO][PCF][Consumer] Send Deregister NFInstance
2021-09-02T13:33:14Z [INFO][NRF][MGMT] Handle NFDeregisterRequest
2021-09-02T13:33:15Z [INFO][NRF][GIN] | 204 |       127.0.0.1 | DELETE  | /nnrf-nfm/v1/nf-instances/1a977d01-da9e-4a1d-b7dc-fba57fdff178 |
2021-09-02T13:33:15Z [INFO][PCF][Init] Deregister from NRF successfully
2021-09-02T13:33:15Z [INFO][PCF][Init] PCF terminated
2021-09-02T13:33:15Z [INFO][UDM][Init] Terminating UDM...
2021-09-02T13:33:15Z [INFO][UDM][Consumer] Send Deregister NFInstance
2021-09-02T13:33:15Z [INFO][NRF][MGMT] Handle NFDeregisterRequest
2021-09-02T13:33:16Z [INFO][NRF][GIN] | 204 |       127.0.0.1 | DELETE  | /nnrf-nfm/v1/nf-instances/d0599b1c-f15a-4c90-bc49-d01b794b50d9 |
2021-09-02T13:33:16Z [INFO][UDM][Init] Deregister from NRF successfully
2021-09-02T13:33:16Z [INFO][UDM][Init] UDM terminated
2021-09-02T13:33:16Z [INFO][NSSF][Init] Terminating NSSF...
2021-09-02T13:33:16Z [INFO][NSSF][App] Send Deregister NFInstance
2021-09-02T13:33:16Z [INFO][NRF][MGMT] Handle NFDeregisterRequest
2021-09-02T13:33:17Z [INFO][NRF][GIN] | 204 |       127.0.0.1 | DELETE  | /nnrf-nfm/v1/nf-instances/6aba05a1-1a73-42de-8e19-07ad1e64e79b |
2021-09-02T13:33:17Z [INFO][NSSF][Init] Deregister from NRF successfully
2021-09-02T13:33:17Z [INFO][NSSF][Init] NSSF terminated
2021-09-02T13:33:17Z [INFO][AUSF][Init] Terminating AUSF...
2021-09-02T13:33:17Z [INFO][AUSF][App] Send Deregister NFInstance
2021-09-02T13:33:17Z [INFO][NRF][MGMT] Handle NFDeregisterRequest
2021-09-02T13:33:18Z [INFO][NRF][GIN] | 204 |       127.0.0.1 | DELETE  | /nnrf-nfm/v1/nf-instances/1ff00965-3595-4fe1-a8ab-198da9d72aec |
2021-09-02T13:33:18Z [INFO][AUSF][Init] Deregister from NRF successfully
2021-09-02T13:33:18Z [INFO][AUSF][Init] AUSF terminated
--- PASS: TestRegistration (9.36s)
PASS
ok      test    11.008s
2021-09-02T13:33:21Z [INFO][UPF][Util] Removing DNN routes
ls: cannot access '*sslkey.log': No such file or directory

```
# 6. 最後に

ログの最後に

```
--- PASS: TestRegistration (9.36s)
PASS
ok      test    11.008s
```
と出ていますので無事コールテスト終了です。お疲れ様でした。

え、で？

って思ったあなた。実はfree5gcは、これだけで満足してしまうのはとてももったいない程のよく出来たソフトなのです！次は5GCのコールフロー（呼処理）を細かく見ていきましょう。

その２に続きます。

https://qiita.com/wzm/items/e3eb73835005ed7e8702