From 929324cf03dd4b16ff52d585006d858fdfb3df88 Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Tue, 19 Sep 2023 10:59:43 +0200 Subject: [PATCH 01/33] add TPs for UE context managment procedures (8.3) --- test_purposes/ngap/TP_GNB_NGAP.tplan2 | 102 +++++++++++++++++++++++++- 1 file changed, 101 insertions(+), 1 deletion(-) diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index 7b7700b..496e0a3 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -112,7 +112,107 @@ Package TP_GNB { } // end Group 8.2 PDU Session Management Procedures - + Group "8.3 UE Context Management Procedures" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_CMP_01 //TODO: Is CMP the correct abbreviation for Context management Procedure? Correct naming convention? + + Test objective "Verify that the NG-RAN node successfully processes a INITIAL CONTEXT SETUP REQUEST contains mandatory IEs and answers with INITIAL CONTEXT SETUP RESPONSE with successfully established UE context." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.1.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + //TODO: Do we have an initial condition here? + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a INITIAL_CONTEXT_SETUP_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + GUAMI, + PDU_Session_Resource_Setup_Request_List containing + PDU_SessionId, + S_NSSAI, + PDU_Session_Resource_Setup_Request_Transfer + Allowed_NSSAI, + UE_Security_Capabilities, + Security_Key + ; + from the AMF entity + } + then { + the IUT entity sends a INITIAL_CONTEXT_SETUP_RESPONSE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Setup_Response_List containing + PDU_SessionId, + PDU_Session_Resource_Setup_Response_Transfer; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_CMP_01 + + Test Purpose { + + TP Id TP_NGAP_GNB_CMP_02 //TODO: Is CMP the correct abbreviation for Context management Procedure? Correct naming convention? + + Test objective "Verify that the NG-RAN node successfully processes a INITIAL CONTEXT SETUP REQUEST contains mandatory IEs and answers with INITIAL CONTEXT SETUP RESPONSE with failed PDU session." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.1.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + //TODO: Do we have an initial condition here? + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a INITIAL_CONTEXT_SETUP_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + GUAMI, + PDU_Session_Resource_Setup_Request_List containing + PDU_SessionId, + S_NSSAI, + PDU_Session_Resource_Setup_Request_Transfer + Allowed_NSSAI, + UE_Security_Capabilities, + Security_Key + ; + from the AMF entity + } + then { + the IUT entity sends a INITIAL_CONTEXT_SETUP_RESPONSE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Failed_to_Setup_List containing + PDU_SessionId, + PDU_Session_Resource_Setup_Unsuccessful_Transfer; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_CMP_02 + + } // end Group 8.3 UE Context Management Procedures Group "8.6 Initial UE message" { -- GitLab From 97c831148df05520aa4a13dbb2cd6d9633fac5e5 Mon Sep 17 00:00:00 2001 From: pintar Date: Sun, 15 Oct 2023 22:49:46 +0200 Subject: [PATCH 02/33] PDU session TPs --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 256 +++++++++++++- test_purposes/ngap/TP_GNB_NGAP.tplan2 | 448 ++++++++++++++++++++++++- 2 files changed, 688 insertions(+), 16 deletions(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index 684af8f..a4d70f4 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -18,7 +18,261 @@ Package TP_AMF { -//TO BE DONE + Group "8.2 PDU Session Management Procedures" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_PDU_01 + + Test objective "Verify that the IUT can send a PDU SESSION RESOURCE SETUP REQUEST with at least one PDU session resource list to established PDU session." + + Reference + "ETSI TS 138 413 [1], Clauses 8.2.1.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a PDU session management procedure + } + then { + the IUT entity sends a PDU_SESSION_RESOURCE_SETUP_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Setup_Request_List containing + PDU_SessionId, + S_NSSAI, + PDU_Session_Resource_Setup_Request_Transfer; + ; + to the GNB entity + } + } + + } // end TP_NGAP_AMF_PDU_01 + + Test Purpose { + + TP Id TP_NGAP_AMF_PDU_02 + + Test objective "Verify that the IUT can send a PDU_SESSION_RESOURCE_RELEASE_COMMAND to release PDU session." + + Reference + "ETSI TS 138 413 [1], Clauses 8.2.1.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a PDU session resource release procedure + } + then { + the IUT entity sends a PDU_SESSION_RESOURCE_RELEASE_COMMAND containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_To_Release_List containing + PDU_Session_Resource_To_Release_Item containing + PDU_SessionId indicating value PX_PDU_ID, + S_NSSAI, + PDU_Session_Resource_Release_Command_Transfer containing + Cause indicating value PX_Cause; //normal_release + ; + ; + ; + to the GNB entity + } + } + + } // end TP_NGAP_AMF_PDU_02 + + Test Purpose { + + TP Id TP_NGAP_AMF_PDU_03 + + Test objective "Verify that the IUT can send a PDU_SESSION_RESOURCE_MODIFY_REQUEST to modify PDU session." + + Reference + "ETSI TS 138 413 [1], Clauses 8.2.3.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a PDU session resource modify procedure + } + then { + the IUT entity sends a PDU_SESSION_RESOURCE_MODIFY_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Modify_Request_List containing + PDU_Session_Resource_Modify_Request_Item containing + PDU_SessionId indicating value PX_PDU_ID, + PDU_Session_Resource_Modify_Request_Transfer containing +// UL_NG_U_UP_TNL_Modify_List containing +// UL_NG_U_UP_TNL_Modify_Item containing +// UL_NG_U_UP_TNL_Information +// DL_NG_U_UP_TNL_Information +// ; +// ;, + QoSFlowAddorModifyRequestList containing + QoSFlowAddorModifyRequestItem containing + QoSFlowIdentifier; + ; + ; + ; + ; + ; + to the GNB entity + } + } + + } // end TP_NGAP_AMF_PDU_03 + + Test Purpose { + + TP Id TP_NGAP_AMF_PDU_04 + + Test objective "Verify that the AMF node successfully processes a PDU_SESSION_RESOURCE_MODIFY_INDICATION contains mandatory IEs and answers with PDU_SESSION_RESOURCE_MODIFY_CONFIRM for successfully modified PDU session." + + Reference + "ETSI TS 138 413 [1], Clause 8.2.5.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_SESSION_RESOURCE_MODIFY_INDICATION containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Modify_Indication_List containing + PDU_Session_Resource_Modify_Indication_Item containing + PDU_SessionId indicating value PX_PDU_ID, + PDU_Session_Resource_Modify_Indication_Transfer containing + DLQoSFlowperTNLInformation containing + UPTransportLayerInformation, + AssociatedQoSFlowList containing + AssociatedQoSFlowItem containing + QoSFlowIdentifier indicating value PX_QoS_Flow_ID; + ; + ; + ; + ; + ; + ; + from the GNB entity + } + then { + the IUT entity sends a PDU_SESSION_RESOURCE_MODIFY_CONFIRM containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Modify_Confirm_List containing + PDU_Session_Resource_Modify_Confirm_Item containing + PDU_SessionId indicating value PX_PDU_ID, + PDU_Session_Resource_Modify_Confirm_Transfer containing + QoSFlowModifyConfirmList containing + QoSFlowModifyConfirmItem containing + QoSFlowIdentifier; + ; + ;, + UL_NG_U_UP_TNLInformation + ; + ; + ; + to the GNB entity + } + } + + } // end TP_NGAP_AMF_PDU_04 + + Test Purpose { + + TP Id TP_NGAP_AMF_PDU_05 + + Test objective "Verify that the AMF node processes a PDU_SESSION_RESOURCE_MODIFY_INDICATION contains mandatory IEs and answers with PDU_SESSION_RESOURCE_MODIFY_CONFIRM for not successfully modified PDU session." + + Reference + "ETSI TS 138 413 [1], Clause 8.2.5.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_SESSION_RESOURCE_MODIFY_INDICATION containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Modify_Indication_List containing + PDU_Session_Resource_Modify_Indication_Item containing + PDU_SessionId indicating value PX_PDU_ID, + PDU_Session_Resource_Modify_Indication_Transfer containing + DLQoSFlowperTNLInformation containing + UPTransportLayerInformation, + AssociatedQoSFlowList containing + AssociatedQoSFlowItem containing + QoSFlowIdentifier indicating value PX_QoS_Wrong_Flow_ID; + ; + ; + ; + ; + ; + ; + from the GNB entity + } + then { + the IUT entity sends a PDU_SESSION_RESOURCE_MODIFY_CONFIRM containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Failed_To_Modify_List containing + PDU_Session_Resource_Failed_To_Modify_Item containing + PDU_SessionId indicating value PX_PDU_ID, + PDU_Session_Resource_Modify_Indication_Unsuccessful_Transfer containing + Cause; + ; + ; + ; + to the GNB entity + } + } + + } // end TP_NGAP_AMF_PDU_05 + + } // end Group 8.2 PDU Session Management Procedures + } // End of Package TP_AMF diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index 7b7700b..3756256 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -26,10 +26,10 @@ Package TP_GNB { TP Id TP_NGAP_GNB_PDU_01 - Test objective "Verify that the NG-RAN node successfully processes a PDU SESSION RESOURCE SETUP REQUEST contains mandatory IEs and answers with PDU SESSION RESOURCE SETUP RESPONSE with successfully established PDU session." + Test objective "Verify that the NG-RAN node successfully processes a PDU SESSION RESOURCE SETUP REQUEST contains mandatory IEs and answers with PDU SESSION RESOURCE SETUP RESPONSE for successfully established PDU session." Reference - "ETSI TS 138 413 [1], Clauses 8.2.1.2" + "ETSI TS 138 413 [1], Clause 8.2.1.2" Config Id CFG_GNB_01 @@ -46,9 +46,20 @@ Package TP_GNB { AMF_UE_NGAP_ID, RAN_UE_NGAP_ID, PDU_Session_Resource_Setup_Request_List containing - PDU_SessionId, + PDU_Session_Resource_Setup_Request_Item containing + PDU_SessionId indicating value PX_PDU_ID, S_NSSAI, - PDU_Session_Resource_Setup_Request_Transfer; + PDU_Session_Resource_Setup_Request_Transfer containing + UL_NG_U_UP_TNL, + PDU_SessionType, + QoSFlowSetupRequestList containing + QoSFlowSetupRequestItem containing + QoSFlowIndicator, + QoSFlowLevelQoSParameters; + ; + ; + ; + ; ; from the AMF entity } @@ -57,23 +68,27 @@ Package TP_GNB { AMF_UE_NGAP_ID, RAN_UE_NGAP_ID, PDU_Session_Resource_Setup_Response_List containing - PDU_SessionId, - PDU_Session_Resource_Setup_Response_Transfer; + PDU_Session_Resource_Setup_Response_Item containing + PDU_SessionId indicating value PX_PDU_ID, + PDU_Session_Resource_Setup_Response_Transfer containing + DL_QoS_Flow_per_TNL_Information; + ; + ; ; to the AMF entity - } - } + } + } - } // end TP_NGAP_GNB_PDU_01 + } // end TP_NGAP_GNB_PDU_01 Test Purpose { TP Id TP_NGAP_GNB_PDU_02 - Test objective "Verify that the NG-RAN node successfully processes a PDU SESSION RESOURCE SETUP REQUEST contains mandatory IEs and answers with PDU SESSION RESOURCE SETUP RESPONSE with failed PDU session." + Test objective "Verify that the NG-RAN node reports the establishment of the corresponding PDU session as failed if a PDU SESSION RESOURCE SETUP REQUEST contains several PDU Session ID IEs set to the same value." Reference - "ETSI TS 138 413 [1], Clauses 8.2.1.2" + "ETSI TS 138 413 [1], Clause 8.2.1.4" Config Id CFG_GNB_01 @@ -90,9 +105,33 @@ Package TP_GNB { AMF_UE_NGAP_ID, RAN_UE_NGAP_ID, PDU_Session_Resource_Setup_Request_List containing - PDU_SessionId, + PDU_Session_Resource_Setup_Request_Item containing + PDU_SessionId indicating value PX_PDU_ID, + S_NSSAI, + PDU_Session_Resource_Setup_Request_Transfer containing + UL_NG_U_UP_TNL, + PDU_SessionType, + QoSFlowSetupRequestList containing + QoSFlowSetupRequestItem containing + QoSFlowIndicator, + QoSFlowLevelQoSParameters; + ; + ; + ;, + PDU_Session_Resource_Setup_Request_Item containing + PDU_SessionId indicating value PX_PDU_ID, S_NSSAI, - PDU_Session_Resource_Setup_Request_Transfer; + PDU_Session_Resource_Setup_Request_Transfer containing + UL_NG_U_UP_TNL, + PDU_SessionType, + QoSFlowSetupRequestList containing + QoSFlowSetupRequestItem containing + QoSFlowIndicator, + QoSFlowLevelQoSParameters; + ; + ; + ; + ; ; from the AMF entity } @@ -101,14 +140,393 @@ Package TP_GNB { AMF_UE_NGAP_ID, RAN_UE_NGAP_ID, PDU_Session_Resource_Failed_to_Setup_List containing + DU_Session_Resource_Failed_to_Setup_Item containing PDU_SessionId, - PDU_Session_Resource_Setup_Unsuccessful_Transfer; + PDU_Session_Resource_Setup_Unsuccessful_Transfer containing + Cause indicating value MultiplePDUSessionIDInstances; + ; + ; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_PDU_02 + + Test Purpose { + + TP Id TP_NGAP_GNB_PDU_03 + + Test objective "Verify that the NG-RAN node reports the establishment of the new PDU session as failed if a PDU SESSION RESOURCE SETUP REQUEST contains a PDU Session ID IE set to value that identifies an active PDU Session. NOTE: Run TP_NGAP_GNB_PDU_01 before this TP " + + Reference + "ETSI TS 138 413 [1], Clause 8.2.1.4" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_SESSION_RESOURCE_SETUP_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Setup_Request_List containing + PDU_Session_Resource_Setup_Request_Item containing + PDU_SessionId indicating value PX_PDU_ID, + S_NSSAI, + PDU_Session_Resource_Setup_Request_Transfer containing + UL_NG_U_UP_TNL, + PDU_SessionType, + QoSFlowSetupRequestList containing + QoSFlowSetupRequestItem containing + QoSFlowIndicator, + QoSFlowLevelQoSParameters; + ; + ; + ; + ; + ; + from the AMF entity + } + then { + the IUT entity sends a PDU_SESSION_RESOURCE_SETUP_RESPONSE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Failed_to_Setup_List containing + DU_Session_Resource_Failed_to_Setup_Item containing + PDU_SessionId indicating value PX_PDU_ID, + PDU_Session_Resource_Setup_Unsuccessful_Transfer containing + Cause indicating value MultiplePDUSessionIDInstances; + ; + ; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_PDU_03 + + Test Purpose { + + TP Id TP_NGAP_GNB_PDU_04 + + Test objective "Verify that the NG-RAN node reports the establishment of the corresponding PDU session as failed if a PDU SESSION RESOURCE SETUP REQUEST contains a QoS Flow Setup Request List IE in the PDU Session Resource Setup Request Transfer IE including at least one Non-GBR QoS flow but the PDU Session Aggregate Maximum Bit Rate IE is not present. " + + Reference + "ETSI TS 138 413 [1], Clause 8.2.1.4" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_SESSION_RESOURCE_SETUP_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Setup_Request_List containing + PDU_Session_Resource_Setup_Request_Item containing + PDU_SessionId indicating value PX_PDU_ID, + S_NSSAI, + PDU_Session_Resource_Setup_Request_Transfer containing + UL_NG_U_UP_TNL, + PDU_SessionType, + QoSFlowSetupRequestList containing + QoSFlowSetupRequestItem containing + QoSFlowIndicator indicating value Non_GBR_QoS, + QoSFlowLevelQoSParameters; + ; + ; + ; + ;, + not UEAggregateMaximumBitRate + ; + from the AMF entity + } + then { + the IUT entity sends a PDU_SESSION_RESOURCE_SETUP_RESPONSE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Failed_to_Setup_List containing + DU_Session_Resource_Failed_to_Setup_Item containing + PDU_SessionId indicating value PX_PDU_ID, + PDU_Session_Resource_Setup_Unsuccessful_Transfer containing + Cause indicating value InvalidQoSCombination; + ; + ; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_PDU_04 + + //TODO:possible to add 2 tests from 8.2.1.4 paragraph 4 + + Test Purpose { + + TP Id TP_NGAP_GNB_PDU_05 + + Test objective "Verify that the NG-RAN node successfully processes a PDU SESSION RESOURCE RELEASE COMMAND contains mandatory IEs and answers with PDU SESSION RESOURCE RELEASE RESPONSE to release PDU session." + + Reference + "ETSI TS 138 413 [1], Clause 8.2.2.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_SESSION_RESOURCE_RELEASE_COMMAND containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_To_Release_List containing + PDU_Session_Resource_To_Release_Item containing + PDU_SessionId indicating value PX_PDU_ID, + S_NSSAI, + PDU_Session_Resource_Release_Command_Transfer containing + Cause indicating value PX_Cause; //normal_release + ; + ; + ; + from the AMF entity + } + then { + the IUT entity sends a PDU_SESSION_RESOURCE_RELEASE_RESPONSE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Released_List containing + PDU_Session_Resource_Released_Item containing + PDU_SessionId indicating value PX_PDU_ID, + PDU_Session_Resource_Release_Response_Transfer; + ; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_PDU_05 + + Test Purpose { + + TP Id TP_NGAP_GNB_PDU_06 + + Test objective "Verify that the NG-RAN node successfully processes a PDU SESSION RESOURCE RELEASE COMMAND containing multiple PDU Session ID IEs set to the same value and ignore the duplication." + + Reference + "ETSI TS 138 413 [1], Clause 8.2.2.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_SESSION_RESOURCE_RELEASE_COMMAND containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_To_Release_List containing + PDU_Session_Resource_To_Release_Item containing + PDU_SessionId indicating value PX_PDU_ID, + S_NSSAI, + PDU_Session_Resource_Release_Command_Transfer containing + Cause indicating value PX_Cause; //normal_release + ;, + PDU_Session_Resource_To_Release_Item containing + PDU_SessionId indicating value PX_PDU_ID, + S_NSSAI, + PDU_Session_Resource_Release_Command_Transfer containing + Cause indicating value PX_Cause; //normal_release + ; + ; + ; + from the AMF entity + } + then { + the IUT entity sends a PDU_SESSION_RESOURCE_RELEASE_RESPONSE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Released_List containing + PDU_Session_Resource_Released_Item containing + PDU_SessionId indicating value PX_PDU_ID, + PDU_Session_Resource_Release_Response_Transfer; + ; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_PDU_06 + + Test Purpose { + + TP Id TP_NGAP_GNB_PDU_07 + + Test objective "Verify that the NG-RAN node successfully processes a PDU SESSION RESOURCE MODIFY REQUEST contains mandatory IEs and answers with PDU SESSION RESOURCE MODIFY RESPONSE for successfully modified PDU session." + + Reference + "ETSI TS 138 413 [1], Clause 8.2.3.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PDU_SESSION_RESOURCE_MODIFY_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Modify_Request_List containing + PDU_Session_Resource_Modify_Request_Item containing + PDU_SessionId indicating value PX_PDU_ID, + PDU_Session_Resource_Modify_Request_Transfer containing +// UL_NG_U_UP_TNL_Modify_List containing +// UL_NG_U_UP_TNL_Modify_Item containing +// UL_NG_U_UP_TNL_Information +// DL_NG_U_UP_TNL_Information +// ; +// ;, + QoSFlowAddorModifyRequestList containing + QoSFlowAddorModifyRequestItem containing + QoSFlowIdentifier; + ; + ; + ; + ; + ; + from the AMF entity + } + then { + the IUT entity sends a PDU_SESSION_RESOURCE_MODIFY_RESPONSE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Modify_Response_List containing + PDU_Session_Resource_Modify_Response_Item containing + PDU_SessionId indicating value PX_PDU_ID, + PDU_Session_Resource_Modify_Response_Transfer containing + QoSFlowAddorModifyResponsetList containing + QoSFlowAddorModifyResponsetItem containing + QoSFlowIdentifier; + ; + ; + ; + ; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_PDU_07 + + //TODO:possible to add tests from 8.2.3.4 for failed actions + + Test Purpose { + + TP Id TP_NGAP_GNB_PDU_08 + + Test objective "Verify that the IUT can send a PDU_SESSION_RESOURCE_NOTIFY that already established QoS flow or PDU session for given UE are release." + + Reference + "ETSI TS 138 413 [1], Clauses 8.2.4.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a PDU session resource notify procedure + } + then { + the IUT entity sends a PDU_SESSION_RESOURCE_NOTIFY containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Released_List containing + PDU_Session_Resource_Released_Item containing + PDU_SessionId indicating value PX_PDU_ID, + S_NSSAI, + PDU_Session_Resource_Notify_Released_Transfer containing + Cause; + ; + ; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_PDU_08 + + Test Purpose { + + TP Id TP_NGAP_GNB_PDU_09 + + Test objective "Verify that the IUT can send a PDU_SESSION_RESOURCE_MODIFY_INDICATION to request modification of established PDU session." + + Reference + "ETSI TS 138 413 [1], Clauses 8.2.5.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a PDU session resource modify indicationy procedure + } + then { + the IUT entity sends a PDU_SESSION_RESOURCE_MODIFY_INDICATION containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Modify_Indication_List containing + PDU_Session_Resource_Modify_Indication_Item containing + PDU_SessionId indicating value PX_PDU_ID, + PDU_Session_Resource_Modify_Indication_Transfer containing + DLQoSFlowperTNLInformation; + ; + ; ; to the AMF entity } } - } // end TP_NGAP_GNB_PDU_02 + } // end TP_NGAP_GNB_PDU_09 } // end Group 8.2 PDU Session Management Procedures -- GitLab From 946e74b7b4525e0d3c602e18172015961fee3009 Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Mon, 23 Oct 2023 11:58:36 +0200 Subject: [PATCH 03/33] resolve TODO about TP naming --- test_purposes/ngap/TP_GNB_NGAP.tplan2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index 496e0a3..df7743a 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -118,7 +118,7 @@ Package TP_GNB { Test Purpose { - TP Id TP_NGAP_GNB_CMP_01 //TODO: Is CMP the correct abbreviation for Context management Procedure? Correct naming convention? + TP Id TP_NGAP_GNB_CMP_01 Test objective "Verify that the NG-RAN node successfully processes a INITIAL CONTEXT SETUP REQUEST contains mandatory IEs and answers with INITIAL CONTEXT SETUP RESPONSE with successfully established UE context." @@ -166,7 +166,7 @@ Package TP_GNB { Test Purpose { - TP Id TP_NGAP_GNB_CMP_02 //TODO: Is CMP the correct abbreviation for Context management Procedure? Correct naming convention? + TP Id TP_NGAP_GNB_CMP_02 Test objective "Verify that the NG-RAN node successfully processes a INITIAL CONTEXT SETUP REQUEST contains mandatory IEs and answers with INITIAL CONTEXT SETUP RESPONSE with failed PDU session." -- GitLab From 67f10db50c409a05daef0259f62b81303ac625a3 Mon Sep 17 00:00:00 2001 From: ldtke Date: Tue, 24 Oct 2023 09:23:20 +0200 Subject: [PATCH 04/33] new test purposes --- test_purposes/ngap/TP_GNB_NGAP.tplan2 | 360 +++++++++++++++++++------- 1 file changed, 269 insertions(+), 91 deletions(-) diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index 86e05ee..56b8469 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -533,103 +533,281 @@ Package TP_GNB { Group "8.3 UE Context Management Procedures" { import all from Ngap_Common; + + Group "Initial Context Setup" + { + import all from Ngap_Common; - Test Purpose { + Test Purpose { - TP Id TP_NGAP_GNB_CMP_01 - - Test objective "Verify that the NG-RAN node successfully processes a INITIAL CONTEXT SETUP REQUEST contains mandatory IEs and answers with INITIAL CONTEXT SETUP RESPONSE with successfully established UE context." - - Reference - "ETSI TS 138 413 [1], Clauses 8.3.1.2" - - Config Id CFG_GNB_01 - - PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. - - Initial conditions with { - //TODO: Do we have an initial condition here? - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a INITIAL_CONTEXT_SETUP_REQUEST containing - AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID, - GUAMI, - PDU_Session_Resource_Setup_Request_List containing - PDU_SessionId, - S_NSSAI, - PDU_Session_Resource_Setup_Request_Transfer - Allowed_NSSAI, - UE_Security_Capabilities, - Security_Key - ; - from the AMF entity - } - then { - the IUT entity sends a INITIAL_CONTEXT_SETUP_RESPONSE containing - AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID, - PDU_Session_Resource_Setup_Response_List containing - PDU_SessionId, - PDU_Session_Resource_Setup_Response_Transfer; - ; - to the AMF entity - } - } + TP Id TP_NGAP_GNB_CMP_01 + + Test objective "Verify that the NG-RAN node successfully processes a INITIAL CONTEXT SETUP REQUEST contains mandatory IEs and answers with INITIAL CONTEXT SETUP RESPONSE with successfully established UE context." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.1.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a INITIAL_CONTEXT_SETUP_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + GUAMI, + PDU_Session_Resource_Setup_Request_List containing + PDU_SessionId, + S_NSSAI, + PDU_Session_Resource_Setup_Request_Transfer; + , + Allowed_NSSAI, + UE_Security_Capabilities, + Security_Key + ; + from the AMF entity + } + then { + the IUT entity sends a INITIAL_CONTEXT_SETUP_RESPONSE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Setup_Response_List containing + PDU_SessionId, + PDU_Session_Resource_Setup_Response_Transfer; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_CMP_01 - } // end TP_NGAP_GNB_CMP_01 + Test Purpose { + + TP Id TP_NGAP_GNB_CMP_02 + + Test objective "Verify that the NG-RAN node successfully processes a INITIAL CONTEXT SETUP REQUEST contains mandatory IEs and answers with INITIAL CONTEXT SETUP RESPONSE with failed PDU session." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.1.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + +// Initial conditions with { +// //TODO: Do we have an initial condition here? +// } + + Expected behaviour + ensure that { + when { + the IUT entity receives a INITIAL_CONTEXT_SETUP_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + GUAMI, + PDU_Session_Resource_Setup_Request_List containing + PDU_SessionId, + S_NSSAI, + PDU_Session_Resource_Setup_Request_Transfer; + , + Allowed_NSSAI, + UE_Security_Capabilities, + Security_Key + ; + from the AMF entity + } + then { + the IUT entity sends a INITIAL_CONTEXT_SETUP_RESPONSE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Failed_to_Setup_List containing + PDU_SessionId, + PDU_Session_Resource_Setup_Unsuccessful_Transfer; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_CMP_02 + } // end Group Initial Context Setup + + - Test Purpose { + Group "UE Context Modification" + { + import all from Ngap_Common; + + Test Purpose { - TP Id TP_NGAP_GNB_CMP_02 - - Test objective "Verify that the NG-RAN node successfully processes a INITIAL CONTEXT SETUP REQUEST contains mandatory IEs and answers with INITIAL CONTEXT SETUP RESPONSE with failed PDU session." - - Reference - "ETSI TS 138 413 [1], Clauses 8.3.1.2" - - Config Id CFG_GNB_01 - - PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. - - Initial conditions with { - //TODO: Do we have an initial condition here? - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a INITIAL_CONTEXT_SETUP_REQUEST containing - AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID, - GUAMI, - PDU_Session_Resource_Setup_Request_List containing - PDU_SessionId, - S_NSSAI, - PDU_Session_Resource_Setup_Request_Transfer - Allowed_NSSAI, - UE_Security_Capabilities, - Security_Key - ; - from the AMF entity - } - then { - the IUT entity sends a INITIAL_CONTEXT_SETUP_RESPONSE containing - AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID, - PDU_Session_Resource_Failed_to_Setup_List containing - PDU_SessionId, - PDU_Session_Resource_Setup_Unsuccessful_Transfer; - ; - to the AMF entity - } - } + TP Id TP_NGAP_GNB_CMP_03 + + Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT MODIFICATION REQUEST contains mandatory IEs and answers with UE CONTEXT MODIFICATION FAILURE with failed PDU session." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.4.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + +// Initial conditions with { +// //TODO: Do we have an initial condition here? +// } + + Expected behaviour + ensure that { + when { + the IUT entity receives a UE_CONTEXT_MODIFICATION_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID + ; + from the AMF entity + } + then { + the IUT entity sends a UE_CONTEXT_MODIFICATION_FAILURE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Cause + ; + to the AMF entity + } + } + + } // end TP TP_NGAP_GNB_CMP_03 + + Test Purpose { + + TP Id TP_NGAP_GNB_CMP_04 + + Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT MODIFICATION REQUEST contains mandatory IEs and answers with UE CONTEXT MODIFICATION RESPONSE with successfully modify UE context." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.4.3" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + +// Initial conditions with { +// //TODO: Do we have an initial condition here? +// } + + Expected behaviour + ensure that { + when { + the IUT entity receives a UE_CONTEXT_MODIFICATION_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID + ; + from the AMF entity + } + then { + the IUT entity sends a UE_CONTEXT_MODIFICATION_RESPONSE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID + ; + to the AMF entity + } + } + + } // end TP TP_NGAP_GNB_CMP_04 + + } // end Group UE Context Modification + + + Group "UE Context Suspend" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_CMP_05 + + Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT SUSPEND REQUEST contains mandatory IEs and answers with UE CONTEXT SUSPEND REQUEST RESPONSE with successfully suspend UE context." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.11.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + +// Initial conditions with { +// //TODO: Do we have an initial condition here? +// } + + Expected behaviour + ensure that { + when { + the IUT entity receives a UE_CONTEXT_SUSPEND_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Suspend_List containing + PDU_SessionId, + UE_Context_Suspend_Request_Transfer; + ; + from the AMF entity + } + then { + the IUT entity sends a UE_CONTEXT_SUSPEND_RESPONSE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID + ; + to the AMF entity + } + } + + } // end TP TP_NGAP_GNB_CMP_05 + + Test Purpose { + + TP Id TP_NGAP_GNB_CMP_06 + + Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT SUSPEND REQUEST contains mandatory IEs and answers with UE CONTEXT SUSPEND FAILURE with failed suspension." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.11.3" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + +// Initial conditions with { +// //TODO: Do we have an initial condition here? +// } + + Expected behaviour + ensure that { + when { + the IUT entity receives a UE_CONTEXT_SUSPEND_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Suspend_List containing + PDU_SessionId, + UE_Context_Suspend_Request_Transfer; + ; + from the AMF entity + } + then { + the IUT entity sends a UE_CONTEXT_SUSPEND_FAILURE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Cause + ; + to the AMF entity + } + } + + } // end TP TP_NGAP_GNB_CMP_06 + + }// end Group UE Context Suspend - } // end TP_NGAP_GNB_CMP_02 - } // end Group 8.3 UE Context Management Procedures Group "8.6 Initial UE message" -- GitLab From c8d52cacd574bae934b2a752a23cad2b8403d0a5 Mon Sep 17 00:00:00 2001 From: ldtke Date: Tue, 24 Oct 2023 12:16:19 +0200 Subject: [PATCH 05/33] new and updated TPs in section 8.3 UE Context Management Procedures --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 236 ++++++++++++++++++++++++- test_purposes/ngap/TP_GNB_NGAP.tplan2 | 127 +++++++------ 2 files changed, 298 insertions(+), 65 deletions(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index a4d70f4..87dd2b3 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -41,7 +41,7 @@ Package TP_AMF { Expected behaviour ensure that { - when { + when { the IUT entity indicate a PDU session management procedure } then { @@ -273,6 +273,240 @@ Package TP_AMF { } // end Group 8.2 PDU Session Management Procedures + Group "UE Context Management Procedures" + { + + Group "Initial Context Setup" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_CMP_01 + + Test objective "Verify that the IUT can send a INITIAL CONTEXT SETUP REQUEST contains mandatory IEs." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.1.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a PDU initial context setup procedure + } + then { + the IUT entity sends a INITIAL_CONTEXT_SETUP_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + GUAMI, + PDU_Session_Resource_Setup_Request_List containing + PDU_SessionId, + S_NSSAI, + PDU_Session_Resource_Setup_Request_Transfer; + , + Allowed_NSSAI, + UE_Security_Capabilities, + Security_Key + ; + to the GNB entity + } + + } + + } // end TP_NGAP_AMF_CMP_01 + + } + + Group "UE Context Modification" + { + + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_CMP_02 + + Test objective "Verify that the IUT can send a UE CONTEXT MODIFICATION REQUEST contains mandatory IEs." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.4.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a PDU UE context modification procedure + } + then { + the IUT entity sends a UE_CONTEXT_MODIFICATION_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID + ; + to the GNB entity + } + + } + + + } // end TP TP_NGAP_AMF_CMP_02 + + } // End Group UE Context Modification + + Group "UE Context Suspend" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_CMP_05 + + Test objective "Verify that the AMF node successfully processes a UE CONTEXT SUSPEND REQUEST contains mandatory IEs and answers with UE CONTEXT SUSPEND REQUEST RESPONSE with successfully suspend UE context." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.11.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a UE_CONTEXT_SUSPEND_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Suspend_List containing + PDU_SessionId, + UE_Context_Suspend_Request_Transfer; + ; + from the GNB entity + } + then { + the IUT entity sends a UE_CONTEXT_SUSPEND_RESPONSE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID + ; + to the GNB entity + } + } + + } // end TP TP_NGAP_AMF_CMP_05 + + Test Purpose { + + TP Id TP_NGAP_AMF_CMP_06 + + Test objective "Verify that the AMF node successfully processes a UE CONTEXT SUSPEND REQUEST contains mandatory IEs and answers with UE CONTEXT SUSPEND FAILURE with failed suspension." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.11.3" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a UE_CONTEXT_SUSPEND_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Suspend_List containing + PDU_SessionId, + UE_Context_Suspend_Request_Transfer; + ; + from the GNB entity + } + then { + the IUT entity sends a UE_CONTEXT_SUSPEND_FAILURE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Cause + ; + to the GNB entity + } + } + + } // end TP TP_NGAP_AMF_CMP_06 + + }// end Group UE Context Suspend + + Group "UE Context Resume" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_CMP_07 + + Test objective "Verify that the AMF node successfully processes a UE CONTEXT RESUME REQUEST contains mandatory IEs and answers with UE CONTEXT RESUME RESPONSE with successfully resume UE context." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.11.3" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a UE_CONTEXT_RESUME_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + RRC_Resume_Cause, + PDU_Session_Resource_Resume_List containing + PDU_SessionId, + UE_Context_Resume_Request_Transfer; + ; + from the GNB entity + } + then { + the IUT entity sends a UE_CONTEXT_RESUME_RESPONSE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Resume_List containing + PDU_SessionId, + UE_Context_Resume_Response_Transfer; + ; + to the GNB entity + } + } + + } // end TP TP_NGAP_AMF_CMP_07 + + + } // end Group "UE Context Resume" + + } // End Group UE Context Management Procedures + } // End of Package TP_AMF diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index 56b8469..e013e9a 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -600,9 +600,9 @@ Package TP_GNB { PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. -// Initial conditions with { -// //TODO: Do we have an initial condition here? -// } + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO; check initial conditions + } Expected behaviour ensure that { @@ -650,15 +650,15 @@ Package TP_GNB { Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT MODIFICATION REQUEST contains mandatory IEs and answers with UE CONTEXT MODIFICATION FAILURE with failed PDU session." Reference - "ETSI TS 138 413 [1], Clauses 8.3.4.2" + "ETSI TS 138 413 [1], Clauses 8.3.4.3" Config Id CFG_GNB_01 PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. -// Initial conditions with { -// //TODO: Do we have an initial condition here? -// } + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO; check initial conditions + } Expected behaviour ensure that { @@ -688,15 +688,15 @@ Package TP_GNB { Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT MODIFICATION REQUEST contains mandatory IEs and answers with UE CONTEXT MODIFICATION RESPONSE with successfully modify UE context." Reference - "ETSI TS 138 413 [1], Clauses 8.3.4.3" + "ETSI TS 138 413 [1], Clauses 8.3.4.2" Config Id CFG_GNB_01 PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. -// Initial conditions with { -// //TODO: Do we have an initial condition here? -// } + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } Expected behaviour ensure that { @@ -729,7 +729,7 @@ Package TP_GNB { TP Id TP_NGAP_GNB_CMP_05 - Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT SUSPEND REQUEST contains mandatory IEs and answers with UE CONTEXT SUSPEND REQUEST RESPONSE with successfully suspend UE context." + Test objective "Verify that the IUT can send a UE CONTEXT SUSPEND REQUEST contains mandatory IEs" Reference "ETSI TS 138 413 [1], Clauses 8.3.11.2" @@ -738,75 +738,74 @@ Package TP_GNB { PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. -// Initial conditions with { -// //TODO: Do we have an initial condition here? -// } - + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO; check initial conditions + } + Expected behaviour ensure that { when { - the IUT entity receives a UE_CONTEXT_SUSPEND_REQUEST containing + the IUT entity indicate a UE context suspend request + } + then { + the IUT entity sends a UE_CONTEXT_SUSPEND_REQUEST containing AMF_UE_NGAP_ID, RAN_UE_NGAP_ID, PDU_Session_Resource_Suspend_List containing PDU_SessionId, UE_Context_Suspend_Request_Transfer; ; - from the AMF entity - } - then { - the IUT entity sends a UE_CONTEXT_SUSPEND_RESPONSE containing - AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID - ; - to the AMF entity + to the AMF entity } } } // end TP TP_NGAP_GNB_CMP_05 - Test Purpose { - - TP Id TP_NGAP_GNB_CMP_06 - - Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT SUSPEND REQUEST contains mandatory IEs and answers with UE CONTEXT SUSPEND FAILURE with failed suspension." - - Reference - "ETSI TS 138 413 [1], Clauses 8.3.11.3" - - Config Id CFG_GNB_01 - - PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. - -// Initial conditions with { -// //TODO: Do we have an initial condition here? -// } - - Expected behaviour - ensure that { - when { - the IUT entity receives a UE_CONTEXT_SUSPEND_REQUEST containing - AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID, - PDU_Session_Resource_Suspend_List containing - PDU_SessionId, - UE_Context_Suspend_Request_Transfer; - ; - from the AMF entity - } - then { - the IUT entity sends a UE_CONTEXT_SUSPEND_FAILURE containing - AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID, - Cause - ; - to the AMF entity - } - } + + }// end Group UE Context Suspend + + Group "UE Context Resume" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_CMP_06 + + Test objective "Verify that the IUT can send a UE CONTEXT RESUME REQUEST contains mandatory IEs" + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.11.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO; check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a UE context resume request + } + then { + the IUT entity sends a UE_CONTEXT_RESUME_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + RRC_Resume_Cause, + PDU_Session_Resource_Resume_List containing + PDU_SessionId, + UE_Context_Resume_Request_Transfer; + ; + to the AMF entity + } + } } // end TP TP_NGAP_GNB_CMP_06 - }// end Group UE Context Suspend + } // End Group "UE Context Resume" } // end Group 8.3 UE Context Management Procedures -- GitLab From 1f646cd3921a68911194f732cb80eee38948e7a7 Mon Sep 17 00:00:00 2001 From: ldtke Date: Tue, 24 Oct 2023 16:15:03 +0200 Subject: [PATCH 06/33] new TPs in section 8.3 UE Context Management Procedures --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 226 +++++++++++++++----- test_purposes/ngap/TP_GNB_NGAP.tplan2 | 273 ++++++++++++++++++------- 2 files changed, 377 insertions(+), 122 deletions(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index 87dd2b3..726b8d5 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -273,7 +273,7 @@ Package TP_AMF { } // end Group 8.2 PDU Session Management Procedures - Group "UE Context Management Procedures" + Group "8.3 UE Context Management Procedures" { Group "Initial Context Setup" @@ -325,6 +325,49 @@ Package TP_AMF { } + Group "UE Context Release (AMF initiated)" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_CMP_08 + + Test objective "Verify that the IUT can send a UE CONTEXT RELEASE COMMAND that contains mandatory IEs." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.3" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO:check Initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a UE context release command + } + then { + the IUT entity sends a UE_CONTEXT_RELEASE_COMMAND containing + CHOICE_UE_NGAP_IDs containing // TODO: check this list + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID + AMF_UE_NGAP_ID + ; + ; + to the GNB entity + } + } + + + } // end TP_NGAP_AMF_CMP_08 + + } // End Group "UE Context Release (AMF initiated)" + Group "UE Context Modification" { @@ -367,64 +410,105 @@ Package TP_AMF { } // End Group UE Context Modification - Group "UE Context Suspend" - { - import all from Ngap_Common; - - Test Purpose { + Group "Connection Establishment Indication" + { + import all from Ngap_Common; + + Test Purpose { - TP Id TP_NGAP_AMF_CMP_05 + TP Id TP_NGAP_AMF_CMP_09 - Test objective "Verify that the AMF node successfully processes a UE CONTEXT SUSPEND REQUEST contains mandatory IEs and answers with UE CONTEXT SUSPEND REQUEST RESPONSE with successfully suspend UE context." + Test objective "Verify that the IUT can send a Connection Establishment Indication that contains mandatory IEs." Reference - "ETSI TS 138 413 [1], Clauses 8.3.11.2" + "ETSI TS 138 413 [1], Clauses 8.3.6.2" Config Id CFG_AMF_01 PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. - Initial conditions with { + Initial conditions with { the UE entity isRegisteredTo the AMF // TODO: check initial conditions } Expected behaviour ensure that { - when { - the IUT entity receives a UE_CONTEXT_SUSPEND_REQUEST containing + when { + the IUT entity indicate a PDU UE context modification procedure + } + then { + the IUT entity sends a CONNECTION_ESTABLISHMENT_INDICATION containing AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID, - PDU_Session_Resource_Suspend_List containing - PDU_SessionId, - UE_Context_Suspend_Request_Transfer; + RAN_UE_NGAP_ID ; - from the GNB entity + to the GNB entity } + + } + + } // End TP TP_NGAP_AMF_CMP_09 + + } // End Group "Connection Establishment Indication" + + Group "Connection Establishment Indication" + { + + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_CMP_10 + + Test objective "Verify that the IUT can send a AMF CP Relocation Indication that contains mandatory IEs." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.7.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a AMF CP relocation indication procedure + } then { - the IUT entity sends a UE_CONTEXT_SUSPEND_RESPONSE containing + the IUT entity sends a AMF_CP_RELOCATION_INDICATION containing AMF_UE_NGAP_ID, RAN_UE_NGAP_ID ; - to the GNB entity - } - } - - } // end TP TP_NGAP_AMF_CMP_05 + to the GNB entity + } + + } + + } // End TP TP_NGAP_AMF_CMP_10 + + } // End Group "Connection Establishment Indication" + + Group "UE Context Suspend" + { + import all from Ngap_Common; Test Purpose { - TP Id TP_NGAP_AMF_CMP_06 + TP Id TP_NGAP_AMF_CMP_05 - Test objective "Verify that the AMF node successfully processes a UE CONTEXT SUSPEND REQUEST contains mandatory IEs and answers with UE CONTEXT SUSPEND FAILURE with failed suspension." + Test objective "Verify that the AMF node successfully processes a UE CONTEXT SUSPEND REQUEST contains mandatory IEs and answers with UE CONTEXT SUSPEND REQUEST RESPONSE with successfully suspend UE context." Reference - "ETSI TS 138 413 [1], Clauses 8.3.11.3" + "ETSI TS 138 413 [1], Clauses 8.3.11.2" Config Id CFG_AMF_01 PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. - Initial conditions with { + Initial conditions with { the UE entity isRegisteredTo the AMF // TODO: check initial conditions } @@ -441,28 +525,21 @@ Package TP_AMF { from the GNB entity } then { - the IUT entity sends a UE_CONTEXT_SUSPEND_FAILURE containing + the IUT entity sends a UE_CONTEXT_SUSPEND_RESPONSE containing AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID, - Cause + RAN_UE_NGAP_ID ; to the GNB entity } } - } // end TP TP_NGAP_AMF_CMP_06 - - }// end Group UE Context Suspend - - Group "UE Context Resume" - { - import all from Ngap_Common; + } // end TP TP_NGAP_AMF_CMP_05 Test Purpose { - TP Id TP_NGAP_AMF_CMP_07 + TP Id TP_NGAP_AMF_CMP_06 - Test objective "Verify that the AMF node successfully processes a UE CONTEXT RESUME REQUEST contains mandatory IEs and answers with UE CONTEXT RESUME RESPONSE with successfully resume UE context." + Test objective "Verify that the AMF node successfully processes a UE CONTEXT SUSPEND REQUEST contains mandatory IEs and answers with UE CONTEXT SUSPEND FAILURE with failed suspension." Reference "ETSI TS 138 413 [1], Clauses 8.3.11.3" @@ -478,34 +555,81 @@ Package TP_AMF { Expected behaviour ensure that { when { - the IUT entity receives a UE_CONTEXT_RESUME_REQUEST containing + the IUT entity receives a UE_CONTEXT_SUSPEND_REQUEST containing AMF_UE_NGAP_ID, RAN_UE_NGAP_ID, - RRC_Resume_Cause, - PDU_Session_Resource_Resume_List containing + PDU_Session_Resource_Suspend_List containing PDU_SessionId, - UE_Context_Resume_Request_Transfer; + UE_Context_Suspend_Request_Transfer; ; from the GNB entity } then { - the IUT entity sends a UE_CONTEXT_RESUME_RESPONSE containing + the IUT entity sends a UE_CONTEXT_SUSPEND_FAILURE containing AMF_UE_NGAP_ID, RAN_UE_NGAP_ID, - PDU_Session_Resource_Resume_List containing - PDU_SessionId, - UE_Context_Resume_Response_Transfer; + Cause ; to the GNB entity } } - } // end TP TP_NGAP_AMF_CMP_07 - + } // end TP TP_NGAP_AMF_CMP_06 - } // end Group "UE Context Resume" + }// end Group UE Context Suspend + + Group "UE Context Resume" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_CMP_07 + + Test objective "Verify that the AMF node successfully processes a UE CONTEXT RESUME REQUEST contains mandatory IEs and answers with UE CONTEXT RESUME RESPONSE with successfully resume UE context." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.12.3" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a UE_CONTEXT_RESUME_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + RRC_Resume_Cause, + PDU_Session_Resource_Resume_List containing + PDU_SessionId, + UE_Context_Resume_Request_Transfer; + ; + from the GNB entity + } + then { + the IUT entity sends a UE_CONTEXT_RESUME_RESPONSE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Resume_List containing + PDU_SessionId, + UE_Context_Resume_Response_Transfer; + ; + to the GNB entity + } + } + + } // end TP TP_NGAP_AMF_CMP_07 + + + } // end Group "UE Context Resume" - } // End Group UE Context Management Procedures + } // End Group 8.3 UE Context Management Procedures } // End of Package TP_AMF diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index e013e9a..0fb69c0 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -534,10 +534,10 @@ Package TP_GNB { { import all from Ngap_Common; - Group "Initial Context Setup" - { - import all from Ngap_Common; - + Group "Initial Context Setup" + { + import all from Ngap_Common; + Test Purpose { TP Id TP_NGAP_GNB_CMP_01 @@ -637,58 +637,190 @@ Package TP_GNB { } // end TP_NGAP_GNB_CMP_02 } // end Group Initial Context Setup + Group "UE Context Release (AMF initiated)" + { + import all from Ngap_Common; - - Group "UE Context Modification" - { - import all from Ngap_Common; - - Test Purpose { + Test Purpose { - TP Id TP_NGAP_GNB_CMP_03 - - Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT MODIFICATION REQUEST contains mandatory IEs and answers with UE CONTEXT MODIFICATION FAILURE with failed PDU session." + TP Id TP_NGAP_GNB_CMP_07 + + Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT RELEASE COMMAND that contains mandatory IEs and answers with UE CONTEXT RELEASE COMPLETE with successfully release UE context." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.3" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a UE_CONTEXT_RELEASE_COMMAND containing + CHOICE_UE_NGAP_IDs containing // TODO: check this list + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID + AMF_UE_NGAP_ID + ; + ; + from the AMF entity + } + then { + the IUT entity sends a UE_CONTEXT_RELEASE_COMPLETE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_List containing + PDU_SessionId, + PDU_Session_Resource_Release_Response_Transfer; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_CMP_07 + + } // End Group "UE Context Release (AMF initiated)" + + Group "UE Context Modification" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_CMP_03 + + Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT MODIFICATION REQUEST contains mandatory IEs and answers with UE CONTEXT MODIFICATION FAILURE with failed PDU session." - Reference - "ETSI TS 138 413 [1], Clauses 8.3.4.3" - - Config Id CFG_GNB_01 - - PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. - - Initial conditions with { - the UE entity isRegisteredTo the AMF // TODO; check initial conditions - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a UE_CONTEXT_MODIFICATION_REQUEST containing - AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID - ; - from the AMF entity - } - then { - the IUT entity sends a UE_CONTEXT_MODIFICATION_FAILURE containing - AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID, - Cause - ; - to the AMF entity - } - } + Reference + "ETSI TS 138 413 [1], Clauses 8.3.4.3" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO; check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a UE_CONTEXT_MODIFICATION_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID + ; + from the AMF entity + } + then { + the IUT entity sends a UE_CONTEXT_MODIFICATION_FAILURE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Cause + ; + to the AMF entity + } + } + + } // end TP TP_NGAP_GNB_CMP_03 + + Test Purpose { + + TP Id TP_NGAP_GNB_CMP_04 + + Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT MODIFICATION REQUEST contains mandatory IEs and answers with UE CONTEXT MODIFICATION RESPONSE with successfully modify UE context." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.4.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a UE_CONTEXT_MODIFICATION_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID + ; + from the AMF entity + } + then { + the IUT entity sends a UE_CONTEXT_MODIFICATION_RESPONSE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID + ; + to the AMF entity + } + } + + } // end TP TP_NGAP_GNB_CMP_04 + + } // end Group UE Context Modification + + Group "RRC Inactive Transition Report" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_CMP_07 + + Test objective "Verify that the IUT can send a RRC INACTIVE TRANSITION REPORT that contains mandatory IEs" + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.5" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a RRC inactive transition report + } + then { + the IUT entity sends a RRC_INACTIVE_TRANSITION_REPORT containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + RRC_State, + User_Location_Information + ; + to the AMF entity + } + } - } // end TP TP_NGAP_GNB_CMP_03 - - Test Purpose { + } // end TP TP_NGAP_GNB_CMP_07 + + } // End Group "RRC Inactive Transition Report" + + Group "RAN CP Relocation Indication" + { + + import all from Ngap_Common; + + Test Purpose { - TP Id TP_NGAP_GNB_CMP_04 + TP Id TP_NGAP_GNB_CMP_08 - Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT MODIFICATION REQUEST contains mandatory IEs and answers with UE CONTEXT MODIFICATION RESPONSE with successfully modify UE context." + Test objective "Verify that the IUT can send a RAN CP Relocation Indication that contains mandatory IEs." Reference - "ETSI TS 138 413 [1], Clauses 8.3.4.2" + "ETSI TS 138 413 [1], Clauses 8.3.8.2" Config Id CFG_GNB_01 @@ -700,28 +832,27 @@ Package TP_GNB { Expected behaviour ensure that { - when { - the IUT entity receives a UE_CONTEXT_MODIFICATION_REQUEST containing - AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID - ; - from the AMF entity - } + when { + the IUT entity indicate a RAN CP relocation indication procedure + } then { - the IUT entity sends a UE_CONTEXT_MODIFICATION_RESPONSE containing - AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID + the IUT entity sends a RAN_CP_RELOCATION_INDICATION containing + RAN_UE_NGAP_ID, + 5G_S_TMSI, + E_ULTRA_CGI, + TAI, + UL_CP_Security_Information ; - to the AMF entity - } - } - - } // end TP TP_NGAP_GNB_CMP_04 - - } // end Group UE Context Modification - - - Group "UE Context Suspend" + to the AMF entity + } + + } + + } // End TP TP_NGAP_GNB_CMP_08 + + } // End Group "RAN CP Relocation Indication" + + Group "UE Context Suspend" { import all from Ngap_Common; @@ -739,7 +870,7 @@ Package TP_GNB { PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. Initial conditions with { - the UE entity isRegisteredTo the AMF // TODO; check initial conditions + the UE entity isRegisteredTo the AMF // TODO: check initial conditions } Expected behaviour @@ -775,14 +906,14 @@ Package TP_GNB { Test objective "Verify that the IUT can send a UE CONTEXT RESUME REQUEST contains mandatory IEs" Reference - "ETSI TS 138 413 [1], Clauses 8.3.11.2" + "ETSI TS 138 413 [1], Clauses 8.3.12.2" Config Id CFG_GNB_01 PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. Initial conditions with { - the UE entity isRegisteredTo the AMF // TODO; check initial conditions + the UE entity isRegisteredTo the AMF // TODO: check initial conditions } Expected behaviour -- GitLab From 6d6b00adee4376f7ab00f57f998aeaf899d8c7f0 Mon Sep 17 00:00:00 2001 From: ldtke Date: Tue, 24 Oct 2023 17:22:06 +0200 Subject: [PATCH 07/33] new TPs in section 8.4 UE Mobility Management Procedures --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 107 +++++++++++++++++++++++++ test_purposes/ngap/TP_GNB_NGAP.tplan2 | 55 +++++++++++++ 2 files changed, 162 insertions(+) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index 726b8d5..a6ec432 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -631,6 +631,113 @@ Package TP_AMF { } // End Group 8.3 UE Context Management Procedures + Group "8.4 UE Mobility Management Procedures" + { + + Group "Handover Preparation" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_MMP_01 + + Test objective "Verify that the AMF node successfully processes a HANDOVER REQUIRED message contains mandatory IEs and answers with HANDOVER COMMAND with successfully handover." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.11.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HANDOVER_REQUIRED containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Handover_Typ, + Cause, + Target_ID, + PDU_Session_Resource_List containing + PDU_SessionId, + Handover_Required_Transfer, + Source_to_Target_Transparent_Container + ; + ; + from the GNB entity + } + then { + the IUT entity sends a HANDOVER_COMMAND containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Handover_Typ, + PDU_Session_Resource_List containing + PDU_SessionId, + Handover_Command_Transfer + ; + ; + to the GNB entity + } + } + + } // end TP TP_NGAP_AMF_MMP_01 + + Test Purpose { + + TP Id TP_NGAP_AMF_MMP_02 + + Test objective "Verify that the AMF node successfully processes a HANDOVER REQUIRED message contains mandatory IEs and answers with IHANDOVER PREPARATION FAILURE with failed handover." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.11.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HANDOVER_REQUIRED containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Handover_Typ, + Cause, + Target_ID, + PDU_Session_Resource_List containing + PDU_SessionId, + Handover_Required_Transfer, + Source_to_Target_Transparent_Container + ; + ; + from the GNB entity + } + then { + the IUT entity sends a HANDOVER_PREPARATION_FAILURE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Cause + ; + to the GNB entity + } + } + + } // end TP TP_NGAP_AMF_MMP_02 + + } // End Group "Handover Preparation" + + + } // End Group "8.4 UE Mobility Management Procedures" } // End of Package TP_AMF diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index 0fb69c0..69d77ef 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -940,6 +940,61 @@ Package TP_GNB { } // end Group 8.3 UE Context Management Procedures + Group "8.4 UE Mobility Management Procedures" + { + + Group "Handover Preparation" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_MMP_01 + + Test objective "Verify that the IUT can send a HANDOVER REQUIRED message contains mandatory IEs." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.11.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate the initiation Handover Required + } + then { + the IUT entity sends a HANDOVER_REQUIRED containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Handover_Typ, + Cause, + Target_ID, + PDU_Session_Resource_List containing + PDU_SessionId, + Handover_Required_Transfer, + Source_to_Target_Transparent_Container + ; + ; + to the AMF entity + } + + } + + } // end TP TP_NGAP_GNB_MMP_01 + + + } // End Group "Handover Preparation" + + + } // End Group "8.4 UE Mobility Management Procedures" + Group "8.6 Initial UE message" { import all from Ngap_Common; -- GitLab From 4c87cafc6e840124102caf665f1bc6551d010c16 Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Wed, 25 Oct 2023 11:59:33 +0200 Subject: [PATCH 08/33] improve TPs concretize PDU session list structure. add TP_NGAP_GNB_CMP_09 --- test_purposes/ngap/TP_GNB_NGAP.tplan2 | 104 ++++++++++++++++++++------ 1 file changed, 80 insertions(+), 24 deletions(-) diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index 69d77ef..a762f9d 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -563,10 +563,12 @@ Package TP_GNB { RAN_UE_NGAP_ID, GUAMI, PDU_Session_Resource_Setup_Request_List containing - PDU_SessionId, - S_NSSAI, - PDU_Session_Resource_Setup_Request_Transfer; - , + PDU_Session_Resource_Setup_Request_Item containing + PDU_SessionId indicating value PX_PDU_ID, + S_NSSAI, + PDU_Session_Resource_Setup_Request_Transfer + ; + ;, Allowed_NSSAI, UE_Security_Capabilities, Security_Key @@ -612,10 +614,12 @@ Package TP_GNB { RAN_UE_NGAP_ID, GUAMI, PDU_Session_Resource_Setup_Request_List containing - PDU_SessionId, - S_NSSAI, - PDU_Session_Resource_Setup_Request_Transfer; - , + PDU_Session_Resource_Setup_Request_Item containing + PDU_SessionId, + S_NSSAI, + PDU_Session_Resource_Setup_Request_Transfer + ; + ;, Allowed_NSSAI, UE_Security_Capabilities, Security_Key @@ -627,7 +631,7 @@ Package TP_GNB { AMF_UE_NGAP_ID, RAN_UE_NGAP_ID, PDU_Session_Resource_Failed_to_Setup_List containing - PDU_SessionId, + PDU_SessionId indicating value PX_PDU_ID, PDU_Session_Resource_Setup_Unsuccessful_Transfer; ; to the AMF entity @@ -645,7 +649,7 @@ Package TP_GNB { TP Id TP_NGAP_GNB_CMP_07 - Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT RELEASE COMMAND that contains mandatory IEs and answers with UE CONTEXT RELEASE COMPLETE with successfully release UE context." + Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT RELEASE COMMAND that contains both the AMF UE NGAP ID IE and the RAN UE NGAP ID IE and answers with UE CONTEXT RELEASE COMPLETE with successfully release UE context." Reference "ETSI TS 138 413 [1], Clauses 8.3.3" @@ -662,10 +666,10 @@ Package TP_GNB { ensure that { when { the IUT entity receives a UE_CONTEXT_RELEASE_COMMAND containing - CHOICE_UE_NGAP_IDs containing // TODO: check this list - AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID - AMF_UE_NGAP_ID + CHOICE_UE_NGAP_IDs containing + UE_NGAP_ID_pair containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID ; ; from the AMF entity @@ -675,8 +679,10 @@ Package TP_GNB { AMF_UE_NGAP_ID, RAN_UE_NGAP_ID, PDU_Session_Resource_List containing - PDU_SessionId, - PDU_Session_Resource_Release_Response_Transfer; + PDU_Session_Resource_Item containing + PDU_SessionId indicating value PX_PDU_ID, + PDU_Session_Resource_Release_Response_Transfer + ; ; to the AMF entity } @@ -684,6 +690,50 @@ Package TP_GNB { } // end TP_NGAP_GNB_CMP_07 + Test Purpose { + + TP Id TP_NGAP_GNB_CMP_09 + + Test objective "Verify that the NG-RAN node successfully processes a UE CONTEXT RELEASE COMMAND where both the AMF UE NGAP ID IE and the RAN UE NGAP ID IE are not available and answers with UE CONTEXT RELEASE COMPLETE with successfully release UE context." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.3" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a UE_CONTEXT_RELEASE_COMMAND containing + CHOICE_UE_NGAP_IDs containing + AMF_UE_NGAP_ID containing + AMF_UE_NGAP_ID + ; + ; + from the AMF entity + } + then { + the IUT entity sends a UE_CONTEXT_RELEASE_COMPLETE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_List containing + PDU_Session_Resource_Item containing + PDU_SessionId indicating value PX_PDU_ID, + PDU_Session_Resource_Release_Response_Transfer + ; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_CMP_09 + } // End Group "UE Context Release (AMF initiated)" Group "UE Context Modification" @@ -883,8 +933,10 @@ Package TP_GNB { AMF_UE_NGAP_ID, RAN_UE_NGAP_ID, PDU_Session_Resource_Suspend_List containing - PDU_SessionId, - UE_Context_Suspend_Request_Transfer; + PDU_Session_Resource_Suspend_Item containing + PDU_SessionId indicating value PX_PDU_ID, + UE_Context_Suspend_Request_Transfer + ; ; to the AMF entity } @@ -927,8 +979,10 @@ Package TP_GNB { RAN_UE_NGAP_ID, RRC_Resume_Cause, PDU_Session_Resource_Resume_List containing - PDU_SessionId, - UE_Context_Resume_Request_Transfer; + PDU_Session_Resource_Suspend_Item containing + PDU_SessionId indicating value PX_PDU_ID, + UE_Context_Resume_Request_Transfer + ; ; to the AMF entity } @@ -977,11 +1031,13 @@ Package TP_GNB { Cause, Target_ID, PDU_Session_Resource_List containing - PDU_SessionId, - Handover_Required_Transfer, - Source_to_Target_Transparent_Container + PDU_Session_Resource_Item containing + PDU_SessionId, + Handover_Required_Transfer ; - ; + ;, + Source_to_Target_Transparent_Container + ; to the AMF entity } -- GitLab From 39e0bb31a9b7d19724c553f1d5fc504bd3c0da3c Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Wed, 25 Oct 2023 12:08:23 +0200 Subject: [PATCH 09/33] fix syntax error within TPs --- test_purposes/ngap/TP_GNB_NGAP.tplan2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index a762f9d..f1af073 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -672,6 +672,7 @@ Package TP_GNB { RAN_UE_NGAP_ID ; ; + ; from the AMF entity } then { @@ -684,6 +685,7 @@ Package TP_GNB { PDU_Session_Resource_Release_Response_Transfer ; ; + ; to the AMF entity } } @@ -716,6 +718,7 @@ Package TP_GNB { AMF_UE_NGAP_ID ; ; + ; from the AMF entity } then { @@ -728,6 +731,7 @@ Package TP_GNB { PDU_Session_Resource_Release_Response_Transfer ; ; + ; to the AMF entity } } @@ -938,6 +942,7 @@ Package TP_GNB { UE_Context_Suspend_Request_Transfer ; ; + ; to the AMF entity } } @@ -984,6 +989,7 @@ Package TP_GNB { UE_Context_Resume_Request_Transfer ; ; + ; to the AMF entity } } -- GitLab From 132b357e056bbd3b14202545802341301fbadeec Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Wed, 25 Oct 2023 12:24:38 +0200 Subject: [PATCH 10/33] concretize PDU session list structure in several TPs --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 68 +++++++++++++++++--------- 1 file changed, 44 insertions(+), 24 deletions(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index a6ec432..82d4e3e 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -308,10 +308,12 @@ Package TP_AMF { RAN_UE_NGAP_ID, GUAMI, PDU_Session_Resource_Setup_Request_List containing - PDU_SessionId, - S_NSSAI, - PDU_Session_Resource_Setup_Request_Transfer; - , + PDU_Session_Resource_Setup_Request_Item containing + PDU_SessionId indicating value PX_PDU_ID, + S_NSSAI, + PDU_Session_Resource_Setup_Request_Transfer + ; + ;, Allowed_NSSAI, UE_Security_Capabilities, Security_Key @@ -519,9 +521,12 @@ Package TP_AMF { AMF_UE_NGAP_ID, RAN_UE_NGAP_ID, PDU_Session_Resource_Suspend_List containing - PDU_SessionId, - UE_Context_Suspend_Request_Transfer; + PDU_Session_Resource_Suspend_Item containing + PDU_SessionId, + UE_Context_Suspend_Request_Transfer + ; ; + ; from the GNB entity } then { @@ -559,9 +564,12 @@ Package TP_AMF { AMF_UE_NGAP_ID, RAN_UE_NGAP_ID, PDU_Session_Resource_Suspend_List containing - PDU_SessionId, - UE_Context_Suspend_Request_Transfer; + PDU_Session_Resource_Suspend_Item containing + PDU_SessionId indicating value PX_PDU_ID, + UE_Context_Suspend_Request_Transfer + ; ; + ; from the GNB entity } then { @@ -607,9 +615,12 @@ Package TP_AMF { RAN_UE_NGAP_ID, RRC_Resume_Cause, PDU_Session_Resource_Resume_List containing - PDU_SessionId, - UE_Context_Resume_Request_Transfer; + PDU_Session_Resource_Resume_Item containing + PDU_SessionId indicating value PX_PDU_ID, + UE_Context_Resume_Request_Transfer + ; ; + ; from the GNB entity } then { @@ -617,9 +628,12 @@ Package TP_AMF { AMF_UE_NGAP_ID, RAN_UE_NGAP_ID, PDU_Session_Resource_Resume_List containing - PDU_SessionId, - UE_Context_Resume_Response_Transfer; + PDU_Session_Resource_Resume_Item containing + PDU_SessionId indicating value PX_PDU_ID, + UE_Context_Resume_Response_Transfer + ; ; + ; to the GNB entity } } @@ -665,23 +679,27 @@ Package TP_AMF { Cause, Target_ID, PDU_Session_Resource_List containing - PDU_SessionId, - Handover_Required_Transfer, - Source_to_Target_Transparent_Container + PDU_Session_Resource_Item containing + PDU_SessionId indicating value PX_PDU_ID, + Handover_Required_Transfer ; - ; + ;, + Source_to_Target_Transparent_Container + ; from the GNB entity } then { the IUT entity sends a HANDOVER_COMMAND containing AMF_UE_NGAP_ID, RAN_UE_NGAP_ID, - Handover_Typ, - PDU_Session_Resource_List containing - PDU_SessionId, - Handover_Command_Transfer + Handover_Type, + PDU_Session_Resource_Handover_List containing + PDU_Session_Resource_Handover_Item containing + PDU_SessionId indicating value PX_PDU_ID, + Handover_Command_Transfer ; ; + ; to the GNB entity } } @@ -715,11 +733,13 @@ Package TP_AMF { Cause, Target_ID, PDU_Session_Resource_List containing - PDU_SessionId, - Handover_Required_Transfer, - Source_to_Target_Transparent_Container + PDU_Session_Resource_Item containing + PDU_SessionId, + Handover_Required_Transfer ; - ; + ;, + Source_to_Target_Transparent_Container + ; from the GNB entity } then { -- GitLab From b5d3f6c71baf290dcfe3a49685ab0bfdbdc44a3d Mon Sep 17 00:00:00 2001 From: ldtke Date: Wed, 25 Oct 2023 12:32:18 +0200 Subject: [PATCH 11/33] new TP in 8.4 --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 65 ++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index a6ec432..6c6f49e 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -734,8 +734,73 @@ Package TP_AMF { } // end TP TP_NGAP_AMF_MMP_02 + + } // End Group "Handover Preparation" + Group "Handover Resource Allocation" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_MMP_03 + + Test objective "Verify that the AMF node successfully processes a HANDOVER REQUIRED message contains mandatory IEs and answers with IHANDOVER PREPARATION FAILURE with failed handover." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.11.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HANDOVER_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Handover_Typ, + Cause, + UE_Aggregate_Maximum_Bit_Rate, + UE_Security_Capabilitues + PDU_Session_Setup_Resource_List containing + PDU_Session_Setup_Resource_Item containing + PDU_SessionId, + S_NSSAI, + Handover_Request_Transfer + ; + ;, + Allowed_NSSAI, + Source_to_Target_Transparent_Container, + GUAMI + ; + from the GNB entity + } + then { + the IUT entity sends a HANDOVER_REQUEST_ACKNOWLEDGE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Admitted_List containing + PDU_Session_Resource_Admitted_Item containing + PDU_SessionId, + Handover_Request_Acknowledge_Transfer + ; + ;, + Target_to_Source_Transparent_Container + ; + to the GNB entity + } + } + + } // end TP TP_NGAP_AMF_MMP_03 + } // End Group "Handover Resource Allocation" + } // End Group "8.4 UE Mobility Management Procedures" -- GitLab From 4fb3e70bcd4eb8a360fed21dad0559a515372d4f Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Wed, 25 Oct 2023 12:54:33 +0200 Subject: [PATCH 12/33] add TP for clause 8.3.3 fix TP_NGAP_AMF_CMP_08 --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 48 +++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 5 deletions(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index 82d4e3e..3e5bff4 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -335,7 +335,7 @@ Package TP_AMF { TP Id TP_NGAP_AMF_CMP_08 - Test objective "Verify that the IUT can send a UE CONTEXT RELEASE COMMAND that contains mandatory IEs." + Test objective "Verify that the IUT can send a UE CONTEXT RELEASE COMMAND that contains both the AMF UE NGAP ID IE and the RAN UE NGAP ID IE." Reference "ETSI TS 138 413 [1], Clauses 8.3.3" @@ -355,12 +355,13 @@ Package TP_AMF { } then { the IUT entity sends a UE_CONTEXT_RELEASE_COMMAND containing - CHOICE_UE_NGAP_IDs containing // TODO: check this list - AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID - AMF_UE_NGAP_ID + CHOICE_UE_NGAP_IDs containing + UE_NGAP_ID_pair containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID ; ; + ; to the GNB entity } } @@ -368,6 +369,43 @@ Package TP_AMF { } // end TP_NGAP_AMF_CMP_08 + Test Purpose { + + TP Id TP_NGAP_AMF_CMP_11 + + Test objective "Verify that the IUT can send a UE CONTEXT RELEASE COMMAND where both the AMF UE NGAP ID IE and the RAN UE NGAP ID IE are not available." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.3" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO:check Initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a UE context release command + } + then { + the IUT entity sends a UE_CONTEXT_RELEASE_COMMAND containing + CHOICE_UE_NGAP_IDs containing + AMF_UE_NGAP_ID containing + AMF_UE_NGAP_ID + ; + ; + ; + to the GNB entity + } + } + + + } // end TP_NGAP_AMF_CMP_11 + } // End Group "UE Context Release (AMF initiated)" Group "UE Context Modification" -- GitLab From 57885f3f4b8c691802c70989a663a4b3e1bacd4b Mon Sep 17 00:00:00 2001 From: ldtke Date: Wed, 25 Oct 2023 16:28:35 +0200 Subject: [PATCH 13/33] new TPs in section 8.4 --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 122 ++++++++++++++++++++++++- 1 file changed, 118 insertions(+), 4 deletions(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index b36d23d..fc7a4ee 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -659,7 +659,7 @@ Package TP_AMF { Test objective "Verify that the AMF node successfully processes a HANDOVER REQUIRED message contains mandatory IEs and answers with HANDOVER COMMAND with successfully handover." Reference - "ETSI TS 138 413 [1], Clauses 8.3.11.2" + "ETSI TS 138 413 [1], Clauses 8.4.1.2" Config Id CFG_AMF_01 @@ -713,7 +713,7 @@ Package TP_AMF { Test objective "Verify that the AMF node successfully processes a HANDOVER REQUIRED message contains mandatory IEs and answers with IHANDOVER PREPARATION FAILURE with failed handover." Reference - "ETSI TS 138 413 [1], Clauses 8.3.11.2" + "ETSI TS 138 413 [1], Clauses 8.4.1.3" Config Id CFG_AMF_01 @@ -766,10 +766,10 @@ Package TP_AMF { TP Id TP_NGAP_AMF_MMP_03 - Test objective "Verify that the AMF node successfully processes a HANDOVER REQUIRED message contains mandatory IEs and answers with IHANDOVER PREPARATION FAILURE with failed handover." + Test objective "Verify that the AMF node successfully processes a HANDOVER_REQUEST message that contains mandatory IEs and answers with HANDOVER REQUEST ACKNOWLEDGE to acknowledge the handover." Reference - "ETSI TS 138 413 [1], Clauses 8.3.11.2" + "ETSI TS 138 413 [1], Clauses 8.4.2.2" Config Id CFG_AMF_01 @@ -822,6 +822,120 @@ Package TP_AMF { } // End Group "Handover Resource Allocation" + Group "Path Switch Request" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_MMP_03 + + Test objective "Verify that the AMF node successfully processes a PATH SWITCH REQUEST message that contains mandatory IEs and answers with PATH SWITCH REQUEST ACKNOWLEDGE to acknowledge the path switch." + + Reference + "ETSI TS 138 413 [1], Clauses 8.4.4.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PATH_SWITCH_REQUEST containing + RAN_UE_NGAP_ID, + Source_AMF_UE_NGAP_ID, + User_Location_Information, + UE_Security_Capabilities, + PDU_Session_Resources_to_be_Switched_in_Downlink_List containing + PDU_Session_Resources_to_be_Switched_in_Downlink_Item containing + PDU_SessionId, + Path_Switch_Request_Transfer + ; + ; + ; + from the GNB entity + } + then { + the IUT entity sends a PATH_SWITCH_REQUEST_ACKNOWLEDGE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Security_Context + PDU_Session_Resource_Switched_List containing + PDU_Session_Resource_Switched_Item containing + PDU_SessionId, + Path_Switch_Request_Acknowledge_Transfer + ; + ; + ; + to the GNB entity + } + } + + } // End TP_NGAP_AMF_MMP_03 + + Test Purpose { + + TP Id TP_NGAP_AMF_MMP_04 + + Test objective "Verify that the AMF node successfully processes a PATH SWITCH REQUEST message that contains mandatory IEs and two PDU Sessions with sam ID and answers with PATH SWITCH REQUEST FAILURE." + + Reference + "ETSI TS 138 413 [1], Clauses 8.4.4.4" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PATH_SWITCH_REQUEST containing + RAN_UE_NGAP_ID, + Source_AMF_UE_NGAP_ID, + User_Location_Information, + UE_Security_Capabilities, + PDU_Session_Resources_to_be_Switched_in_Downlink_List containing + PDU_Session_Resources_to_be_Switched_in_Downlink_Item containing + PDU_SessionId, + Path_Switch_Request_Transfer + ;, + PDU_Session_Resources_to_be_Switched_in_Downlink_Item containing + PDU_SessionId, + Path_Switch_Request_Transfer + ; + ; + ; + from the GNB entity + } + then { + the IUT entity sends a PATH_SWITCH_REQUEST_FAILURE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Released_List containing + PDU_Session_Resource_Released_Item containing + PDU_SessionId, + Path_Switch_Request_Unsuccessful_Transfer + ; + ; + ; + to the GNB entity + } + } + + } // End TP_NGAP_AMF_MMP_04 + + } // End Group "Path Switch Request" + + } // End Group "8.4 UE Mobility Management Procedures" } // End of Package TP_AMF -- GitLab From 0b9c60409891fbb87adf5227a5ca7f7ccdf5fcfd Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Wed, 25 Oct 2023 16:33:32 +0200 Subject: [PATCH 14/33] add TP TP_NGAP_AMF_CMP_12 --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 56 +++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index 3e5bff4..2b86f30 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -490,7 +490,7 @@ Package TP_AMF { } // End Group "Connection Establishment Indication" - Group "Connection Establishment Indication" + Group "AMF CP Relocation Indication" { import all from Ngap_Common; @@ -529,7 +529,59 @@ Package TP_AMF { } // End TP TP_NGAP_AMF_CMP_10 - } // End Group "Connection Establishment Indication" + } // End Group "AMF CP Relocation Indication" + + Group "Retrieve UE information" + { + + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_CMP_12 + + Test objective "Verify that the IUT can successfully request UE information from the AMF." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.9.2", + "ETSI TS 138 413 [1], Clauses 8.3.10.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a RETRIEVE_UE_INFORMATION containing + 5G_S_TMSI containing + AMF_Set_ID, + AMF_Pointer, + 5G_TMSI + ; + ; + from the GNB entity + } + then { + the IUT entity sends a UE_INFORMATION_TRANSFER containing + 5G_S_TMSI containing + AMF_Set_ID, + AMF_Pointer, + 5G_TMSI + ; + ; + to the GNB entity + } + + } + + } // End TP TP_NGAP_GNB_CMP_12 + + } // End Group "Retrieve UE information" Group "UE Context Suspend" { -- GitLab From 30b4fb190bc16eeb1ed41fbcbd2e88c28591f943 Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Wed, 25 Oct 2023 17:51:23 +0200 Subject: [PATCH 15/33] add TP_NGAP_GNB_CMP_10 --- test_purposes/ngap/TP_GNB_NGAP.tplan2 | 47 +++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index f1af073..d217642 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -640,6 +640,53 @@ Package TP_GNB { } // end TP_NGAP_GNB_CMP_02 } // end Group Initial Context Setup + + Group "UE Context Release (NG-RAN node initiated)" + { + + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_CMP_10 + + Test objective "Verify that the NG-RAN node successfully requests the AMF to release the UE-associated logical NG-connection." + + Reference + "ETSI TS 138 413 [1], Clauses 8.3.2.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a UE context release request + } + then { + the IUT entity sends a UE_CONTEXT_RELEASE_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID + PDU_Session_Resource_List containing + PDS_Session_Resource_Item containing + PDU_Session_ID indicating value PX_PDU_ID + ; + ;, + Cause + ; + to the AMF entity + } + + } + + } // End TP TP_NGAP_GNB_CMP_10 + + } // End Group "UE Context Release (NG-RAN node initiated)" Group "UE Context Release (AMF initiated)" { -- GitLab From bf9dc71b05e259a50168c20ca3d626565529b36f Mon Sep 17 00:00:00 2001 From: ldtke Date: Wed, 25 Oct 2023 17:52:04 +0200 Subject: [PATCH 16/33] new TPs section 8.4 --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 133 ++++++++++++++++++++++++- 1 file changed, 128 insertions(+), 5 deletions(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index 4510ce8..85d4046 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -918,7 +918,7 @@ Package TP_AMF { Test Purpose { - TP Id TP_NGAP_AMF_MMP_03 + TP Id TP_NGAP_AMF_MMP_04 Test objective "Verify that the AMF node successfully processes a PATH SWITCH REQUEST message that contains mandatory IEs and answers with PATH SWITCH REQUEST ACKNOWLEDGE to acknowledge the path switch." @@ -966,13 +966,13 @@ Package TP_AMF { } } - } // End TP_NGAP_AMF_MMP_03 + } // End TP_NGAP_AMF_MMP_04 Test Purpose { - TP Id TP_NGAP_AMF_MMP_04 + TP Id TP_NGAP_AMF_MMP_05 - Test objective "Verify that the AMF node successfully processes a PATH SWITCH REQUEST message that contains mandatory IEs and two PDU Sessions with sam ID and answers with PATH SWITCH REQUEST FAILURE." + Test objective "Verify that the AMF node successfully processes a PATH SWITCH REQUEST message that contains mandatory IEs and two PDU Sessions with same ID and answers with PATH SWITCH REQUEST FAILURE." Reference "ETSI TS 138 413 [1], Clauses 8.4.4.4" @@ -1021,11 +1021,134 @@ Package TP_AMF { } } - } // End TP_NGAP_AMF_MMP_04 + } // End TP_NGAP_AMF_MMP_05 } // End Group "Path Switch Request" + Group "Handover Cancellation" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_MMP_06 + + Test objective "Verify that the AMF node successfully processes a PATH SWITCH REQUEST message that contains mandatory IEs and answers with PATH SWITCH REQUEST FAILURE to confirm that the ongoing handover was cancelled." + + Reference + "ETSI TS 138 413 [1], Clauses 8.4.5.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HANDOVER_CANCEL containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Cause + ; + from the GNB entity + } + then { + the IUT entity sends a HANDOVER_CANCEL_ACKNOWLEDGE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID + ; + to the GNB entity + } + } + + } // End TP_NGAP_AMF_MMP_05 + + } // End Group "Handover Cancellation" + Group "Downlink RAN Status Transfer" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_MMP_07 + + Test objective "Verify that the AMF node successfully sends a UPLINK RAN STATUS TRANSFER message that contains mandatory IEs." + + Reference + "ETSI TS 138 413 [1], Clauses 8.4.5.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a Uplink RAN Status Transfer procedure + } + then { + the IUT entity sends a UPLINK_RAN_STATUS_TRANSFER containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + RAN_Status_Transfer_Transparent_Container + ; + to the GNB entity + } + } + + } // End TP_NGAP_AMF_MMP_07 + + } // End Group "Downlink RAN Status Transfer" + + Group "Downlink RAN Status Transfer" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_MMP_08 + + Test objective "Verify that the AMF node successfully sends a UPLINK RAN EARLY STATUS TRANSFER message that contains mandatory IEs." + + Reference + "ETSI TS 138 413 [1], Clauses 8.4.7.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a Uplink RAN Early Status Transfer procedure + } + then { + the IUT entity sends a UPLINK_RAN_EARLY_STATUS_TRANSFER containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Early_Status_Transfer_Transparent_Container + ; + to the GNB entity + } + } + + } // End TP_NGAP_AMF_MMP_08 + + } // End Group "Downlink RAN Status Transfer" + } // End Group "8.4 UE Mobility Management Procedures" } // End of Package TP_AMF -- GitLab From 310808befd9efcf07c4efbc3377e69535f965463 Mon Sep 17 00:00:00 2001 From: ldtke Date: Thu, 26 Oct 2023 11:22:47 +0200 Subject: [PATCH 17/33] new TPs in section 8.4 --- test_purposes/ngap/TP_GNB_NGAP.tplan2 | 167 ++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index d217642..84276c3 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -1100,8 +1100,175 @@ Package TP_GNB { } // End Group "Handover Preparation" + + Group "Path Switch Request" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_MMP_05 + + Test objective "Verify that the AMF node successfully sends a PATH SWITCH REQUEST message that contains mandatory IEs to the AMF." + + Reference + "ETSI TS 138 413 [1], Clauses 8.4.4.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate the Path Switch Request + } + then { + the IUT entity sends a PATH_SWITCH_REQUEST containing + RAN_UE_NGAP_ID, + Source_AMF_UE_NGAP_ID, + User_Location_Information, + UE_Security_Capabilities, + PDU_Session_Resources_to_be_Switched_in_Downlink_List containing + PDU_Session_Resources_to_be_Switched_in_Downlink_Item containing + PDU_SessionId, + Path_Switch_Request_Transfer + ; + ; + ; + to the AMF entity + } + + } + + + } // End TP_NGAP_GNB_MMP_05 + } // End Group "Path Switch Request" + Group "Uplink RAN Status Transfer" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_MMP_02 + + Test objective "Verify that the NG-RAN node successfully send a Uplink RAN Status Transfer message to the AMF." + + Reference + "ETSI TS 138 413 [1], Clauses 8.4.6.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a UE Uplink RAN Status Transfer + } + then { + the IUT entity sends a UPLINK_RAN_STATUS_TRANSFER containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + RAN_Status_Transfer_Transparent_Container + ; + to the AMF entity + } + + } // End TP_NGAP_GNB_MMP_02 + + + } + } // End Group "Uplink RAN Status Transfer" + + Group "Handover Success" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_MMP_03 + + Test objective "Verify that the NG-RAN node successfully sends a Handover Success message to the AMF." + + Reference + "ETSI TS 138 413 [1], Clauses 8.4.8.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a UE handover success + } + then { + the IUT entity sends a HANDOVER_SUCCESS containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID + ; + to the AMF entity + } + } + } // End TP_NGAP_GNB_MMP_03 + + } // End Group "Handover Success" + + Group "Uplink RAN Early Status Transfer" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_MMP_04 + + Test objective "Verify that the NG-RAN node successfully sends a Uplink RAN Early Status Transfer message to the AMF." + + Reference + "ETSI TS 138 413 [1], Clauses 8.4.9.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a Uplink RAN Early Status Transfer + } + then { + the IUT entity sends a UPLINK_RAN_EARLY_STATUS_TRANSFER containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Early_Status_Transfer_Transparent_Container + ; + to the AMF entity + } + } + } // End TP_NGAP_GNB_MMP_04 + + } // End Group "Uplink RAN Early Status Transfer" + + } // End Group "8.4 UE Mobility Management Procedures" Group "8.6 Initial UE message" -- GitLab From 098d7b8f48443dcf00aea178cba3e971646a21ed Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Thu, 26 Oct 2023 12:30:10 +0200 Subject: [PATCH 18/33] add TPs for section 8.6 extend the commons file in the context of NAS messages --- test_purposes/Ngap_Common.tplan2 | 2 + test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 48 +++++++++ test_purposes/ngap/TP_GNB_NGAP.tplan2 | 129 ++++++++++++++++++------- 3 files changed, 142 insertions(+), 37 deletions(-) diff --git a/test_purposes/Ngap_Common.tplan2 b/test_purposes/Ngap_Common.tplan2 index 8a9a87d..a369b14 100644 --- a/test_purposes/Ngap_Common.tplan2 +++ b/test_purposes/Ngap_Common.tplan2 @@ -77,6 +77,8 @@ Package Ngap_Common { - isAttachingToNetwork - hasDoneSubscription - indicate + - isCMIDLE + - isCMCONNECTED ; } // End of Domain section diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index 85d4046..071ea84 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -1150,6 +1150,54 @@ Package TP_AMF { } // End Group "Downlink RAN Status Transfer" } // End Group "8.4 UE Mobility Management Procedures" + + Group "8.6 Transport of NAS Messages Procedures" + { + Group "Downlink NAS Transport" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_NAS_01 + + Test objective "Verify that the IUT can send an DOWNLINK NAS TRANSPORT message to carry NAS information over the NG interface." + + Reference + "ETSI TS 138 413 [1], Clauses 8.6.2.2 and 9.2.5.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 + + //TODO: Section 8.6.2.1 describes additional triggers for the DOWNLINK NAS TRANSPORT + + Expected behaviour + ensure that { + when { + the IUT entity sends an INITIAL_UE_MESSAGE containing + RAN_UE_NGAP_ID, + NAS_PDU, + User_Location_Information, + RRC_Establishmnet_Cause + ; + from the GNB entity + } + then { + the IUT entity sends an DOWNLINK_NAS_TRANSPORT containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + NAS_PDU + ; + to the GNB entity + } + } + + } // end TP_NGAP_AMF_NAS_01 + + } // end "Downlink NAS Transport" + + } // end Group "8.6 Transport of NAS Messages Procedures" } // End of Package TP_AMF diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index d217642..d20d02f 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -1104,45 +1104,100 @@ Package TP_GNB { } // End Group "8.4 UE Mobility Management Procedures" - Group "8.6 Initial UE message" + Group "8.6 Transport of NAS Messages Procedures" { - import all from Ngap_Common; - - Test Purpose { - - TP Id TP_NGAP_GNB_NAS_01 - - Test objective "Verify that the IUT can send an INITIAL_UE_MESSAGE to indicate the initiation of a NAS Transport procedure" - - Reference - "ETSI TS 138 413 [1], Clauses 8.6.1.2 and 9.2.5.1" - - Config Id CFG_GNB_01 - - PICS Selection PICS_A3/5_1 - - Initial conditions with { - the IUT entity indicate the initiation "of a NAS Transport procedure" - } - - Expected behaviour - ensure that { - when { - the IUT entity indicate the initiation "of a NAS Transport procedure" - } - then { - the IUT entity sends an INITIAL_UE_MESSAGE containing - RAN_UE_NGAP_ID, - NAS_PDU, - User_Location, - RRC_Establishmnet_Cause; - to the AMF entity - } - } - - } // end TP_NGAP_AMF_PDU_01 + Group "Initial UE Message" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_NAS_01 + + Test objective "Verify that the IUT can send an INITIAL_UE_MESSAGE to indicate the initiation of a NAS Transport procedure" + + Reference + "ETSI TS 138 413 [1], Clauses 8.6.1.2 and 9.2.5.1" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isCMIDLE in the GNB entity + } + + /* TODO: + * + * Maybe improve trigger (see sequence diagram 4.24.1-1 in ts_123501): + * If the UE is in CM-IDLE, the UE first establishes an RRC connection + * OR + * sends the RRCEarlyDataRequest message and sends a NAS message as part of this + * + */ + Expected behaviour + ensure that { + when { + the IUT entity indicate the initiation "of a NAS Transport procedure" + } + then { + the IUT entity sends an INITIAL_UE_MESSAGE containing + RAN_UE_NGAP_ID, + NAS_PDU, + User_Location_Information, + RRC_Establishmnet_Cause + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_NAS_01 + } + + Group "Uplink NAS Transport" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_NAS_02 + + Test objective "Verify that the IUT can send an UPLINK NAS TRANSPORT message to the AMF." + + Reference + "ETSI TS 138 413 [1], Clauses 8.6.3.2 and 9.2.5.3" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isCMCONNECTED in the GNB entity + } + + //TODO: More information about RRC UL message + Expected behaviour + ensure that { + when { + the IUT entity receives an RRC_UL_MESSAGE + from the UE entity + } + then { + the IUT entity sends an UPLINK_NAS_TRANSPORT containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + NAS_PDU, + User_Location_Information + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_NAS_02 + + } // end "Uplink NAS Transport" - } // end Group 8.6 Initial UE message + } // end Group "8.6 Transport of NAS Messages Procedures" } // End of Package TP_GNB -- GitLab From 64f3f7625d684cf45e5e1c94c7b972bc3c8d532a Mon Sep 17 00:00:00 2001 From: ldtke Date: Thu, 26 Oct 2023 12:31:44 +0200 Subject: [PATCH 19/33] new TPs and corrections in section 8.4 --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 30 ++--- test_purposes/ngap/TP_GNB_NGAP.tplan2 | 149 ++++++++++++++++++++++++- 2 files changed, 158 insertions(+), 21 deletions(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index 85d4046..d7a10b9 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -856,7 +856,7 @@ Package TP_AMF { TP Id TP_NGAP_AMF_MMP_03 - Test objective "Verify that the AMF node successfully processes a HANDOVER_REQUEST message that contains mandatory IEs and answers with HANDOVER REQUEST ACKNOWLEDGE to acknowledge the handover." + Test objective "Verify that the AMF node successfully sends a HANDOVER_REQUEST message that contains mandatory IEs to the GNB." Reference "ETSI TS 138 413 [1], Clauses 8.4.2.2" @@ -872,7 +872,10 @@ Package TP_AMF { Expected behaviour ensure that { when { - the IUT entity receives a HANDOVER_REQUEST containing + the IUT entity indicate a Handover Request procedure + } + then { + the IUT entity sends a HANDOVER_REQUEST containing AMF_UE_NGAP_ID, RAN_UE_NGAP_ID, Handover_Typ, @@ -890,25 +893,12 @@ Package TP_AMF { Source_to_Target_Transparent_Container, GUAMI ; - from the GNB entity + to the GNB entity } - then { - the IUT entity sends a HANDOVER_REQUEST_ACKNOWLEDGE containing - AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID, - PDU_Session_Resource_Admitted_List containing - PDU_Session_Resource_Admitted_Item containing - PDU_SessionId, - Handover_Request_Acknowledge_Transfer - ; - ;, - Target_to_Source_Transparent_Container - ; - to the GNB entity - } - } + } + + } // end TP TP_NGAP_AMF_MMP_03 - } // end TP TP_NGAP_AMF_MMP_03 } // End Group "Handover Resource Allocation" @@ -1033,7 +1023,7 @@ Package TP_AMF { TP Id TP_NGAP_AMF_MMP_06 - Test objective "Verify that the AMF node successfully processes a PATH SWITCH REQUEST message that contains mandatory IEs and answers with PATH SWITCH REQUEST FAILURE to confirm that the ongoing handover was cancelled." + Test objective "Verify that the AMF node successfully processes a HANDOVER CANCEL message that contains mandatory IEs and answers with PHANDOVER CANCEL ACKNOWLEDGE to confirm that the ongoing handover was cancelled." Reference "ETSI TS 138 413 [1], Clauses 8.4.5.2" diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index 84276c3..090ca53 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -1100,7 +1100,113 @@ Package TP_GNB { } // End Group "Handover Preparation" - + + Group "Handover Resource Allocation" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_MMP_08 + + Test objective "Verify that the GNB node successfully processes a HANDOVER_REQUEST message that contains mandatory IEs and answers with HANDOVER REQUEST ACKNOWLEDGE to acknowledge the handover." + + Reference + "ETSI TS 138 413 [1], Clauses 8.4.2.2" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HANDOVER_REQUEST containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Handover_Typ, + Cause, + UE_Aggregate_Maximum_Bit_Rate, + UE_Security_Capabilitues + PDU_Session_Setup_Resource_List containing + PDU_Session_Setup_Resource_Item containing + PDU_SessionId, + S_NSSAI, + Handover_Request_Transfer + ; + ;, + Allowed_NSSAI, + Source_to_Target_Transparent_Container, + GUAMI + ; + from the AMF entity + } + then { + the IUT entity sends a HANDOVER_REQUEST_ACKNOWLEDGE containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + PDU_Session_Resource_Admitted_List containing + PDU_Session_Resource_Admitted_Item containing + PDU_SessionId, + Handover_Request_Acknowledge_Transfer + ; + ;, + Target_to_Source_Transparent_Container + ; + to the AMF entity + } + } + + } // end TP TP_NGAP_GNB_MMP_08 + + } // End Group "Handover Resource Allocation" + + Group "Handover Notification" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_MMP_07 + + Test objective "Verify that the AMF node successfully sends a HANDOVER NOTIFICATION message that contains mandatory IEs to the AMF." + + Reference + "ETSI TS 138 413 [1], Clauses 8.4.3.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate the Handover Notification + } + then { + the IUT entity sends a HANDOVER_NOTIFY containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + User_Location_Information + ; + to the AMF entity + } + + } + + + } // End TP_NGAP_GNB_MMP_07 + + } // End Group "Handover Notification" + Group "Path Switch Request" { import all from Ngap_Common; @@ -1150,6 +1256,47 @@ Package TP_GNB { } // End Group "Path Switch Request" + Group "Handover Cancellation" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_MMP_06 + + Test objective "Verify that the GNB node successfully sends a HANDOVER CANCEL message that contains mandatory IEs to the AMF." + + Reference + "ETSI TS 138 413 [1], Clauses 8.4.5.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a Handover Cancel + } + then { + the IUT entity sends a HANDOVER_CANCEL containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Cause + ; + to the AMF entity + } + + } // End TP_NGAP_GNB_MMP_06 + + + } // End TP_NGAP_GNB_MMP_06 + } // End Group "Handover Cancellation" + Group "Uplink RAN Status Transfer" { import all from Ngap_Common; -- GitLab From 94b0c97df58130cb353d892ca1780c632821f50c Mon Sep 17 00:00:00 2001 From: stl Date: Thu, 26 Oct 2023 12:32:16 +0200 Subject: [PATCH 20/33] new TPs and corections in section 8.4 --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index d7a10b9..f2d17ee 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -900,8 +900,7 @@ Package TP_AMF { } // end TP TP_NGAP_AMF_MMP_03 } // End Group "Handover Resource Allocation" - - + Group "Path Switch Request" { import all from Ngap_Common; -- GitLab From e985c986defc636fbb6a2ee08076922dca2bee4e Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Thu, 26 Oct 2023 15:47:06 +0200 Subject: [PATCH 21/33] add missing default TPs for section 8.6 --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 38 ++++++++++++++++++++- test_purposes/ngap/TP_GNB_NGAP.tplan2 | 46 ++++++++++++++++++++++++-- 2 files changed, 80 insertions(+), 4 deletions(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index edfb6c9..2fa777c 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -1155,7 +1155,7 @@ Package TP_AMF { Reference "ETSI TS 138 413 [1], Clauses 8.6.2.2 and 9.2.5.2" - Config Id CFG_GNB_01 + Config Id CFG_AMF_01 PICS Selection PICS_A3/5_1 @@ -1185,6 +1185,42 @@ Package TP_AMF { } // end TP_NGAP_AMF_NAS_01 } // end "Downlink NAS Transport" + + Group "Reroute NAS Request" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_NAS_02 + + Test objective "Verify that the IUT can send an REROUTE NAS REQUEST message to reroute the INITIAL UE MESSAGE message to another AMF." + + Reference + "ETSI TS 138 413 [1], Clauses 8.6.5.2 and 9.2.5.5" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 + + Expected behaviour + ensure that { + when { + the IUT entity indicate the initiation "of a Reroute NAS Request procedure" + } + then { + the IUT entity sends an REROUTE_NAS_REQUEST containing + RAN_UE_NGAP_ID, + NAS_PDU, + AMF_Set_ID + ; + to the GNB entity + } + } + + } // end TP_NGAP_AMF_NAS_02 + + } // end "Reroute NAS Request" } // end Group "8.6 Transport of NAS Messages Procedures" diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index 22c20c6..4f5b7a5 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -1509,9 +1509,49 @@ Package TP_GNB { } // end TP_NGAP_GNB_NAS_02 - } // end "Uplink NAS Transport" + } // end "NAS Non Delivery Indication" + + Group "NAS Non Delivery Indication" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_NAS_03 + + Test objective "Verify that the IUT can send an NAS Non Delivery Indication message to the AMF." + + Reference + "ETSI TS 138 413 [1], Clauses 8.6.4.2 and 9.2.5.4" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isNoLongerAvailable to the GNB entity + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate the initiation "of a NAS Non Delivery Indication procedure" + } + then { + the IUT entity sends an NAS_NON_DELIVERY_INDICATION containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + NAS_PDU, + Cause + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_NAS_03 + + } // end "NAS Non Delivery Indication" } // end Group "8.6 Transport of NAS Messages Procedures" -} // End of Package TP_GNB - +} // End of Package TP_GNB \ No newline at end of file -- GitLab From 61f1cff69f05cd071586797967a4aa370485686a Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Thu, 26 Oct 2023 16:37:54 +0200 Subject: [PATCH 22/33] add TPs for the section 8.8 --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 48 ++++++++++++++++++++++ test_purposes/ngap/TP_GNB_NGAP.tplan2 | 55 ++++++++++++++++++++++++-- 2 files changed, 99 insertions(+), 4 deletions(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index 2fa777c..2a3e477 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -1223,6 +1223,54 @@ Package TP_AMF { } // end "Reroute NAS Request" } // end Group "8.6 Transport of NAS Messages Procedures" + + Group "8.8 Configuration Transfer Procedure" + { + Group "Downlink RAN Configuration Transfer" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_CTP_01 + + Test objective "Verify that the IUT can send an Downlink RAN Configuration Transfer message to transfer RAN configuration information to the NG-RAN." + + Reference + "ETSI TS 138 413 [1], Clauses 8.8.2 and 9.2.7.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 + + Expected behaviour + ensure that { + when { + the IUT entity indicate the initiation "of a Downlink RAN Configuration Transfer" + } + then { + the IUT entity sends an NAS_NON_DELIVERY_INDICATION containing + SON_Configuration_Transfer containing + Target_RAN_Node_ID containing + Global_RAN_Node_ID, + Selected_TAI + ;, + Source_RAN_Node_ID containing + Global_RAN_Node_ID, + Selected_TAI + ;, + SON_Information + ; + ; + to the GNB entity + } + } + + } // end TP_NGAP_AMF_CTP_01 + + } // end "Downlink RAN Configuration Transfer" + + } // end Group "8.8 Configuration Transfer Procedure" } // End of Package TP_AMF diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index 4f5b7a5..f85ac03 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -1415,7 +1415,6 @@ Package TP_GNB { } // End Group "Uplink RAN Early Status Transfer" - } // End Group "8.4 UE Mobility Management Procedures" Group "8.6 Transport of NAS Messages Procedures" @@ -1466,7 +1465,7 @@ Package TP_GNB { } } // end TP_NGAP_GNB_NAS_01 - } + } // end "Initial UE Message" Group "Uplink NAS Transport" { @@ -1509,7 +1508,7 @@ Package TP_GNB { } // end TP_NGAP_GNB_NAS_02 - } // end "NAS Non Delivery Indication" + } // end "Uplink NAS Transport" Group "NAS Non Delivery Indication" { @@ -1519,7 +1518,7 @@ Package TP_GNB { TP Id TP_NGAP_GNB_NAS_03 - Test objective "Verify that the IUT can send an NAS Non Delivery Indication message to the AMF." + Test objective "Verify that the IUT can send a NAS Non Delivery Indication message to the AMF." Reference "ETSI TS 138 413 [1], Clauses 8.6.4.2 and 9.2.5.4" @@ -1553,5 +1552,53 @@ Package TP_GNB { } // end "NAS Non Delivery Indication" } // end Group "8.6 Transport of NAS Messages Procedures" + + Group "8.8 Configuration Transfer Procedure" + { + Group "Uplink RAN Configuration Transfer" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_CTP_01 + + Test objective "Verify that the IUT can send an Uplink RAN Configuration Transfer message to transfer RAN configuration information to the AMF." + + Reference + "ETSI TS 138 413 [1], Clauses 8.8.1 and 9.2.7.1" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 + + Expected behaviour + ensure that { + when { + the IUT entity indicate the initiation "of a Uplink RAN Configuration Transfer" + } + then { + the IUT entity sends an NAS_NON_DELIVERY_INDICATION containing + SON_Configuration_Transfer containing + Target_RAN_Node_ID containing + Global_RAN_Node_ID, + Selected_TAI + ;, + Source_RAN_Node_ID containing + Global_RAN_Node_ID, + Selected_TAI + ;, + SON_Information + ; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_CTP_01 + + } // end "Uplink RAN Configuration Transfer" + + } // end Group "8.8 Configuration Transfer Procedure" } // End of Package TP_GNB \ No newline at end of file -- GitLab From 6872851abf937f1efab2b481cbb3df8206671dce Mon Sep 17 00:00:00 2001 From: ldtke Date: Thu, 26 Oct 2023 16:40:06 +0200 Subject: [PATCH 23/33] new TPs in section 8.7 --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 262 +++++++++++++++++++++++++ test_purposes/ngap/TP_GNB_NGAP.tplan2 | 7 + 2 files changed, 269 insertions(+) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index edfb6c9..8a79f89 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -1188,5 +1188,267 @@ Package TP_AMF { } // end Group "8.6 Transport of NAS Messages Procedures" + Group "8.7 Interface Management Procedures" + { + Group "NG Setup" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_IMP_01 + + Test objective "Verify that the AMF node successfully processes a NG RESET REQEST message that contains mandatory IEs and answers with NG SETUP ACKNOWLEDGE to acknowledge the setup." + + Reference + "ETSI TS 138 413 [1], Clauses 8.7.1.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a NG_SETUP_REQUEST containing + Global_RAN_Node_ID, + Supported_TA_List containing + Supported_TA_Item containing + TAC, + Broadcast_PLMN_List containing + Broadcast_PLMN_Item containing + PLMN_Identity, + TAI_Slice_Support_List + ; + ; + ; + ;, + Default_Paging_DRX + ; + from the GNB entity + } + then { + the IUT entity sends a NG_SETUP_RESPONSE containing + AMF_Name, + Served_GUAMI_List containing + Served_GUAMI_Item containing + GUAMI + ; + ;, + Relative_AMF_Capacity, + PLMN_Support_List containing + PLMN_Support_Item containing + PLMN_Identity, + Slice_Support_List, + Extended_Slice_Support_List + ; + ; + ; + to the GNB entity + } + } + + } // end TP TP_NGAP_AMF_IMP_01 + + Test Purpose { + + TP Id TP_NGAP_AMF_IMP_02 + + Test objective "Verify that the AMF node successfully decline a NG RESET REQEST message and answers with NG SETUP FAILURE when the AMF is not able to handle the request." + + Reference + "ETSI TS 138 413 [1], Clauses 8.7.1.3" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + // AMF cannot accept the setup + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a NG_SETUP_REQUEST containing + Global_RAN_Node_ID, + Supported_TA_List containing + Supported_TA_Item containing + TAC, + Broadcast_PLMN_List containing + Broadcast_PLMN_Item containing + PLMN_Identity, + TAI_Slice_Support_List + ; + ; + ; + ;, + Default_Paging_DRX + ; + from the GNB entity + } + then { + the IUT entity sends a NG_SETUP_FAILURE containing + Cause + ; + to the GNB entity + } + } + + } // end TP TP_NGAP_AMF_IMP_02 + + } // End Group "NG Setup" + + Group "RAN Configuration Update" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_IMP_03 + + Test objective "Verify that the AMF node successfully processes a RAN CONFIGURATION UPDATE message with RAN CONFIGURATION UPDATE ACKNOWLEDGE to acknowledge the update." + + Reference + "ETSI TS 138 413 [1], Clauses 8.7.2.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + // AMF cannot accept the setup + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a RAN_CONFIGURATION_UPDATE containing + Supported_TA_List containing + Supported_TA_Item containing + TAC, + Broadcast_PLMN_List containing + Broadcast_PLMN_Item containing + PLMN_Identity, + TAI_Slice_Support_List + ; + ; + ; + ; + ; + from the GNB entity + } + then { + the IUT entity sends a RAN_CONFIGURATION_UPDATE_ACKNOWLEDGE + to the GNB entity + } + } + + } // end TP TP_NGAP_AMF_IMP_03 + + Test Purpose { + + TP Id TP_NGAP_AMF_IMP_04 + + Test objective "Verify that the AMF node successfully declines a RAN CONFIGURATION UPDATE message with RAN CONFIGURATION UPDATE FAILURE when the AMF is not able to handle the request." + + Reference + "ETSI TS 138 413 [1], Clauses 8.7.2.3" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + // AMF cannot accept the setup + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a RAN_CONFIGURATION_UPDATE containing + Supported_TA_List containing + Supported_TA_Item containing + TAC, + Broadcast_PLMN_List containing + Broadcast_PLMN_Item containing + PLMN_Identity, + TAI_Slice_Support_List + ; + ; + ; + ; + ; + from the GNB entity + } + then { + the IUT entity sends a RAN_CONFIGURATION_UPDATE_FAILURE containing + Cause; + to the GNB entity + } + } + + } // end TP TP_NGAP_AMF_IMP_04 + + } // End Group "RAN Configuration Update" + + Group "AMF Configuration Update" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_IMP_05 + + Test objective "Verify that the AMF node successfully declines a AMF CONFIGURATION UPDATE message with RAN CONFIGURATION UPDATE FAILURE when the AMF is not able to handle the request." + + Reference + "ETSI TS 138 413 [1], Clauses 8.7.3.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + // AMF cannot accept the setup + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a RAN_CONFIGURATION_UPDATE containing + Supported_TA_List containing + Supported_TA_Item containing + TAC, + Broadcast_PLMN_List containing + Broadcast_PLMN_Item containing + PLMN_Identity, + TAI_Slice_Support_List + ; + ; + ; + ; + ; + from the GNB entity + } + then { + the IUT entity sends a RAN_CONFIGURATION_UPDATE_FAILURE containing + Cause; + to the GNB entity + } + } + + } // end TP TP_NGAP_AMF_IMP_05 + } // End Group "AMF Configuration Update" + + } // End Group "8.7 Interface Management Procedures" } // End of Package TP_AMF diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index 22c20c6..7e5ab4b 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -1513,5 +1513,12 @@ Package TP_GNB { } // end Group "8.6 Transport of NAS Messages Procedures" + Group "8.7 Interface Management Procedures" + { + Group "NG Setup" + { + + } // End Group "NG Setup" + } } // End of Package TP_GNB -- GitLab From f377782c5b622524adbe8f3b7ef5d6d054b1393e Mon Sep 17 00:00:00 2001 From: stl Date: Thu, 26 Oct 2023 16:40:28 +0200 Subject: [PATCH 24/33] new TPs in section 8.7 --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 180 ++++++++++++++----------- 1 file changed, 98 insertions(+), 82 deletions(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index 8a79f89..f11c40a 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -1354,48 +1354,48 @@ Package TP_AMF { Test Purpose { - TP Id TP_NGAP_AMF_IMP_04 - - Test objective "Verify that the AMF node successfully declines a RAN CONFIGURATION UPDATE message with RAN CONFIGURATION UPDATE FAILURE when the AMF is not able to handle the request." - - Reference - "ETSI TS 138 413 [1], Clauses 8.7.2.3" - - Config Id CFG_AMF_01 - - PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. - - Initial conditions with { - the UE entity isRegisteredTo the AMF // TODO: check initial conditions - // AMF cannot accept the setup - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a RAN_CONFIGURATION_UPDATE containing - Supported_TA_List containing - Supported_TA_Item containing - TAC, - Broadcast_PLMN_List containing - Broadcast_PLMN_Item containing - PLMN_Identity, - TAI_Slice_Support_List - ; - ; - ; - ; - ; - from the GNB entity - } - then { - the IUT entity sends a RAN_CONFIGURATION_UPDATE_FAILURE containing - Cause; - to the GNB entity - } - } - - } // end TP TP_NGAP_AMF_IMP_04 + TP Id TP_NGAP_AMF_IMP_04 + + Test objective "Verify that the AMF node successfully declines a AMF CONFIGURATION UPDATE message with RAN CONFIGURATION UPDATE FAILURE when the AMF is not able to handle the request." + + Reference + "ETSI TS 138 413 [1], Clauses 8.7.3.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + // AMF cannot accept the setup + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a RAN_CONFIGURATION_UPDATE containing + Supported_TA_List containing + Supported_TA_Item containing + TAC, + Broadcast_PLMN_List containing + Broadcast_PLMN_Item containing + PLMN_Identity, + TAI_Slice_Support_List + ; + ; + ; + ; + ; + from the GNB entity + } + then { + the IUT entity sends a RAN_CONFIGURATION_UPDATE_FAILURE containing + Cause; + to the GNB entity + } + } + + } // end TP TP_NGAP_AMF_IMP_04 } // End Group "RAN Configuration Update" @@ -1405,48 +1405,64 @@ Package TP_AMF { Test Purpose { - TP Id TP_NGAP_AMF_IMP_05 - - Test objective "Verify that the AMF node successfully declines a AMF CONFIGURATION UPDATE message with RAN CONFIGURATION UPDATE FAILURE when the AMF is not able to handle the request." - - Reference - "ETSI TS 138 413 [1], Clauses 8.7.3.2" - - Config Id CFG_AMF_01 - - PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. - - Initial conditions with { - the UE entity isRegisteredTo the AMF // TODO: check initial conditions - // AMF cannot accept the setup - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a RAN_CONFIGURATION_UPDATE containing - Supported_TA_List containing - Supported_TA_Item containing - TAC, - Broadcast_PLMN_List containing - Broadcast_PLMN_Item containing - PLMN_Identity, - TAI_Slice_Support_List - ; - ; - ; - ; - ; - from the GNB entity - } - then { - the IUT entity sends a RAN_CONFIGURATION_UPDATE_FAILURE containing - Cause; - to the GNB entity - } - } + TP Id TP_NGAP_AMF_IMP_05 + + Test objective "Verify that the AMF node successfully processes a AMF CONFIGURATION UPDATE message with RAN CONFIGURATION UPDATE ACKNOWLEDGE to acknowledge the update." + + Reference + "ETSI TS 138 413 [1], Clauses 8.7.2.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a AMF_CONFIGURATION_UPDATE containing + Served_GUAMI_List containing + Served_GUAMI_Item containing + GUAMI + ; + ;, + PLMN_Support_List containing + PLMN_Support_Item containing + PLMN_Identity, + Slice_Support_List + ; + ;, + AMF_TNL_Association_to_Add_List containing + AMF_TNL_Association_to_Add_item containing + AMF_TNL_Association_Address, + TNL_Address_Weight_Factor + ; + ;, + AMF_TNL_Association_to_Update_List containing + AMF_TNL_Association_to_Update_Item containing + AMF_TNL_Association_Address + ; + ; + ; + from the GNB entity + } + then { + the IUT entity sends a AMF_CONFIGURATION_UPDATE_ACKNOWLEDGE containing + AMF_TNL_Association_Setup_List containing + AMF_TNL_Association_Setup_Item containing + AMF_TNL_Association_Address + ; + ; + ; + to the GNB entity + } + } } // end TP TP_NGAP_AMF_IMP_05 + } // End Group "AMF Configuration Update" } // End Group "8.7 Interface Management Procedures" -- GitLab From 2e48b4e3ce928b04691c6015aabd05c99463b7d8 Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Thu, 26 Oct 2023 17:34:26 +0200 Subject: [PATCH 25/33] create TP groups in AMF --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 136 ++++++++++++++++--------- 1 file changed, 88 insertions(+), 48 deletions(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index 4c1b9d2..4115f94 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -1224,54 +1224,6 @@ Package TP_AMF { } // end Group "8.6 Transport of NAS Messages Procedures" - Group "8.8 Configuration Transfer Procedure" - { - Group "Downlink RAN Configuration Transfer" - { - import all from Ngap_Common; - - Test Purpose { - - TP Id TP_NGAP_AMF_CTP_01 - - Test objective "Verify that the IUT can send an Downlink RAN Configuration Transfer message to transfer RAN configuration information to the NG-RAN." - - Reference - "ETSI TS 138 413 [1], Clauses 8.8.2 and 9.2.7.2" - - Config Id CFG_AMF_01 - - PICS Selection PICS_A3/5_1 - - Expected behaviour - ensure that { - when { - the IUT entity indicate the initiation "of a Downlink RAN Configuration Transfer" - } - then { - the IUT entity sends an NAS_NON_DELIVERY_INDICATION containing - SON_Configuration_Transfer containing - Target_RAN_Node_ID containing - Global_RAN_Node_ID, - Selected_TAI - ;, - Source_RAN_Node_ID containing - Global_RAN_Node_ID, - Selected_TAI - ;, - SON_Information - ; - ; - to the GNB entity - } - } - - } // end TP_NGAP_AMF_CTP_01 - - } // end "Downlink RAN Configuration Transfer" - - } // end Group "8.8 Configuration Transfer Procedure" - Group "8.7 Interface Management Procedures" { Group "NG Setup" @@ -1550,5 +1502,93 @@ Package TP_AMF { } // End Group "AMF Configuration Update" } // End Group "8.7 Interface Management Procedures" + + Group "8.8 Configuration Transfer Procedure" + { + Group "Downlink RAN Configuration Transfer" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_CTP_01 + + Test objective "Verify that the IUT can send an Downlink RAN Configuration Transfer message to transfer RAN configuration information to the NG-RAN." + + Reference + "ETSI TS 138 413 [1], Clauses 8.8.2 and 9.2.7.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 + + Expected behaviour + ensure that { + when { + the IUT entity indicate the initiation "of a Downlink RAN Configuration Transfer" + } + then { + the IUT entity sends an NAS_NON_DELIVERY_INDICATION containing + SON_Configuration_Transfer containing + Target_RAN_Node_ID containing + Global_RAN_Node_ID, + Selected_TAI + ;, + Source_RAN_Node_ID containing + Global_RAN_Node_ID, + Selected_TAI + ;, + SON_Information + ; + ; + to the GNB entity + } + } + + } // end TP_NGAP_AMF_CTP_01 + + } // end "Downlink RAN Configuration Transfer" + + } // end Group "8.8 Configuration Transfer Procedure" + + Group "8.9 Warning Message Transmission Procedures" + { + + } // "8.9 Warning Message Transmission Procedures" + + Group "8.10 NRPPa Transport Procedures" + { + + } // "8.10 NRPPa Transport Procedures" + + Group "8.11 Trace Procedures" + { + + } // "8.11 Trace Procedures" + + Group "8.12 Location Reporting Procedures" + { + + } // end "8.12 Location Reporting Procedures" + + Group "8.13 UE TNLA Binding Procedures" + { + + } // end Group "8.13 UE TNLA Binding Procedures" + + Group "8.14 UE Radio Capability Management Procedures" + { + + } // end Group "8.14 UE Radio Capability Management Procedures" + + Group "8.15 Data Usage Reporting Procedures" + { + + } // end Group "8.15 Data Usage Reporting Procedures" + + Group "8.16 RIM Information Transfer Procedures" + { + + } // end Group "8.16 RIM Information Transfer Procedures" } // End of Package TP_AMF -- GitLab From 468a9c510557bdddf247f931048177ea1ccad2c9 Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Thu, 26 Oct 2023 17:36:12 +0200 Subject: [PATCH 26/33] create TP groups in GNB --- test_purposes/ngap/TP_GNB_NGAP.tplan2 | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index 5ecc7d7..b1e9613 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -1609,5 +1609,44 @@ Package TP_GNB { } // end Group "8.8 Configuration Transfer Procedure" + Group "8.9 Warning Message Transmission Procedures" + { + + } // "8.9 Warning Message Transmission Procedures" + + Group "8.10 NRPPa Transport Procedures" + { + + } // "8.10 NRPPa Transport Procedures" + + Group "8.11 Trace Procedures" + { + + } // "8.11 Trace Procedures" + + Group "8.12 Location Reporting Procedures" + { + + } // end "8.12 Location Reporting Procedures" + + Group "8.13 UE TNLA Binding Procedures" + { + + } // end Group "8.13 UE TNLA Binding Procedures" + + Group "8.14 UE Radio Capability Management Procedures" + { + + } // end Group "8.14 UE Radio Capability Management Procedures" + + Group "8.15 Data Usage Reporting Procedures" + { + + } // end Group "8.15 Data Usage Reporting Procedures" + + Group "8.16 RIM Information Transfer Procedures" + { + + } // end Group "8.16 RIM Information Transfer Procedures" } // End of Package TP_GNB -- GitLab From 76d5bcfd458fd7770ef0723940bd41ab7e95a231 Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Thu, 26 Oct 2023 17:55:24 +0200 Subject: [PATCH 27/33] add TP for section 8.5 --- test_purposes/ngap/TP_GNB_NGAP.tplan2 | 54 ++++++++++++++++++++++++--- 1 file changed, 49 insertions(+), 5 deletions(-) diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index b1e9613..29b76cd 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -15,9 +15,7 @@ file and shall not imply any sub-license right. /* interface at GNB */ Package TP_GNB { - - Group "8.2 PDU Session Management Procedures" { import all from Ngap_Common; @@ -1417,6 +1415,52 @@ Package TP_GNB { } // End Group "8.4 UE Mobility Management Procedures" + Group "8.5 Paging Procedures" + { + Group "Paging" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_PAG_01 + + Test objective "Verify that the IUT can send a PAGING message to enable the AMF to page a UE." + + Reference + "ETSI TS 138 413 [1], Clauses 8.5.1.2 and 9.2.4.1" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 + + // TODO: initial condition? + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate the initiation "of a Page procedure" + } + then { + the IUT entity sends an INITIAL_UE_MESSAGE containing + UE_Paging_Identity containing + 5G_S_TMSI containing + 5G_S_TMSI + ; + ; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_PAG_01 + } // end "Paging" + + } // end "8.5 Paging Procedures" + Group "8.6 Transport of NAS Messages Procedures" { Group "Initial UE Message" @@ -1612,17 +1656,17 @@ Package TP_GNB { Group "8.9 Warning Message Transmission Procedures" { - } // "8.9 Warning Message Transmission Procedures" + } // end "8.9 Warning Message Transmission Procedures" Group "8.10 NRPPa Transport Procedures" { - } // "8.10 NRPPa Transport Procedures" + } // end "8.10 NRPPa Transport Procedures" Group "8.11 Trace Procedures" { - } // "8.11 Trace Procedures" + } // end "8.11 Trace Procedures" Group "8.12 Location Reporting Procedures" { -- GitLab From 48536e7e23ab9d44c4683160ae4d5eb33f3f97bc Mon Sep 17 00:00:00 2001 From: ldtke Date: Thu, 26 Oct 2023 17:59:29 +0200 Subject: [PATCH 28/33] new TPs in section 8.7 --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 46 +++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index 4115f94..d707dd5 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -1234,7 +1234,7 @@ Package TP_AMF { TP Id TP_NGAP_AMF_IMP_01 - Test objective "Verify that the AMF node successfully processes a NG RESET REQEST message that contains mandatory IEs and answers with NG SETUP ACKNOWLEDGE to acknowledge the setup." + Test objective "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." Reference "ETSI TS 138 413 [1], Clauses 8.7.1.2" @@ -1501,6 +1501,50 @@ Package TP_AMF { } // End Group "AMF Configuration Update" + Group "NG Reset" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_IMP_06 + + Test objective "Verify that the AMF node successfully processes a NG RESET message that contains mandatory IEs and answers with NG RESET ACKNOWLEDGE to acknowledge the reset." + + Reference + "ETSI TS 138 413 [1], Clauses 8.7.4.2.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 //TODO: Not sure here. PIC means item 5.1 in table A3 but couldn't find either. + + Initial conditions with { + the UE entity isRegisteredTo the AMF // TODO: check initial conditions + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a NG_RESET containing + Cause, + CHOICE_Reset_Type containing + NG_interface containing + Reset_All + ; + ; + ; + from the GNB entity + } + then { + the IUT entity sends a NG_RESET_ACKNOWLEDGE + to the GNB entity + } + } + + } // end TP TP_NGAP_AMF_IMP_06 + + } // End Group "NG Reset" + } // End Group "8.7 Interface Management Procedures" Group "8.8 Configuration Transfer Procedure" -- GitLab From 3f7eaeaa42e728498232ef1d730e8cb964468ed3 Mon Sep 17 00:00:00 2001 From: ldtke Date: Thu, 26 Oct 2023 18:20:05 +0200 Subject: [PATCH 29/33] new TPs in 8.7 --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 34 ++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index d707dd5..cd423f4 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -1545,6 +1545,40 @@ Package TP_AMF { } // End Group "NG Reset" + Group "Error Indication" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_IMP_07 + + Test objective "Verify that the AMF can send a ERROR INDICATION to established PDU session to the GNB when a error occurs." + + Reference + "ETSI TS 138 413 [1], Clauses 8.7.5.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a ERROR INDICATION + } + then { + the IUT entity sends a ERROR_INDICATION + to the GNB entity + } + } + + } // end TP_NGAP_AMF_IMP_07 + } } // End Group "8.7 Interface Management Procedures" Group "8.8 Configuration Transfer Procedure" -- GitLab From f6b80dc02d007c69dfc03a6305db770d7fff99d9 Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Fri, 27 Oct 2023 10:38:18 +0200 Subject: [PATCH 30/33] review TPs in group 8.4 --- test_purposes/ngap/TP_GNB_NGAP.tplan2 | 57 ++++++++++++--------------- 1 file changed, 26 insertions(+), 31 deletions(-) diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index 29b76cd..49b8778 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -1056,10 +1056,10 @@ Package TP_GNB { TP Id TP_NGAP_GNB_MMP_01 - Test objective "Verify that the IUT can send a HANDOVER REQUIRED message contains mandatory IEs." + Test objective "Verify that the IUT can send a HANDOVER REQUIRED message containing mandatory IEs." Reference - "ETSI TS 138 413 [1], Clauses 8.3.11.2" + "ETSI TS 138 413 [1], Clauses 8.3.11.2 and 9.2.3.1" Config Id CFG_GNB_01 @@ -1072,7 +1072,7 @@ Package TP_GNB { Expected behaviour ensure that { when { - the IUT entity indicate the initiation Handover Required + the IUT entity indicate the initiation "of a Handover Required procedure" } then { the IUT entity sends a HANDOVER_REQUIRED containing @@ -1083,7 +1083,7 @@ Package TP_GNB { Target_ID, PDU_Session_Resource_List containing PDU_Session_Resource_Item containing - PDU_SessionId, + PDU_SessionId indicating value PX_PDU_ID, Handover_Required_Transfer ; ;, @@ -1091,7 +1091,6 @@ Package TP_GNB { ; to the AMF entity } - } } // end TP TP_NGAP_GNB_MMP_01 @@ -1107,10 +1106,10 @@ Package TP_GNB { TP Id TP_NGAP_GNB_MMP_08 - Test objective "Verify that the GNB node successfully processes a HANDOVER_REQUEST message that contains mandatory IEs and answers with HANDOVER REQUEST ACKNOWLEDGE to acknowledge the handover." + Test objective "Verify that the GNB node successfully processes a HANDOVER REQUEST message that contains mandatory IEs and answers with HANDOVER REQUEST ACKNOWLEDGE to acknowledge the handover." Reference - "ETSI TS 138 413 [1], Clauses 8.4.2.2" + "ETSI TS 138 413 [1], Clauses 8.4.2.2, 9.2.3.4 and 9.2.3.5" Config Id CFG_GNB_01 @@ -1125,14 +1124,14 @@ Package TP_GNB { when { the IUT entity receives a HANDOVER_REQUEST containing AMF_UE_NGAP_ID, - RAN_UE_NGAP_ID, Handover_Typ, Cause, UE_Aggregate_Maximum_Bit_Rate, - UE_Security_Capabilitues - PDU_Session_Setup_Resource_List containing - PDU_Session_Setup_Resource_Item containing - PDU_SessionId, + UE_Security_Capabilities, + Security_Context, + PDU_Session_Resource_Setup_List containing + PDU_Session_Resource_Setup_Item containing + PDU_SessionId indicating value PX_PDU_ID, S_NSSAI, Handover_Request_Transfer ; @@ -1149,7 +1148,7 @@ Package TP_GNB { RAN_UE_NGAP_ID, PDU_Session_Resource_Admitted_List containing PDU_Session_Resource_Admitted_Item containing - PDU_SessionId, + PDU_SessionId indicating value PX_PDU_ID, Handover_Request_Acknowledge_Transfer ; ;, @@ -1174,7 +1173,7 @@ Package TP_GNB { Test objective "Verify that the AMF node successfully sends a HANDOVER NOTIFICATION message that contains mandatory IEs to the AMF." Reference - "ETSI TS 138 413 [1], Clauses 8.4.3.2" + "ETSI TS 138 413 [1], Clauses 8.4.3.2 and 9.2.3.7" Config Id CFG_AMF_01 @@ -1187,7 +1186,7 @@ Package TP_GNB { Expected behaviour ensure that { when { - the IUT entity indicate the Handover Notification + the IUT entity indicate the initiation "of a Handover Notify procedure" } then { the IUT entity sends a HANDOVER_NOTIFY containing @@ -1216,7 +1215,7 @@ Package TP_GNB { Test objective "Verify that the AMF node successfully sends a PATH SWITCH REQUEST message that contains mandatory IEs to the AMF." Reference - "ETSI TS 138 413 [1], Clauses 8.4.4.2" + "ETSI TS 138 413 [1], Clauses 8.4.4.2 and 9.2.3.8" Config Id CFG_AMF_01 @@ -1229,7 +1228,7 @@ Package TP_GNB { Expected behaviour ensure that { when { - the IUT entity indicate the Path Switch Request + the IUT entity indicate the initiation "of a Path Switch Request procedure" } then { the IUT entity sends a PATH_SWITCH_REQUEST containing @@ -1239,7 +1238,7 @@ Package TP_GNB { UE_Security_Capabilities, PDU_Session_Resources_to_be_Switched_in_Downlink_List containing PDU_Session_Resources_to_be_Switched_in_Downlink_Item containing - PDU_SessionId, + PDU_SessionId indicating value PX_PDU_ID, Path_Switch_Request_Transfer ; ; @@ -1265,7 +1264,7 @@ Package TP_GNB { Test objective "Verify that the GNB node successfully sends a HANDOVER CANCEL message that contains mandatory IEs to the AMF." Reference - "ETSI TS 138 413 [1], Clauses 8.4.5.2" + "ETSI TS 138 413 [1], Clauses 8.4.5.2 and 9.2.3.11" Config Id CFG_AMF_01 @@ -1278,7 +1277,7 @@ Package TP_GNB { Expected behaviour ensure that { when { - the IUT entity indicate a Handover Cancel + the IUT entity indicate the initiation "of a Handover Cancel procedure" } then { the IUT entity sends a HANDOVER_CANCEL containing @@ -1288,9 +1287,7 @@ Package TP_GNB { ; to the AMF entity } - - } // End TP_NGAP_GNB_MMP_06 - + } } // End TP_NGAP_GNB_MMP_06 } // End Group "Handover Cancellation" @@ -1306,7 +1303,7 @@ Package TP_GNB { Test objective "Verify that the NG-RAN node successfully send a Uplink RAN Status Transfer message to the AMF." Reference - "ETSI TS 138 413 [1], Clauses 8.4.6.2" + "ETSI TS 138 413 [1], Clauses 8.4.6.2 and 9.2.3.13" Config Id CFG_GNB_01 @@ -1319,7 +1316,7 @@ Package TP_GNB { Expected behaviour ensure that { when { - the IUT entity indicate a UE Uplink RAN Status Transfer + the IUT entity indicate the initiation "of an UE Uplink RAN Status Transfer procedure" } then { the IUT entity sends a UPLINK_RAN_STATUS_TRANSFER containing @@ -1331,8 +1328,6 @@ Package TP_GNB { } } // End TP_NGAP_GNB_MMP_02 - - } } // End Group "Uplink RAN Status Transfer" @@ -1347,7 +1342,7 @@ Package TP_GNB { Test objective "Verify that the NG-RAN node successfully sends a Handover Success message to the AMF." Reference - "ETSI TS 138 413 [1], Clauses 8.4.8.2" + "ETSI TS 138 413 [1], Clauses 8.4.8.2 and 9.2.3.15" Config Id CFG_GNB_01 @@ -1360,7 +1355,7 @@ Package TP_GNB { Expected behaviour ensure that { when { - the IUT entity indicate a UE handover success + the IUT entity indicate the initiation "of an UE handover success procedure" } then { the IUT entity sends a HANDOVER_SUCCESS containing @@ -1385,7 +1380,7 @@ Package TP_GNB { Test objective "Verify that the NG-RAN node successfully sends a Uplink RAN Early Status Transfer message to the AMF." Reference - "ETSI TS 138 413 [1], Clauses 8.4.9.2" + "ETSI TS 138 413 [1], Clauses 8.4.9.2 and 9.2.3.16" Config Id CFG_GNB_01 @@ -1398,7 +1393,7 @@ Package TP_GNB { Expected behaviour ensure that { when { - the IUT entity indicate a Uplink RAN Early Status Transfer + the IUT entity indicate the initiation "of an Uplink RAN Early Status Transfer" } then { the IUT entity sends a UPLINK_RAN_EARLY_STATUS_TRANSFER containing -- GitLab From 20d4876607688d43580049819d9feb305e9570bf Mon Sep 17 00:00:00 2001 From: stl Date: Fri, 27 Oct 2023 10:46:41 +0200 Subject: [PATCH 31/33] new TPs section 8.7 --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 121 ++++++++++++++++++++++++- 1 file changed, 120 insertions(+), 1 deletion(-) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index cd423f4..bb6f699 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -1553,7 +1553,7 @@ Package TP_AMF { TP Id TP_NGAP_AMF_IMP_07 - Test objective "Verify that the AMF can send a ERROR INDICATION to established PDU session to the GNB when a error occurs." + Test objective "Verify that the AMF can send a ERROR INDICATION to the GNB when a error occurs." Reference "ETSI TS 138 413 [1], Clauses 8.7.5.2" @@ -1579,6 +1579,125 @@ Package TP_AMF { } // end TP_NGAP_AMF_IMP_07 } + + Group "AMF Status Indication" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_IMP_08 + + Test objective "Verify that the AMF can send a AMF STATUS INDICATION to the GNB when a error occurs." + + Reference + "ETSI TS 138 413 [1], Clauses 8.7.6.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a AMF STATUS INDICATION + } + then { + the IUT entity sends a AMF_STATUS_INDICATION containing + Unavailable_GUAMI_List containing + Unavailable_GUAMI_Item containing + GUAMI + ; + ; + ; + to the GNB entity + } + } + + } // end TP_NGAP_AMF_IMP_08 + + } // End Group "AMF Status Indication" + + Group "Overload Start" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_IMP_09 + + Test objective "Verify that the AMF can send a OVERLOAD START to the GNB." + + Reference + "ETSI TS 138 413 [1], Clauses 8.7.7.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a OVERLOAD START + } + then { + the IUT entity sends a OVERLOAD_START containing + Overload_Start_NSSAI_List containing + Overload_Start_NSSAI_Item containing + Slice_Overload_List + ; + ; + ; + to the GNB entity + } + } + + } // end TP_NGAP_AMF_IMP_09 + } // End Group "Overload Start" + + Group "Overload Stop " + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_IMP_10 + + Test objective "Verify that the AMF can send a OVERLOAD STOP to the GNB." + + Reference + "ETSI TS 138 413 [1], Clauses 8.7.7.2" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 + + Initial conditions with { + the UE entity isRegisteredTo the AMF + } + + Expected behaviour + ensure that { + when { + the IUT entity indicate a OVERLOAD STOP + } + then { + the IUT entity sends a OVERLOAD_STOP + to the GNB entity + } + } + + } // end TP_NGAP_AMF_IMP_10 + } // End Group "Overload Stop" + } // End Group "8.7 Interface Management Procedures" Group "8.8 Configuration Transfer Procedure" -- GitLab From ee5e5edb3d6656f16f8b28c1646fac22f436aa18 Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Fri, 27 Oct 2023 12:57:21 +0200 Subject: [PATCH 32/33] add type Cause to commons file --- test_purposes/Ngap_Common.tplan2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test_purposes/Ngap_Common.tplan2 b/test_purposes/Ngap_Common.tplan2 index a369b14..b93c858 100644 --- a/test_purposes/Ngap_Common.tplan2 +++ b/test_purposes/Ngap_Common.tplan2 @@ -92,6 +92,7 @@ Package Ngap_Common { Data { type NgapMessage; + type Cause; //Table 8.1-1 NgapMessage AMF_CONFIGURATION_UPDATE; @@ -192,6 +193,9 @@ Package Ngap_Common { NgapMessage HANDOVER_SUCCESS; NgapMessage UPLINK_RAN_EARLY_STATUS_TRANSFER; NgapMessage DOWNLINK_RAN_EARLY_STATUS_TRANSFER; + + //Section 9.3.1.2 + Cause Multiple_Location_Reporting_Reference_ID_instances; } // End of Data section -- GitLab From b00b61b71b1bd3ae3dd4b2fe5909dcb9e0185a51 Mon Sep 17 00:00:00 2001 From: Sascha Hackel Date: Fri, 27 Oct 2023 12:58:46 +0200 Subject: [PATCH 33/33] add TPs for section 8.12 --- test_purposes/ngap/TP_AMF_NGAP2.tplan2 | 35 +++++++++ test_purposes/ngap/TP_GNB_NGAP.tplan2 | 99 ++++++++++++++++++++++++++ 2 files changed, 134 insertions(+) diff --git a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 index cd423f4..1de96ff 100644 --- a/test_purposes/ngap/TP_AMF_NGAP2.tplan2 +++ b/test_purposes/ngap/TP_AMF_NGAP2.tplan2 @@ -1646,6 +1646,41 @@ Package TP_AMF { Group "8.12 Location Reporting Procedures" { + Group "Location Reporting Control" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_AMF_LRP_01 + + Test objective "Verify that the IUT can send a LOCATION REPORTING CONTROL message that contains mandatory IEs to request a report of the UE's current location." + + Reference + "ETSI TS 138 413 [1], Clauses 8.12.1 and 9.2.11.1" + + Config Id CFG_AMF_01 + + PICS Selection PICS_A3/5_1 + + Expected behaviour + ensure that { + when { + the IUT entity indicate the initiation "of a Location Reporting Control procedure" + } + then { + the IUT entity sends an LOCATION_REPORTING_CONTROL containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Location_Reporting_Request_Type + ; + to the GNB entity + } + } + + } // end TP_NGAP_AMF_LRP_01 + + } // end "Location Reporting Control" } // end "8.12 Location Reporting Procedures" diff --git a/test_purposes/ngap/TP_GNB_NGAP.tplan2 b/test_purposes/ngap/TP_GNB_NGAP.tplan2 index 49b8778..848f0b6 100644 --- a/test_purposes/ngap/TP_GNB_NGAP.tplan2 +++ b/test_purposes/ngap/TP_GNB_NGAP.tplan2 @@ -1665,6 +1665,105 @@ Package TP_GNB { Group "8.12 Location Reporting Procedures" { + Group "Location Reporting Failure Indication" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_LRP_01 + + Test objective "Verify that the IUT can send a LOCATION REPORTING FAILURE INDICATION message after that contains mandatory IEs receiving a LOCATION REPORTING CONTROL message with two identical Location Reporting Reference IDs." + + Reference + "ETSI TS 138 413 [1], Clauses 8.12.2, 9.2.11.1, 9.2.11.2 and 9.3.1.65" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 + + Expected behaviour + ensure that { + when { + the IUT entity sends an LOCATION_REPORTING_CONTROL containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Location_Reporting_Request_Type containing + Event_Type, + Report_Area, + Area_of_Interest_List containing + Area_of_Interest_Item containing + Area_of_Interest, + Location_Reporting_Reference_ID indicating value PX_REPORTING_REFERENCE_ID + ;, + Area_of_Interest_Item containing + Area_of_Interest, + Location_Reporting_Reference_ID indicating value PX_REPORTING_REFERENCE_ID + ; + ; + ; + ; + from the AMF entity + } + then { + the IUT entity sends an LOCATION_REPORTING_CONTROL containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Cause containing + CHOICE_Cause_Group containing + Radio_Network_Layer_Cause indicating value Multiple_Location_Reporting_Reference_ID_instances + ; + ; + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_LRP_01 + + } // end "Location Reporting Failure Indication" + + Group "Location Report" + { + import all from Ngap_Common; + + Test Purpose { + + TP Id TP_NGAP_GNB_LRP_02 + + Test objective "Verify that the IUT can send a LOCATION REPORT message that contains mandatory IEs to provide the UE's current location." + + Reference + "ETSI TS 138 413 [1], Clauses 8.12.2 and 9.2.11.3" + + Config Id CFG_GNB_01 + + PICS Selection PICS_A3/5_1 + + Expected behaviour + ensure that { + when { + the IUT entity sends an LOCATION_REPORTING_CONTROL containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + Location_Reporting_Request_Type + ; + from the AMF entity + } + then { + the IUT entity sends an LOCATION_REPORT containing + AMF_UE_NGAP_ID, + RAN_UE_NGAP_ID, + User_Location_Information, + Location_Reporting_Request_Type + ; + to the AMF entity + } + } + + } // end TP_NGAP_GNB_LRP_02 + + } // end "Location Report" } // end "8.12 Location Reporting Procedures" -- GitLab