Commit dbde6674 authored by Iztok Juvancic's avatar Iztok Juvancic
Browse files

Merge branch 'TTF_T048' of https://forge.etsi.org/rep/int/5g-core/nas into TTF_T048

parents 1441327d bb22cd3e
Loading
Loading
Loading
Loading
−164 B (3.97 KiB)

File changed.

No diff preview for this file type.

+8 −5
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
NGAP_Pics.PICS_NGAP_AMF_IUT    := true
NGAP_Pics.PICS_NGAP_GNB_IUT    := false

LibNGAP_Pics.PICS_OFFLINE_MODE := false # true for offline mode with pcap files, false for online mode with SCTP server
LibNGAP_Pics.PICS_OFFLINE_MODE := true # true for offline mode with pcap files, false for online mode with SCTP server

LibNGAP_Pixits.PX_NAS_MCC          := '999'H
LibNGAP_Pixits.PX_NAS_MNC          := '70'H
@@ -66,11 +66,12 @@ LogEventTypes:= Yes
# In this section you can specify parameters that are passed to Test Ports.

# Open5GS AMF IP and port as listener
system.NGAP_AMF.params := "NGAP/SCTP(server=127.0.0.5,port=38412,debug=1)"
#system.NGAP_AMF.params := "NGAP/SCTP(server=127.0.0.5,port=38412,debug=1)"

# Open5GS pcap files
# Do not forget to set LibNGAP_Pics.PICS_OFFLINE_MODE to true
#system.NGAP_AMF.params := "NGAP/SCTP_FILE/IP_OFFLINE/PCAP_FILE(file=../captures/ttcn_5g_ngap.pcapng)" # Linux cooked capture v2, no Ethernet layer
#system.NGAP_AMF.params := "NGAP/SCTP_FILE/IP_OFFLINE/ETH(mac_src=8c554ac1eee0,mac_dst=8c554ac1eee1)/PCAP_FILE(file=../captures/TC_NGAP_AMF_PDU_01.pcap)" # regular pcap with Ethernet layer
system.NGAP_AMF.params := "NGAP/SCTP_FILE/IP_OFFLINE/ETH(mac_src=8c554ac1eee0,mac_dst=8c554ac1eee1)/PCAP_FILE(file=../captures/TC_NGAP_AMF_PDU_01.pcap)" # regular pcap with Ethernet layer

[DEFINE]
# In this section you can create macro definitions,
@@ -98,7 +99,7 @@ system.NGAP_AMF.params := "NGAP/SCTP(server=127.0.0.5,port=38412,debug=1)"
#AtsImsIot_TestControl.control

# Verify that the IUT can send a  PDU SESSION RESOURCE SETUP REQUEST with at least one PDU session resource list to established PDU session.
#NGAP_TestCases.TC_NGAP_AMF_PDU_01
NGAP_TestCases.TC_NGAP_AMF_PDU_01
# Verify that the IUT can send a  PDU_SESSION_RESOURCE_RELEASE_COMMAND to release PDU session.
#NGAP_TestCases.TC_NGAP_AMF_PDU_02
# Verify that the IUT can send a  PDU_SESSION_RESOURCE_MODIFY_REQUEST to modify PDU session.
@@ -153,12 +154,14 @@ system.NGAP_AMF.params := "NGAP/SCTP(server=127.0.0.5,port=38412,debug=1)"
#NGAP_TestCases.TC_NGAP_AMF_MMP_09

# Verify that the IUT can send an DOWNLINK NAS TRANSPORT message to carry NAS information over the NG interface.
NGAP_TestCases.TC_NGAP_AMF_NAS_01
#NGAP_TestCases.TC_NGAP_AMF_NAS_01

# Verify that the AMF node successfully processes a NG SETUP REQEST message that contains mandatory IEs and answers with NG SETUP RESPONSE to acknowledge the setup.
#NGAP_TestCases.TC_NGAP_AMF_IMP_01
# Verify that the AMF node successfully processes an NG_SETUP_REQUEST message containing the PLMN identity, TAC, supported slice IEs and Extended RAN Node Name, and responds with an NG_SETUP_RESPONSE message to acknowledge the setup.
#NGAP_TestCases.TC_NGAP_AMF_IMP_01_02
# Verify that the AMF with IAB support successfully processes an NG_SETUP_REQUEST message containing the PLMN identity, TAC and supported slice IEs, and responds with an NG_SETUP_RESPONSE message containing IAB Supported IE to acknowledge the setup."
#NGAP_TestCases.TC_NGAP_AMF_IMP_01_03
# Verify that the AMF node successfully processes a NG SETUP REQEST message that contains mandatory IEs and answers with NG SETUP RESPONSE to acknowledge the setup.
#NGAP_TestCases.TC_NGAP_AMF_IMP_02
# Verify that the AMF node successfully processes a NG SETUP REQEST message with optional field UE Retention Information and answers with NG SETUP RESPONSE to acknowledge the setup.
+36 −60
Original line number Diff line number Diff line
@@ -663,7 +663,7 @@ Package TP_AMF {
        
        TP Id TP_5GNAS_AMF_REG_ACC_01 
        
        Test objective "Verify that the IUT sends a REGISTRATION_ACCEPT message containing the 5GS registration result, TAI list, 5G-GUTI and T3512 when initial registration is accepted by the network."
        Test objective "Verify that, after successful completion of the initial registration procedure over 3GPP access, the IUT sends a REGISTRATION_ACCEPT message containing the 5GS registration result, TAI list, 5G-GUTI and T3512 value."
        
        Reference 
            "ETSI TS 124 501 [1], Clauses 5.5.1.2.4 and 8.2.7" 
@@ -685,8 +685,7 @@ Package TP_AMF {
                            security_header_type set to NOT_SECURITY_PROTECTED,
                            message_type set to REGISTRATION_REQUEST,
                            5GS_registration_type containing
                                5GS_registration_type_value set to INITIAL_REGISTRATION,
                                FOR indicating value 1;, //Follow-on request pending
                                5GS_registration_type_value set to INITIAL_REGISTRATION;,
                            5GS_mobile_identity containing
                                SUPI_format indicating value IMSI,
                                Type_of_identity indicating value SUCI,
@@ -731,7 +730,7 @@ Package TP_AMF {
        
        TP Id TP_5GNAS_AMF_REG_ACC_02 
        
        Test objective "Verify that the IUT sends a REGISTRATION_ACCEPT message indicating SMS over NAS allowed when initial registration with SMS over NAS is requested and network allows SMS service."
        Test objective "Verify that, when the UE requests SMS over NAS transport during initial registration and the IUT supports SMS over NAS in initial registration, the IUT sends a REGISTRATION_ACCEPT message with the SMS allowed bit in the 5GS registration result IE set to 'SMS over NAS allowed'."
        
        Reference 
            "ETSI TS 124 501 [1], Clauses 5.5.1.2.4 and 8.2.7" 
@@ -753,8 +752,7 @@ Package TP_AMF {
                            security_header_type set to NOT_SECURITY_PROTECTED,
                            message_type set to REGISTRATION_REQUEST,
                            5GS_registration_type containing
                                5GS_registration_type_value set to INITIAL_REGISTRATION,
                                FOR indicating value 1;, //Follow-on request pending
                                5GS_registration_type_value set to INITIAL_REGISTRATION;,
                            5GS_mobile_identity containing
                                SUPI_format indicating value IMSI,
                                Type_of_identity indicating value SUCI,
@@ -776,22 +774,7 @@ Package TP_AMF {
                            message_type set to REGISTRATION_ACCEPT,
                            5GS_registration_result containing
                                5GS_registration_result_value set to 3GPP_ACCESS,
                                SMS_over_NAS_transport_allowed set to 1;, //SMS over NAS allowed
                            5G_GUTI containing
                                Type_of_identity set to 5G_GUTI,
                                MCC indicating value PX_MCC,
                                MNC indicating value PX_MNC,
                                AMF_Region_ID indicating value PX_AMF_REGION_ID,
                                AMF_Set_ID indicating value PX_AMF_SET_ID,
                                AMF_Pointer indicating value PX_AMF_POINTER,
                                5G_TMSI indicating value RV_5G_TMSI;,
                            TAI_list containing
                                Partial_tracking_area_list_1 containing
                                    MCC indicating value PX_MCC,
                                    MNC indicating value PX_MNC,
                                    TAC indicating value PX_TAC;;,
                            T3512_value containing
                                Timer_value indicating value nonZeroValue;;; 
                                SMS_over_NAS_transport_allowed set to 1;;; //SMS over NAS allowed
                    to the GNB entity       
                }
            }
@@ -802,7 +785,7 @@ Package TP_AMF {
        
        TP Id TP_5GNAS_AMF_REG_ACC_03 
        
        Test objective "Verify that the IUT sends a REGISTRATION_ACCEPT message indicating SMS over NAS not allowed when initial registration with SMS over NAS is requested and network does not support SMS service."
        Test objective "Verify that the IUT sends a REGISTRATION_ACCEPT message with the SMS over NAS transport allowed bit set to 'not allowed' when the UE requests SMS over NAS during initial registration and the IUT does not support SMS over NAS in initial registration."
        
        Reference 
            "ETSI TS 124 501 [1], Clauses 5.5.1.2.4 and 8.2.7" 
@@ -824,8 +807,7 @@ Package TP_AMF {
                            security_header_type set to NOT_SECURITY_PROTECTED,
                            message_type set to REGISTRATION_REQUEST,
                            5GS_registration_type containing
                                5GS_registration_type_value set to INITIAL_REGISTRATION,
                                FOR indicating value 1;, //Follow-on request pending
                                5GS_registration_type_value set to INITIAL_REGISTRATION;,
                            5GS_mobile_identity containing
                                SUPI_format indicating value IMSI,
                                Type_of_identity indicating value SUCI,
@@ -847,22 +829,7 @@ Package TP_AMF {
                            message_type set to REGISTRATION_ACCEPT,
                            5GS_registration_result containing
                                5GS_registration_result_value set to 3GPP_ACCESS,
                                SMS_over_NAS_transport_allowed set to 0;, //SMS over NAS not allowed
                            5G_GUTI containing
                                Type_of_identity set to 5G_GUTI,
                                MCC indicating value PX_MCC,
                                MNC indicating value PX_MNC,
                                AMF_Region_ID indicating value PX_AMF_REGION_ID,
                                AMF_Set_ID indicating value PX_AMF_SET_ID,
                                AMF_Pointer indicating value PX_AMF_POINTER,
                                5G_TMSI indicating value RV_5G_TMSI;,
                            TAI_list containing
                                Partial_tracking_area_list_1 containing
                                    MCC indicating value PX_MCC,
                                    MNC indicating value PX_MNC,
                                    TAC indicating value PX_TAC;;,
                            T3512_value containing
                                Timer_value indicating value nonZeroValue;;; 
                                SMS_over_NAS_transport_allowed set to 0;;; //SMS over NAS not allowed
                    to the GNB entity       
                }
            }
@@ -872,7 +839,7 @@ Package TP_AMF {
        
        TP Id TP_5GNAS_AMF_REG_ACC_04
        
        Test objective "Verify that the IUT includes the allowed NSSAI in the REGISTRATION_ACCEPT message when the UE includes a requested NSSAI in the REGISTRATION_REQUEST message and the network allows one or more S-NSSAIs from the requested NSSAI."
        Test objective "Verify that the IUT, during the initial registration procedure, sends a REGISTRATION_ACCEPT message including the Allowed NSSAI IE when the UE includes a Requested NSSAI IE in the REGISTRATION_REQUEST message and the IUT allows one or more S-NSSAIs from the requested NSSAI."
        
        Reference 
            "ETSI TS 124 501 [1], Clauses 5.5.1.2.4 and 8.2.7" 
@@ -894,8 +861,7 @@ Package TP_AMF {
                            security_header_type set to NOT_SECURITY_PROTECTED,
                            message_type set to REGISTRATION_REQUEST,
                            5GS_registration_type containing
                                5GS_registration_type_value set to INITIAL_REGISTRATION,
                                FOR indicating value 1;, //Follow-on request pending
                                5GS_registration_type_value set to INITIAL_REGISTRATION;,
                            5GS_mobile_identity containing
                                SUPI_format indicating value IMSI,
                                Type_of_identity indicating value SUCI,
@@ -904,7 +870,14 @@ Package TP_AMF {
                                Routing_indicator indicating value PX_ROUTING_INDICATOR,
                                Protection_scheme_id indicating value PX_PROTECTION_SCHEME_ID,
                                Home_network_public_key_identifier indicating value PX_HOME_NETWORK_PUBLIC_KEY_IDENTIFIER,
                                MSIN indicating value PX_MSIN;;;
                                MSIN indicating value PX_MSIN;,
                            Requested_NSSAI containing
                                S_NSSAI_1 containing
                                    SST set to PX_SST_1,
                                    SD set to PX_SD_1;,
                                S_NSSAI_2 containing
                                    SST set to PX_SST_2,
                                    SD set to PX_SD_2;;;
                    from the GNB entity
                }
                then {
@@ -934,7 +907,7 @@ Package TP_AMF {
        
        TP Id TP_5GNAS_AMF_REG_ACC_05
        
        Test objective "Verify that the IUT optionally includes rejected NSSAI in the REGISTRATION_ACCEPT message when the network rejects one or more S-NSSAIs from the requested NSSAI."
        Test objective "Verify that, during the initial registration procedure, the IUT includes the Rejected NSSAI IE in the REGISTRATION_ACCEPT message when the UE includes a Requested NSSAI IE in the REGISTRATION_REQUEST message and the IUT rejects one or more S-NSSAIs from the requested NSSAI."
        
        Reference 
            "ETSI TS 124 501 [1], Clauses 5.5.1.2.4 and 8.2.7" 
@@ -956,8 +929,7 @@ Package TP_AMF {
                            security_header_type set to NOT_SECURITY_PROTECTED,
                            message_type set to REGISTRATION_REQUEST,
                            5GS_registration_type containing
                                5GS_registration_type_value set to INITIAL_REGISTRATION,
                                FOR indicating value 1;, //Follow-on request pending
                                5GS_registration_type_value set to INITIAL_REGISTRATION;,
                            5GS_mobile_identity containing
                                SUPI_format indicating value IMSI,
                                Type_of_identity indicating value SUCI,
@@ -966,7 +938,14 @@ Package TP_AMF {
                                Routing_indicator indicating value PX_ROUTING_INDICATOR, 
                                Protection_scheme_id indicating value PX_PROTECTION_SCHEME_ID,
                                Home_network_public_key_identifier indicating value PX_HOME_NETWORK_PUBLIC_KEY_IDENTIFIER,
                                MSIN indicating value PX_MSIN;;;
                                MSIN indicating value PX_MSIN;,
                            Requested_NSSAI containing
                                S_NSSAI_1 containing
                                    SST set to PX_SST_1,
                                    SD set to PX_SD_1;,
                                S_NSSAI_2 containing
                                    SST set to PX_SST_Rejected,
                                    SD set to PX_SD_Rejected;;;
                    from the GNB entity
                }
                then {
@@ -984,7 +963,7 @@ Package TP_AMF {
                                AMF_Pointer indicating value PX_AMF_POINTER,
                                5G_TMSI indicating value RV_5G_TMSI;,
                            Rejected_NSSAI containing
                                Rejected_S_NSSAI_1 containing
                                S_NSSAI_1 containing
                                    SST set to PX_SST_Rejected,
                                    SD set to PX_SD_Rejected;;;; 
                    to the GNB entity       
@@ -996,7 +975,7 @@ Package TP_AMF {
        
        TP Id TP_5GNAS_AMF_REG_REJ_01 
        
        Test objective "Verify that the IUT rejects initial registration request due to general NAS level mobility management congestion control with 5GMM cause value #22 - congestion and assign a value for back-off timer T3346."
        Test objective "Verify that the IUT sends a REGISTRATION_REJECT message with 5GMM cause value #22 'congestion' and includes the T3346 value IE when the initial registration request is rejected due to general NAS level mobility management congestion control."
        
        Reference 
            "ETSI TS 124 501 [1], Clauses 5.5.1.2.5 and 8.2.9" 
@@ -1019,8 +998,7 @@ Package TP_AMF {
                            security_header_type set to NOT_SECURITY_PROTECTED,
                            message_type set to REGISTRATION_REQUEST,
                            5GS_registration_type containing
                                5GS_registration_type set to INITIAL_REGISTRATION,
                                FOR indicating value 1;, //Follow-on request pending
                                5GS_registration_type set to INITIAL_REGISTRATION;,
                            5GS_mobile_identity containing
                                SUPI_format indicating value IMSI,
                                Type_of_identity indicating value SUCI,
@@ -1036,7 +1014,6 @@ Package TP_AMF {
                    the IUT entity sends a DOWNLINK_NAS_TRANSPORT containing
                        NAS_PDU containing
                            extended_protocol_discriminator set to 5GS_MOBILITY_MANAGEMENT_MESSAGES,
                            security_header_type set to INTEGRITY_PROTECTED_AND_CIPHERED,
                            message_type set to REGISTRATION_REJECT,
                            5GMM_cause set to "Congestion (22)",
                            T3346_value containing 
@@ -1070,8 +1047,7 @@ Package TP_AMF {
                        NAS_PDU containing
                            message_type set to REGISTRATION_REQUEST,
                            5GS_registration_type containing
                                5GS_registration_type_value set to INITIAL_REGISTRATION,
                                FOR indicating value 1;, //Follow-on request pending
                                5GS_registration_type_value set to INITIAL_REGISTRATION;,
                            Requested_NSSAI indicating value PX_NSSAI_REVOKED;;
                    from the GNB entity
                }
Original line number Diff line number Diff line
Subproject commit b7ef8f8a661c237a8c79b1a58fa16e99cca17175
Subproject commit 0354bd8fa2f1f85d39c35a8dc5e38416ab9db5cf
+11 −0
Original line number Diff line number Diff line
@@ -239,6 +239,17 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_amf_UE_ErrorIndication(
                                               in template (value) Cause p_cause := m_cause_misc(unknown_PLMN_or_SNPN)
                                               ) runs on aMFNGAPComponent {
            log(">>> f_NGAP_amf_UE_ErrorIndication");
            if (PICS_OFFLINE_MODE) {
                f_await_error_indication(p_cause);
            } else {
                f_send_error_indication(p_cause);
            }
        } // End of function f_NGAP_amf_UE_ErrorIndication

        function f_NGAP_amf_UE_SecurityMode() runs on aMFNGAPComponent {
            log(">>> f_NGAP_amf_UE_SecurityMode");
            if (PICS_OFFLINE_MODE) {
Loading