Commit aa89d8e6 authored by Yann Garcia's avatar Yann Garcia
Browse files

Validate TC_5GNAS_AMF_DLN_ACC_01 and review TP_5GNAS_AMF_DLN_ACC_01

parent a7ad96e4
Loading
Loading
Loading
Loading
+5.99 KiB

File added.

No diff preview for this file type.

+2 −0
Changes for etc/Ats_NG_NAS/Ats_NG_NAS_AMF_open5gs.cfg_: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ NG_NAS_Pics.PICS_NAS_A4_2_1 := true # security mode control (TC_5GNAS_AMF_S
NG_NAS_Pics.PICS_NAS_A4_2       := true  # security mode control procedure (TC_5GNAS_AMF_SEC_ACC_01)
NG_NAS_Pics.PICS_NAS_A4_3       := true  # identification procedure (TC_5GNAS_AMF_IDN_REQ_01)
NG_NAS_Pics.PICS_NAS_A4_4_1     := true  # open5gs sends a NITZ-only CONFIGURATION UPDATE COMMAND on REGISTRATION COMPLETE (TC_5GNAS_AMF_CNF_COM_01)
NG_NAS_Pics.PICS_NAS_A5_6       := true  # UE-requested PDU session establishment (TC_5GNAS_AMF_DLN_ACC_01)

LibNGAP_Pics.PICS_OFFLINE_MODE := false # true to use offline mode with pcap files, false to use online mode with real network functions
LibNGAP_Pics.PICS_USE_OPEN5GS  := false # true to start open5gs, false to not start them
@@ -121,6 +122,7 @@ LibNGAP_Pixits.PX_DN_PING_HOST := "10.45.0.1" # ogstun of the open5gs host,
LibNGAP_Pixits.PX_TRANSPORT_LAYER_ADDRESS := '01111111000000000000000000000001'B # 127.0.0.1
LibNGAP_Pixits.PX_FIVE_QI          := 9     # 5QI of the default QoS flow (open5gs subscriber)
LibNGAP_Pixits.PX_2nd_5QI          := 1
LibNGAP_Pixits.PX_DNN              := "internet" # DNN of the open5gs subscriber (TC_5GNAS_AMF_DLN_ACC_01)
LibUpperTesterHttp_Pixits.PX_UT_HTTP_MEDIA_TYPE := AUDIO
Lib_NG_NAS_Pixits.PX_SUCI_PROTECTION_SCHEME   := 0
Lib_NG_NAS_Pixits.PX_HOME_NETWORK_PKI         := 0
+11 −4
Changes for test_purposes/TP_AMF_NGNAS.tdltx: 11 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -630,13 +630,14 @@ Package TP_AMF_NGNAS {
								request_type set to "Initial request",
								s_NSSAI containing {
									sst set to PX_SST,
									sd set to PX_SD},
									sd set to PX_SD or omitted},
								dNN set to PX_DNN}}
                        from the GNB entity
                    }
                    then {
                        the IUT entity sends a PDU_SESSION_RESOURCE_SETUP_REQUEST containing {
                            NAS_PDU containing {
                            PDU_session_resource_setup_list containing { //!ETSI TS 138 413 clause 9.2.1.1: the PDU Session NAS-PDU of the item of the PDU session
                            PDU_session_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 DL_NAS_TRANSPORT,
@@ -644,8 +645,14 @@ Package TP_AMF_NGNAS {
								payload_container containing {
									5GSM_PDU containing {
										extended_protocol_discriminator set to 5GS_SESSION_MANAGEMENT_MESSAGES,
										message_type set to PDU_SESSION_ESTABLISHMENT_ACCEPT}},
								pDU_session_identity set to PX_PDU_session_identity}}
										message_type set to PDU_SESSION_ESTABLISHMENT_ACCEPT,
										PDU_session_identity set to PX_PDU_session_identity,
										PDU_session_type set to "IPv4",
										SSC_mode set to "SSC mode 1",
										s_NSSAI containing {
											sst set to PX_SST,
											sd set to PX_SD or omitted}}},
								pDU_session_identity set to PX_PDU_session_identity}}}
                    to the GNB entity
                    }

+12 −1
Changes for ttcn/AtsNGAP/NGAP_Steps.ttcn: 12 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -611,9 +611,13 @@ module NGAP_Steps { // TODO FSCOM f_xxx_UE_SecurityMode to be mmoved into NAG_NG
         *          Sets the verdict to fail on the first mismatch, to pass otherwise (only logs with p_setVerdict false, e.g.
         *          in a preamble).
         * @param  p_setVerdict false to leave the verdict unchanged.
         * @param  p_sscMode   Expected SSC mode of the PDU SESSION ESTABLISHMENT ACCEPT (e.g. '001'B SSC mode 1); ? not checked.
         * @return true if the request conforms.
         */
        function f_NGAP_amf_check_pdu_session_resource_setup_request(in boolean p_setVerdict := true) runs on aMFNGAPComponent return boolean {
        function f_NGAP_amf_check_pdu_session_resource_setup_request(
                                                                     in boolean p_setVerdict := true,
                                                                     in template (present) B3_Type p_sscMode := ?
                                                                     ) runs on aMFNGAPComponent return boolean {
            var template SD v_sd := omit;
            var NG_NAS_DL_Message_Type v_message;
            var NG_PDU_SESSION_ESTABLISHMENT_ACCEPT v_accept;
@@ -679,6 +683,13 @@ module NGAP_Steps { // TODO FSCOM f_xxx_UE_SecurityMode to be mmoved into NAG_NG
                }
                return false;
            }
            if (not match(v_accept.sscMode.sscModeValue, p_sscMode)) {
                log("*** " & __SCOPE__ & ": FAIL: PDU SESSION ESTABLISHMENT ACCEPT with SSC mode ", v_accept.sscMode.sscModeValue, ", ", p_sscMode, " expected ***");
                if (p_setVerdict) {
                    setverdict(fail, "PDU SESSION ESTABLISHMENT ACCEPT: SSC mode not as expected");
                }
                return false;
            }
            // PDU Session Resource Setup Request Transfer
            var bitstring v_bs := oct2bit(v_item.pDUSessionResourceSetupRequestTransfer);
            if (fx_dec_PDUSessionResourceSetupRequestTransfer(v_bs, v_transfer) != 0) {
+6 −0
Changes for ttcn/Ats_NG_NAS/NG_NAS_Pics.ttcn: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -70,6 +70,12 @@ module NG_NAS_Pics {
         */
        modulepar boolean PICS_NAS_A4_4_1 := true;

        /**
         * @desc Does the IUT support the UE-requested PDU session establishment procedure? (TS 24.501 clause 6.4.1)
         * @see  ETSI TS 103 921-1 Table A.5 (PICS_NAS_A5_6)
         */
        modulepar boolean PICS_NAS_A5_6 := true;
   
    } // End of group PICS_

} // End of module NG_NAS_Pics
 No newline at end of file
Loading