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 version="1.0" encoding="UTF-8"?>
<ngc>
    <fwcfg local-http-service-ip="0.0.0.0"
           local-http-service-port="5001" />
	
    <!--AMFCfgComponent:
        amf-name: The name of the AMF node.
    -->
    <amfcfg amf-name="amf1.uranus.amf.5gc.mnc092.mcc466.3gppnetwork.org"
            mico-support-indication="0"
            t3512="60"
            t3502="30"
            amf-apiroot=""
            unreachable-timer="20"
            implicit-deregister-timer="300"
            amf-capacity="100"
            amf-info-profile="./xml/amfInfo.xml"
            default-paging-profile-id="1"
            paging-policy-profile="./xml/paging-policy.xml" />
	
    <!--NGAPComponent-Interface beteen AMF and RAN
     -->
    <ngap sctp-server-ip="192.168.20.52"
          sctp-server-port="38412" />
	
    <!--N11Component-Interface between AMF and SMF
     -->
    <n11 N11-http2-server-ip="192.168.110.52"
         N11-http2-server-port="81"
         N11-http2-client-ip="192.168.110.52"
         N11-http2-client-port="8011"
         smf-apiroot="" />
	
    <!--N12Component-Interface between AMF and AUSF
     -->
    <n12 auth-enabled="1"
         cipher-alg-order="0,1,2,3"
         integrity-alg-order="2,3,0,1"
         N12-http2-client-ip="192.168.120.52"
         N12-http2-client-port="8012"
         ausf-apiroot="" />
	
    <!--N8Component-Interface between AMF and UDM
     -->
    <n8 local-subscription-enabled="0"
        udm-am-profile="./xml/udm-am-subscription-data.xml"
        udm-smf-sel-profile="./xml/udm-smf-selection.xml"
        udm-ue-profile="./xml/udm-ue.xml"
        N8-http2-server-ip="192.168.80.52"
        N8-http2-server-port="88"
        N8-http2-client-ip="192.168.80.52"
        N8-http2-client-port="8008"
        udm-apiroot="" />
	
    <!--N15Component-Interface between AMF and PCF
     -->
    <n15 local-policy-enabled="1"
         pcf-am-profile="./xml/pcf-am-policy-data.xml"
         pcf-ue-profile="./xml/pcf-ue.xml"
         N15-http2-server-ip="192.168.150.52"
         N15-http2-server-port="85"
         N15-http2-client-ip="192.168.150.52"
         N15-http2-client-port="8015"
         pcf-apiroot="" />
	
    <!--NRFComponent-Interface between AMF and NRF
        nf-selection-mode: only support 0.
     -->
    <nrf nf-selection-mode="0"
         nf-sel-profile="./xml/nrf.xml"
         nrf-priority="1"
         nrf-capacity="200"
         nrf-heartBeat-Interval="20"
         nrf-http2-server-ip="192.168.120.33"
         nrf-http2-server-port="8001"
         nrf-http2-client-ip="192.168.120.33"
         nrf-http2-client-port="8009"
         nrf-apiroot="" />
	
    <!--N22Component-Interface between AMF and NSSF
     -->
    <n22 local-NSSF-enabled="1"
         N22-http2-server-ip="192.168.120.28"
         N22-http2-server-port="8012"
         N22-http2-client-ip="192.168.120.28"
         N22-http2-client-port="8009"
         nssf-apiroot="" />
</ngc>

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 version="1.0" encoding="utf-8"?>
<amfInfo-profiles>
    <amfInfo-profile name="amfInfo-profile" size="1">
        <!--Guami : mcc(3digtis) + mnc(2digits) + reginId(8bits,0-255) + setId(10bits, 0-1023 ) + point(6bits, 0-63), in decimal)-->
        <amfInfo-entry guami-index="1" mcc="466" mnc="92" regionId="1" setId="1" pointer="1">
            <snssai-list-entry snssai-list-size="3">
                <snssai-entry index="uRLLC" snssai-sst="1" snssai-sd=""/>
                <snssai-entry index="eMMB" snssai-sst="2" snssai-sd=""/>
                <snssai-entry index="mMTC" snssai-sst="3" snssai-sd=""/>
            </snssai-list-entry>
            <tac-list-entry tac-list-size="6">
                <tac-entry tac="80" snssai-index-list=""/>
                <tac-entry tac="81" snssai-index-list="eMMB,uRLLC,mMTC"/>
                <tac-entry tac="82" snssai-index-list="eMMB,uRLLC,mMTC"/>
                <tac-entry tac="83" snssai-index-list=""/>
                <tac-entry tac="84" snssai-index-list="eMMB,uRLLC,mMTC"/>
                <tac-entry tac="85" snssai-index-list="eMMB,uRLLC,mMTC"/>
            </tac-list-entry>
            <tracking-area-list-entry list-size="2">
                <tac-list-entry index="1" tac-list="80,81,82"/>
                <tac-list-entry index="2" tac-list="83,84,85"/>
            </tracking-area-list-entry>
        </amfInfo-entry>
    </amfInfo-profile>
</amfInfo-profiles>

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 version="1.0" encoding="UTF-8"?>
<paging-profiles>
    <!--
        id:  This id is an index, pointed to which paging profile should be used, it's configured in amf.conf (default-paging-profile-id).
        paging-strategy: 1     Based on last-visited TA to page UE.
                         2     Based on recent serverd RAN to page UE.
                         3     Based on all RAN(s) in AMF supported tracking area to page UE.
                         4     Based on neighbour RAN to page UE, not support for this version.
        paging-interfal: timer to retransmission paging messages.
     -->
    <paging-policy-profile name="paging-policy-proflie" size="6">
        <paging-profile id="1" paging-strategy="1" paging-interval="0" />
        <paging-profile id="2" paging-strategy="2" paging-interval="0" />
        <paging-profile id="3" paging-strategy="3" paging-interval="0" />
        <paging-profile id="4" paging-strategy="1,1" paging-interval="1" />
        <paging-profile id="5" paging-strategy="2,3" paging-interval="1" />
        <paging-profile id="6" paging-strategy="3,3,3" paging-interval="2" />
     </paging-policy-profile>
</paging-profiles>

nrf.xml

<?xml version="1.0" encoding="utf-8"?>
<nf-selection-profiles>
    <nf-selection-profile mcc="466" mnc="92" size="6">
        <nf-entry nf-type="smf" snssai-sst="1" snssai-sd="" serving-area="string" dnn="default" nf-ip="192.168.110.53" port="3123"/>
        <nf-entry nf-type="smf" snssai-sst="2" snssai-sd="" serving-area="string" dnn="public" nf-ip="192.168.110.53" port="3123"/>
        <nf-entry nf-type="smf" snssai-sst="3" snssai-sd="" serving-area="string" dnn="private" nf-ip="192.168.110.53" port="3123"/>
        <nf-entry nf-type="ausf" nf-ip="192.168.120.55" port="2133"/>
        <nf-entry nf-type="udm" nf-ip="192.168.80.56" port="3123"/>
        <nf-entry nf-type="pcf" nf-ip="192.168.150.54" port="7080"/>
    </nf-selection-profile>
</nf-selection-profiles>

pcf-am-policy-data.xml

<?xml version="1.0" encoding="UTF-8"?>
<pcf-profiles>
    <am-policy size="2">
        <am-policy-entry index="1" rfsp-index="123" service-area-type="allowed" max-allowed-tais="12" tai-size="2">
            <tai-entry tai-mcc="466" tai-mnc="92" tai-tac="11"/>
            <tai-entry tai-mcc="466" tai-mnc="92" tai-tac="12"/>
        </am-policy-entry>
        <am-policy-entry index="2" rfsp-index="123" service-area-type="non-allowed" tai-size="2">
            <tai-entry tai-mcc="466" tai-mnc="92" tai-tac="11"/>
            <tai-entry tai-mcc="466" tai-mnc="92" tai-tac="12"/>
        </am-policy-entry>
    </am-policy>
</pcf-profiles>

pcf-ue.xml

<?xml version="1.0" encoding="UTF-8"?>
<pcf-profiles>
    <user-list size="2">
        <ue-policy-data ue-supi="466920100001101" am-policy-index="1" />
        <ue-policy-data ue-supi="466920100001102" am-policy-index="1" />
        <ue-policy-data ue-supi="466920100001103" am-policy-index="1" />
    </user-list>
</pcf-profiles>

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-list-entry> 支持指定 SNSSAI。

问题 2:

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 网络设置的 “移动数据” 选项。