Loading ttcn/Ats_NG_NAS/NG_NAS_TCFunctions.ttcn +6 −6 Original line number Diff line number Diff line Loading @@ -203,15 +203,11 @@ module NG_NAS_TCFunctions { */ function f_TC_5GNAS_AMF_AUT_REQ_04() runs on NGNASComponent /*gNB_NGNAS_NGAPComponent*/ { // Local variables var NG_NAS_DL_Message_Type v_NG_NAS_DL_Message_Type; var NAS_KsiValue ngKSI; // Preamble f_NGAP_gnb_init(); f_send_NGSetupRequest_await_NGSetupRespone(); f_send_NasRegistrationRequest(); f_decode_5G_NAS_DL_Message(vc_recvNAS_PDU, v_NG_NAS_DL_Message_Type); ngKSI := v_NG_NAS_DL_Message_Type.authentication_Request.ngNasKeySetId.nasKeySetId; f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Preamble done. ***"); Loading Loading @@ -246,7 +242,7 @@ module NG_NAS_TCFunctions { if (f_Check_5GAKA_NAS_DL_Message( vc_recvNAS_PDU, mw_NG_AUTHENTICATION_REQUEST( complement(ngKSI) '111'B // Identity type )) == false) { setverdict(fail); log("*** " & __SCOPE__ & ": FAIL: Unexpected NG_IDENTITY_REQUEST ***"); Loading @@ -267,11 +263,15 @@ module NG_NAS_TCFunctions { */ function f_TC_5GNAS_AMF_AUT_REQ_05() runs on NGNASComponent /*gNB_NGNAS_NGAPComponent*/ { // Local variables var NG_NAS_DL_Message_Type v_NG_NAS_DL_Message_Type; var NAS_KsiValue ngKSI; // Preamble f_NGAP_gnb_init(); f_send_NGSetupRequest_await_NGSetupRespone(); f_send_NasRegistrationRequest(); f_decode_5G_NAS_DL_Message(vc_recvNAS_PDU, v_NG_NAS_DL_Message_Type); ngKSI := v_NG_NAS_DL_Message_Type.authentication_Request.ngNasKeySetId.nasKeySetId; f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Preamble done. ***"); Loading Loading @@ -306,7 +306,7 @@ module NG_NAS_TCFunctions { if (f_Check_5GAKA_NAS_DL_Message( vc_recvNAS_PDU, mw_NG_IDENTITY_REQUEST( '111'B // Identity type complement(ngKSI) )) == false) { setverdict(fail); log("*** " & __SCOPE__ & ": FAIL: Unexpected NG_IDENTITY_REQUEST ***"); Loading ttcn/Ats_NG_NAS/module.mk +1 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ modules := \ ../../titan-test-system-framework/ccsrc/Protocols/ETH \ ../../titan-test-system-framework/ccsrc/Protocols/IP \ ../../titan-test-system-framework/ccsrc/Protocols/Sctp \ ../../titan-test-system-framework/ccsrc/Protocols/Xml \ ../../ccsrc/EncDec \ ../../titan-test-system-framework/ccsrc/Framework \ ../../titan-test-system-framework/ccsrc/Helpers \ Loading ttcn/Lib_NG_NAS/LIB_NG_NAS_Functions.ttcn +29 −21 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ module LIB_NG_NAS_Functions { // Lib3GPP import from NG_NAS_MsgContainers all; import from NAS_CommonTemplates all; // Lib_NGAP import from NGAP_IEs language "ASN.1:2002" all; Loading Loading @@ -136,18 +137,25 @@ module LIB_NG_NAS_Functions { ))))); } function f_terminate_NasRegistrationRequest_with_reject() runs on NGNASComponent { // FIXME To be done // Send error message vt_NgNasUl_Msg := m_NG_AUTHENTICATION_FAILURE( m_GMM_GSM_Cause( -, tsc_EmmCause_IllegalMe // '00000110'B; )); vc_sendNAS_PDU := bit2oct(encvalue(valueof(vt_NgNasUl_Msg))); f_send_NGAP_PDU( m_ngap_initMsg( m_n2_UplinkNASTransport( PX_AMF_UE_NGAP_ID, PX_RAN_UE_NGAP_ID, vc_sendNAS_PDU, m_uPTransportLayerInformation_userLocationInformationNR( m_userLocationInformationNR( m_nR_CGI, m_tAI ))))); } Loading Loading
ttcn/Ats_NG_NAS/NG_NAS_TCFunctions.ttcn +6 −6 Original line number Diff line number Diff line Loading @@ -203,15 +203,11 @@ module NG_NAS_TCFunctions { */ function f_TC_5GNAS_AMF_AUT_REQ_04() runs on NGNASComponent /*gNB_NGNAS_NGAPComponent*/ { // Local variables var NG_NAS_DL_Message_Type v_NG_NAS_DL_Message_Type; var NAS_KsiValue ngKSI; // Preamble f_NGAP_gnb_init(); f_send_NGSetupRequest_await_NGSetupRespone(); f_send_NasRegistrationRequest(); f_decode_5G_NAS_DL_Message(vc_recvNAS_PDU, v_NG_NAS_DL_Message_Type); ngKSI := v_NG_NAS_DL_Message_Type.authentication_Request.ngNasKeySetId.nasKeySetId; f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Preamble done. ***"); Loading Loading @@ -246,7 +242,7 @@ module NG_NAS_TCFunctions { if (f_Check_5GAKA_NAS_DL_Message( vc_recvNAS_PDU, mw_NG_AUTHENTICATION_REQUEST( complement(ngKSI) '111'B // Identity type )) == false) { setverdict(fail); log("*** " & __SCOPE__ & ": FAIL: Unexpected NG_IDENTITY_REQUEST ***"); Loading @@ -267,11 +263,15 @@ module NG_NAS_TCFunctions { */ function f_TC_5GNAS_AMF_AUT_REQ_05() runs on NGNASComponent /*gNB_NGNAS_NGAPComponent*/ { // Local variables var NG_NAS_DL_Message_Type v_NG_NAS_DL_Message_Type; var NAS_KsiValue ngKSI; // Preamble f_NGAP_gnb_init(); f_send_NGSetupRequest_await_NGSetupRespone(); f_send_NasRegistrationRequest(); f_decode_5G_NAS_DL_Message(vc_recvNAS_PDU, v_NG_NAS_DL_Message_Type); ngKSI := v_NG_NAS_DL_Message_Type.authentication_Request.ngNasKeySetId.nasKeySetId; f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Preamble done. ***"); Loading Loading @@ -306,7 +306,7 @@ module NG_NAS_TCFunctions { if (f_Check_5GAKA_NAS_DL_Message( vc_recvNAS_PDU, mw_NG_IDENTITY_REQUEST( '111'B // Identity type complement(ngKSI) )) == false) { setverdict(fail); log("*** " & __SCOPE__ & ": FAIL: Unexpected NG_IDENTITY_REQUEST ***"); Loading
ttcn/Ats_NG_NAS/module.mk +1 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ modules := \ ../../titan-test-system-framework/ccsrc/Protocols/ETH \ ../../titan-test-system-framework/ccsrc/Protocols/IP \ ../../titan-test-system-framework/ccsrc/Protocols/Sctp \ ../../titan-test-system-framework/ccsrc/Protocols/Xml \ ../../ccsrc/EncDec \ ../../titan-test-system-framework/ccsrc/Framework \ ../../titan-test-system-framework/ccsrc/Helpers \ Loading
ttcn/Lib_NG_NAS/LIB_NG_NAS_Functions.ttcn +29 −21 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ module LIB_NG_NAS_Functions { // Lib3GPP import from NG_NAS_MsgContainers all; import from NAS_CommonTemplates all; // Lib_NGAP import from NGAP_IEs language "ASN.1:2002" all; Loading Loading @@ -136,18 +137,25 @@ module LIB_NG_NAS_Functions { ))))); } function f_terminate_NasRegistrationRequest_with_reject() runs on NGNASComponent { // FIXME To be done // Send error message vt_NgNasUl_Msg := m_NG_AUTHENTICATION_FAILURE( m_GMM_GSM_Cause( -, tsc_EmmCause_IllegalMe // '00000110'B; )); vc_sendNAS_PDU := bit2oct(encvalue(valueof(vt_NgNasUl_Msg))); f_send_NGAP_PDU( m_ngap_initMsg( m_n2_UplinkNASTransport( PX_AMF_UE_NGAP_ID, PX_RAN_UE_NGAP_ID, vc_sendNAS_PDU, m_uPTransportLayerInformation_userLocationInformationNR( m_userLocationInformationNR( m_nR_CGI, m_tAI ))))); } Loading