# AMF Configuration AMF configuration files includes: - amf/amf1/config/amf.conf - amf/amf1/xml/amfInfo.xml - amf/amf1/xml/udm-am-subscription-data.xml - amf/amf1/xml/udm-smf-selection.xml - amf/amf1/xml/udm-ue.xml - amf/amf1/xml/nrf.xml ## amf.conf ```xml ``` ### AMF Name - default value is: `amf1.uranus.5gc.mnc092.mcc466.3gppnetwork.org` ### Enable AUSF and Security Flag - auth-enabled: default value is “0”, AUSF and security are not supported. 如果不启用 AUSF,则使用 AMF 本地的 AUSF 相关配置文件。 ### Embedded UDM Flag - local-subscription-enabled: default value is “1”, local configuration is used. 如果不启用 UDM,则使用 AMF 本地的 UDM 相关配置文件。 #### Subscriber Profile In the case of embedded UDM configured, user subscription information is configured in **udm-smf-selecton.xml, udm-am-subcription-data.xml** and **udm-ue.xml**. ### Embedded NRF Flag - nf-selection-mode: default value is “0”, local configuration is used. 如果不启用 NRF,则使用 AMF 本地的 NRF 相关配置文件。 #### SMF Selection In the case of embedded NRF configured, SMF is selected via the configuration in **udm-ue.xml**, **udm-smf-selection.xml** and **nrf.xml**. - List of the subscribed DNNs for the UE is configured in the file **udm-ue.xml** and **udm-smf-selection.xml.** - And the IP address and port of SMF are configured in the file **nrf.xml**. ### Embedded PCF Flag - local-policy-enabled: default value is “1”, local configuration is used. 如果不启用 PCF,则使用 AMF 本地的 PCF 相关配置文件 pcf-am-policy-data.xml 和 pcf-ue.xml。否则使用 PCF 的 am-policy-data.xml 配置文件。 ### Timer 3512 - t3512: default value is set to 60 seconds. ### Unreachable Timer - unreachable-timer: default value is added 4 minutes based on t3512. ### Implicit Deregister Timer - implicit-deregister-timer: default value is set to 300 minutes. ### AMF Capacity - amf-capacity: default value is set to 100. ### N2 Interface (NG-AP) - SCTP Server IP: local IP address. - SCTP Server Port: local port, default 38412. ### N8 Interface (HTTP2) - N8 HTTP2 Server IP: local IP address. - N8 HTTP2 Server Port: local port, default 88. - N8 HTTP2 Client IP: local IP address. - N8 HTTP2 Client Port: local port, default 8008. - UDM HTTP2 Server IP: remote IP address. - UDM HTTP2 Server Port: remote port, default 3123. ### N11 Interface (HTTP2) - HTTP2 Server IP: local IP address. - HTTP2 Server Port: local port, default 81. - HTTP2 Client IP: local IP address. - HTTP2 Client Port: local port, default 8011. - SMF HTTP2 Server IP: remote IP address. - SMF HTTP2 Server Port: remote port, default 80. ### N12 Interface (HTTP2) - N12 HTTP2 Client IP: local IP address. - N12 HTTP2 Client Port: local port, default 8012. - AUSF HTTP2 Server IP: remote IP address. - AUSF HTTP2 Server Port: remote port, default 2133. ### N15 Interface (HTTP2) - N15 HTTP2 Server IP: local IP address. - N15 HTTP2 Server Port: local port, default 85. - N15 HTTP2 Client IP: local IP address. - N15 HTTP2 Client Port: local port, default 8015. - PCF HTTP2 Server IP: remote IP address. - PCF HTTP2 Server Port: remote port, default 3123. ### Nnrf Interface (HTTP2) - NRF HTTP2 Server IP: local IP address. - NRF HTTP2 Server Port: local port, default 8001. - HTTP2 Client IP: local IP address. - HTTP2 Client Port: local port, default 8009. ## amfInfo.xml ```xml ``` ### Globally Unique AMF Identifier (GUAMI) default value is: - MCC (466) - MNC (92) - AMF Region ID (1111) - AMF Set ID (11) - AMF Pointer (12) ### AMF Supported Information default value is: - SNSSAI (SST=1, SD=null) - TAC (80, 81, 82, 83, 84, 85) - TAC-List 1 (80, 82, 82) - TAC-List 2 (83, 84, 85) ## paging-policy.xml ```xml ``` ## nrf.xml ```xml ``` ## pcf-am-policy-data.xml ```xml ``` ## pcf-ue.xml ```xml ``` ## TS 问题 1:SNSSAI 匹配失败。 ``` UID466920100001101 validateDnnAndSnssai... UID466920100001101 S-NSSAI is not requested by UE. UID466920100001101 getting the 0 allowed snssai UID466920100001101 System default S-NSSAI: 1ffffff UID466920100001101 Compare Snssai. Snssai: 1ffffff, subscribedSnssai: 1ffffff UID466920100001101 DNN is requested by UE. Compare Dnn. Dnn: private, subscribedDnn: default UID466920100001101 UE requested DNN mismatches with the subscription data. UID466920100001101 Compare Snssai. Snssai: 1ffffff, subscribedSnssai: 3ffffff UID466920100001101 Snssai mismatch! Try next one... UID466920100001101 Failed to validate DNN and Snssai !!! ``` 诊断:AMF 需要 amfInfo.xml `` 支持指定 SNSSAI。 问题 2: ```bash UID466920100001101 S-NSSAI is not requested by UE. UID466920100001101 allowedSnssaiList size is zeros UID466920100001101 Failed to validate DNN and Snssai !!! ``` 诊断:UE 请求的或 UE 在 UDM 上签约的 SNSSAI 没有配置在 AMF 中。 场景 1:AMF amfInfo.xml 没有配置相应的 SNSSAI。 场景 2:gNB 与 AMF 可用 SNSSAI 的交集不符合 UE 请求的要求。例如:NG Setup 带上来的 RAN Support SNSSAI 是 sst=1 和 sst=2,通过和 AMF 本地配置求交集算出 Available SNSSAI List 也是 sst=1 和 sst=2。但 UE Requested SNSSAI 是 sst=3。这时候 UE Request SNSSAI 不在 Avalable 的范围内,所以需要使用 UDM 分配的 SNSSAI,但 UDM 配置的 default-snssai-list 也是 sst=3,也不在 RAN Support SNSSAI 的范围内,所以会导致无法分配默认的 allowed snssai。 解决方法 1:gNB 配置 sst=3. 解决方法 2:修改 UDM 的 default-snssai-list 和 smfSelction,都改为符合范围的 sst=1 或者 sst=2。 问题 3:UE 没有上下行。 ``` UID466920100001101 DNN is requested by UE. Compare Dnn. Dnn: ims, subscribedDnn: default UID466920100001101 UE requested DNN mismatches with the subscription data. UID466920100001101 Failed to validate DNN and Snssai !!! ``` 诊断:打开 UE 网络设置的 “移动数据” 选项。