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

Review components dependencies

parent 78e3d703
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@

NGAP_Pics.PICS_OFFLINE_MODE := true
NGAP_Pics.PICS_NGAP_AMF_IUT := true
NGAP_Pics.PICS_NGAP_GNB_IUT := false

# 5GRegAuthSec_deReg.pcap
LibNGAP_Pixits.PX_AMF_NAME         := "open5gs-amf0"
+14 −1
Original line number Diff line number Diff line
[MODULE_PARAMETERS]
# This section shall contain the values of all parameters that are defined in your TTCN-3 modules.

NGAP_Pics.PICS_OFFLINE_MODE := true
NGAP_Pics.PICS_NGAP_GNB_IUT := true
NGAP_Pics.PICS_NGAP_AMF_IUT := false

@@ -20,7 +21,19 @@ LogEventTypes:= Yes

[TESTPORT_PARAMETERS]
# In this section you can specify parameters that are passed to Test Ports.
aMFNGAPComponent.N2_gNBaMF_P.params := "NGAP/ETH/PCAP_FILE(file=../captures/free5gc.pcap)"

# Open5GS AMF IP and port
#system.NGAP_gNB_1.params := "NGAP/SCTP(server=192.168.1.21,port=4444,debug=1)"
#system.N2_gNBaMF_P.params := "NGAP/SCTP(server=192.168.1.21,port=4444,debug=1)"

#system.NGAP_gNB_1.params := "NGAP/SCTP_FILE/IP_OFFLINE/ETH(mac_src=8c554ac1eee0,mac_dst=8c554ac1eee1)/PCAP_FILE(file=../captures/5GRegAuthSec_deReg.pcap)"
#system.N2_gNBaMF_P.params := "NGAP/SCTP_FILE/IP_OFFLINE/ETH(mac_src=8c554ac1eee0,mac_dst=8c554ac1eee1)/PCAP_FILE(file=../captures/5GRegAuthSec_deReg.pcap)"

system.NGAP_gNB_1.params := "NGAP/SCTP_FILE/IP_OFFLINE/ETH(mac_src=8c554ac1eee0,mac_dst=8c554ac1eee1)/PCAP_FILE(file=../captures/open5gs.pcap)"
system.N2_gNBaMF_P.params := "NGAP/SCTP_FILE/IP_OFFLINE/ETH(mac_src=8c554ac1eee0,mac_dst=8c554ac1eee1)/PCAP_FILE(file=../captures/open5gs.pcap)"

#system.NGAP_gNB_1.params := "NGAP/SCTP_FILE/IP_OFFLINE/LINUX_FRAME/PCAP_FILE(file=../captures/RegTrace4444333000_.pcapng)"
#system.N2_gNBaMF_P.params := "NGAP/SCTP_FILE/IP_OFFLINE/LINUX_FRAME/PCAP_FILE(file=../captures/RegTrace4444333000_.pcapng)"

[DEFINE]
# In this section you can create macro definitions,
+110 −42
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ module NGAP_Steps {
    import from NGAP_IEs language "ASN.1:1997" all;

    import from LibNGAP_Steps  all;
    import from LibNGAP_Interface all;
    import from NGAP_TestSystem all;
    import from LibNGAP_Templates all;
    import from LibNGAP_Functions all;
    import from LibNGAP_Pixits all;
@@ -33,7 +33,7 @@ module NGAP_Steps {
         *          This procedure will be use when the Test System acts as AMF (SUT is gNB)
         */
        function f_NGAP_amf_init()
        runs on NGAPComponent {
        runs on aMFNGAPComponent {

            // Defaults
            vc_default_ngap := activate (a_defaultNGAP());
@@ -53,7 +53,7 @@ module NGAP_Steps {
         *          This procedure will be use when the Test System acts as gNB (SUT is AMF)
         */
        function f_NGAP_gnb_init()
        runs on NGAPComponent {
        runs on gNBNGAPComponent {

            // Defaults
            vc_default_ngap := activate (a_defaultNGAP());
@@ -72,7 +72,7 @@ module NGAP_Steps {
         * @desc    This is a test step that init global variables
         */
        function f_NGAP_gnb_init2()
        runs on NGAPComponent {
        runs on gNBNGAPComponent {

            // Defaults
            vc_default_ngap := activate (a_defaultNGAP());
@@ -94,7 +94,7 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_preamble_NGAP_AMF() runs on NGAPComponent {
        function f_preamble_NGAP_AMF() runs on aMFNGAPComponent {
            var default     v_def_ngap_;

            f_NGAP_amf_init();
@@ -104,7 +104,7 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_preamble_NGAP_gNB() runs on NGAPComponent {
        function f_preamble_NGAP_gNB() runs on gNBNGAPComponent {
            var default     v_def_ngap_;

            f_NGAP_gnb_init();
@@ -114,7 +114,7 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_preamble_NGAP_gNB2() runs on NGAPComponent {
        function f_preamble_NGAP_gNB2() runs on gNBNGAPComponent {
            var default     v_def_ngap_;

            f_NGAP_gnb_init2();
@@ -128,7 +128,7 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_postamble_NGAP_AMF() runs on NGAPComponent {
        function f_postamble_NGAP_AMF() runs on aMFNGAPComponent {
            f_postambleNGAP_AMF();

            // Deactivate defaults
@@ -140,7 +140,7 @@ module NGAP_Steps {
         */
        function f_postamble_NGAP_gNB(
                                      in template (value) Cause p_Cause := m_cause_nas(authentication_failure)
                                      ) runs on NGAPComponent {
                                      ) runs on gNBNGAPComponent {
            if (not(PICS_OFFLINE_MODE)) {
                f_postambleNGAP_gNB(p_Cause);
            }
@@ -154,7 +154,7 @@ module NGAP_Steps {
         */
        function f_postamble_NGAP_gNB2(
                                      in template (value) Cause p_Cause := m_cause_nas(authentication_failure)
                                      ) runs on NGAPComponent {
                                      ) runs on gNBNGAPComponent {
            if (not(PICS_OFFLINE_MODE)) {
                f_postambleNGAP_gNB(p_Cause);
            }
@@ -178,7 +178,7 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_amf_UE_Register() runs on NGAPComponent {
        function f_NGAP_amf_UE_Register() runs on aMFNGAPComponent {
            log(">>> f_NGAP_amf_UE_Register");
            f_await_NGSetupRequest_send_NGSetupRespone();
            f_await_registration_request();
@@ -187,7 +187,7 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_amf_UE_Authentication() runs on NGAPComponent {
        function f_NGAP_amf_UE_Authentication() runs on aMFNGAPComponent {
            log(">>> f_NGAP_amf_UE_Authentication");
            f_send_authentication_request_await_authentication_response();
        } // End of function f_NGAP_amf_UE_Authentication
@@ -195,7 +195,7 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_amf_UE_SecurityMode() runs on NGAPComponent {
        function f_NGAP_amf_UE_SecurityMode() runs on aMFNGAPComponent {
            log(">>> f_NGAP_amf_UE_SecurityMode");
            f_send_securitymode_command_await_securitymode_complete();
        } // End of function f_NGAP_amf_UE_SecurityMode
@@ -203,84 +203,84 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_amf_UE_PDU_ResourceSetup() runs on NGAPComponent {
        function f_NGAP_amf_UE_PDU_ResourceSetup() runs on aMFNGAPComponent {
        //FIXME: Implementation of PDU session resource setup
        } // End of function f_NGAP_amf_UE_PDU_ResourceSetup

        /**
         * @desc
         */
        function f_NGAP_amf_UE_NoLongerAvailable() runs on NGAPComponent {
        function f_NGAP_amf_UE_NoLongerAvailable() runs on aMFNGAPComponent {
                //FIXME: Implementation of PDU not longer available
        } // End of function f_NGAP_amf_UE_NoLongerAvailable

        /**
         * @desc The IUT entity indicate the initiation "of a Handover Required procedure"
         */
        function f_NGAP_amf_UE_MMP_Initiate_Handover() runs on NGAPComponent {
        function f_NGAP_amf_UE_MMP_Initiate_Handover() runs on aMFNGAPComponent {
        //FIXME: Implementation of Handover init
        } // End of function f_NGAP_amf_UE_MMP_Initiate_Handover

        /**
         * @desc
         */
        function f_NGAP_amf_UE_MMP_Initiate_Handover_Completed() runs on NGAPComponent {
        function f_NGAP_amf_UE_MMP_Initiate_Handover_Completed() runs on aMFNGAPComponent {
        //FIXME: Implementation of Handover init completed
        } // End of function f_NGAP_amf_UE_MMP_Initiate_Handover_Completed

        /**
         * @desc
         */
        function f_NGAP_amf_UE_MMP_Handover_Completed() runs on NGAPComponent {
        function f_NGAP_amf_UE_MMP_Handover_Completed() runs on aMFNGAPComponent {
        //FIXME: Implementation of Handover completed
        } // End of function f_NGAP_amf_UE_MMP_Handover_Completed

        /**
         * @desc
         */
        function f_NGAP_amf_UE_MMP_Cancel_Initiated_Handover() runs on NGAPComponent {
        function f_NGAP_amf_UE_MMP_Cancel_Initiated_Handover() runs on aMFNGAPComponent {
        //FIXME: Implementation of Handover init cancelled
        } // End of function f_NGAP_amf_UE_MMP_Cancel_Initiated_Handover

        /**
         * @desc
         */
        function f_NGAP_amf_UE_MMP_Initiate_UE_Uplink_RAN_Status_Transfer() runs on NGAPComponent {
        function f_NGAP_amf_UE_MMP_Initiate_UE_Uplink_RAN_Status_Transfer() runs on aMFNGAPComponent {
        //FIXME: Implementation of initiate uplink RAN xfer
        } // End of function f_NGAP_amf_UE_MMP_Initiate_UE_Uplink_RAN_Status_Transfer

        /**
         * @desc
         */
        function f_NGAP_amf_UE_MMP_Initiate_UE_Uplink_RAN_Early_Status_Transfer() runs on NGAPComponent {
        function f_NGAP_amf_UE_MMP_Initiate_UE_Uplink_RAN_Early_Status_Transfer() runs on aMFNGAPComponent {
        //FIXME: Implementation of initiate an early uplink RAN xfer
        } // End of function f_NGAP_amf_UE_MMP_Initiate_UE_Uplink_RAN_Early_Status_Transfer

        /**
         * @desc
         */
        function f_NGAP_amf_UE_NAS_Initiate() runs on NGAPComponent {
        function f_NGAP_amf_UE_NAS_Initiate() runs on aMFNGAPComponent {
        //FIXME: Implementation of a NAS procedure
        } // End of function f_NGAP_amf_UE_NAS_Initiate

        /**
         * @desc
         */
        function f_NGAP_amf_UE_RRC_UL_Message() runs on NGAPComponent {
        function f_NGAP_amf_UE_RRC_UL_Message() runs on aMFNGAPComponent {
        //FIXME: Implementation of an RRC UL message delivery
        } // End of function f_NGAP_amf_UE_RRC_UL_Message

        /**
         * @desc
         */
        function f_NGAP_amf_UE_RRC_UL_Message_Failure() runs on NGAPComponent {
        function f_NGAP_amf_UE_RRC_UL_Message_Failure() runs on aMFNGAPComponent {
        //FIXME: Implementation of an RRC UL message delivery failure
        } // End of function f_NGAP_amf_UE_RRC_UL_Message_Failure
        
        /**
         * @desc
         */
        function f_NGAP_amf_isTransitioningTo_RRC_INACTIVE() runs on NGAPComponent {
        function f_NGAP_amf_isTransitioningTo_RRC_INACTIVE() runs on aMFNGAPComponent {
        //FIXME: Implementation of an UE transitioning into the RRC_INACTIVE state
        } // End of function f_NGAP_amf_isTransitioningTo_RRC_INACTIVE

@@ -289,7 +289,7 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_gnb_UE_Register() runs on NGAPComponent {
        function f_NGAP_gnb_UE_Register() runs on gNBNGAPComponent {
            log(">>> f_NGAP_gnb_UE_Register");
            if (PICS_OFFLINE_MODE) {
                f_await_NGSetupRequest_await_NGSetupRespone();
@@ -304,7 +304,13 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_gnb_UE_Authentication() runs on NGAPComponent {
        function f_NGAP_gnb_UE_NAS_Initiate() runs on gNBNGAPComponent {
        } // End of function f_NGAP_gnb_UE_NAS_Initiate

        /**
         * @desc
         */
        function f_NGAP_gnb_UE_Authentication() runs on gNBNGAPComponent {
            log(">>> f_NGAP_gnb_UE_Authentication");
            if (PICS_OFFLINE_MODE) {
                f_await_authentication_request_await_authentication_response();
@@ -317,7 +323,7 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_gnb_UE_SecurityMode() runs on NGAPComponent {
        function f_NGAP_gnb_UE_SecurityMode() runs on gNBNGAPComponent {
            log(">>> f_NGAP_gnb_UE_SecurityMode");
            if (PICS_OFFLINE_MODE) {
                f_await_securitymode_command_await_securitymode_complete();
@@ -330,21 +336,28 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_gnb_UE_Not_Available() runs on NGAPComponent {
        function f_NGAP_gnb_UE_Not_Available() runs on gNBNGAPComponent {
        //FIXME: Implementation of UE not available
        } // End of function f_NGAP_gnb_UE_Not_Available

        /**
         * @desc
         */
        function f_NGAP_gnb_UE_Handover_Required() runs on NGAPComponent {
        function f_NGAP_gnb_UE_Handover_Required() runs on gNBNGAPComponent {
        //FIXME: Implementation of UE handover required
        } // End of function f_NGAP_gnb_UE_Handover_Required

        /**
         * @desc
         */
        function f_NGAP_gnb_UE_InitialContextSetup() runs on NGAPComponent {
        function f_NGAP_gnb_UE_MMP_Initiate_Handover_Completed() runs on gNBNGAPComponent {
        //FIXME: Implementation of UE handover completed
        } // End of function f_NGAP_gnb_UE_MMP_Initiate_Handover_Completed

        /**
         * @desc
         */
        function f_NGAP_gnb_UE_InitialContextSetup() runs on gNBNGAPComponent {
            log(">>> f_NGAP_gnb_UE_InitialContextSetup");
            if (PICS_OFFLINE_MODE) {
                f_await_initial_context_setup_request_await_initial_context_setup_resonse();
@@ -353,7 +366,7 @@ module NGAP_Steps {
            }
        } // End of function f_NGAP_gnb_UE_InitialContextSetup
        
        function f_NGAP_gnb_RegistrationComplete() runs on NGAPComponent {
        function f_NGAP_gnb_RegistrationComplete() runs on gNBNGAPComponent {
            log(">>> f_NGAP_gnb_RegistrationComplete");
            if (PICS_OFFLINE_MODE) {
                f_await_registration_complete();
@@ -365,7 +378,7 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_gnb_UE_Has_EstablishedContextInproperly() runs on NGAPComponent return boolean {
        function f_NGAP_gnb_UE_Has_EstablishedContextInproperly() runs on gNBNGAPComponent return boolean {
            if (not(isbound(vc_initialContextSetupRequest))) {
                log("f_NGAP_gnb_UE_Has_EstablishedContextInproperly: vc_initialContextSetupRequest is not bound");
                return false;
@@ -378,7 +391,7 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_gnb_UE_HasPendingDataTransmission() runs on NGAPComponent return boolean {
        function f_NGAP_gnb_UE_HasPendingDataTransmission() runs on gNBNGAPComponent return boolean {
            //FIXME: Implementation of UE has pending data transmission leading to failed context suspension
            return false;
        } // End of function f_NGAP_gnb_UE_HasPendingDataTransmission
@@ -386,7 +399,7 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_gnb_UE_PDU_SessionEstablishmentRequest() runs on NGAPComponent {
        function f_NGAP_gnb_UE_PDU_SessionEstablishmentRequest() runs on gNBNGAPComponent {
            log(">>> f_NGAP_gnb_UE_PDU_SessionEstablishmentRequest");
            if (PICS_OFFLINE_MODE) {
                f_await_session_establishment_request();
@@ -398,7 +411,7 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_gnb_UE_PDU_SessionEstablishmentAccept() runs on NGAPComponent {
        function f_NGAP_gnb_UE_PDU_SessionEstablishmentAccept() runs on gNBNGAPComponent {
            log(">>> f_NGAP_gnb_UE_PDU_SessionEstablishmentAccept");
            if (PICS_OFFLINE_MODE) {
                f_await_session_establishment_accept();
@@ -407,7 +420,7 @@ module NGAP_Steps {
            }
        } // End of function f_NGAP_gnb_UE_PDU_SessionEstablishmentRequest

        function f_NGAP_gnb_UE_PDU_SessionResourceSetup() runs on NGAPComponent {
        function f_NGAP_gnb_UE_PDU_SessionResourceSetup() runs on gNBNGAPComponent {
            log(">>> f_NGAP_gnb_UE_PDU_SessionResourceSetup");
            if (PICS_OFFLINE_MODE) {
                f_await_session_resource_setup_request_await_session_resource_setup_response();
@@ -421,14 +434,14 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_gnb_UE_PDU_ResourceSetup() runs on NGAPComponent {
        function f_NGAP_gnb_UE_PDU_ResourceSetup() runs on gNBNGAPComponent {
        //FIXME: Implementation of PDU session resource setup
        } // End of function f_NGAP_gnb_UE_PDU_ResourceSetup
        
        /**
         * @desc
         */
        function f_NGAP_gnb_UE_Has_Suspended_Context() runs on NGAPComponent return boolean {
        function f_NGAP_gnb_UE_Has_Suspended_Context() runs on gNBNGAPComponent return boolean {
            //FIXME: Implementation of UE has suspended context
            return false;
        } // End of function f_NGAP_amf_UE_hasSuspendedContext
@@ -436,10 +449,65 @@ module NGAP_Steps {
        /**
         * @desc
         */
        function f_NGAP_gnb_UE_alreadyPreparedHandover() runs on NGAPComponent {
        //FIXME: Implementation of UE halready prepared Handover
        function f_NGAP_gnb_UE_alreadyPreparedHandover() runs on gNBNGAPComponent {
        //FIXME: Implementation of UE already prepared Handover
        } // End of function f_NGAP_amf_UE_hasSuspendedContext
        
        /**
         * @desc
         */
        function f_NGAP_gnb_UE_NoLongerAvailable() runs on gNBNGAPComponent {
        //FIXME: Implementation of UE already prepared Handover
        } // End of function f_NGAP_gnb_UE_NoLongerAvailable

        /**
         * @desc
         */
        function f_NGAP_gnb_UE_MMP_Handover_Completed() runs on gNBNGAPComponent {
        //FIXME: Implementation of UE handover completed
        } // End of function f_NGAP_gnb_UE_MMP_Handover_Completed

        /**
         * @desc
         */
        function f_NGAP_gnb_isTransitioningTo_RRC_INACTIVE() runs on gNBNGAPComponent {
        } // End of function f_NGAP_gnb_isTransitioningTo_RRC_INACTIVE

        /**
         * @desc
         */
        function f_NGAP_gnb_UE_MMP_Initiate_Handover() runs on gNBNGAPComponent {
        } // End of function f_NGAP_gnb_UE_MMP_Initiate_Handover

        /**
         * @desc
         */
        function f_NGAP_gnb_UE_MMP_Cancel_Initiated_Handover() runs on gNBNGAPComponent {
        } // End of function f_NGAP_gnb_UE_MMP_Cancel_Initiated_Handover

        /**
         * @desc
         */
        function f_NGAP_gnb_UE_MMP_Initiate_UE_Uplink_RAN_Status_Transfer() runs on gNBNGAPComponent {
        } // End of function f_NGAP_gnb_UE_MMP_Initiate_UE_Uplink_RAN_Status_Transfer

        /**
         * @desc
         */
        function f_NGAP_gnb_UE_MMP_Initiate_UE_Uplink_RAN_Early_Status_Transfer() runs on gNBNGAPComponent {
        } // End of function f_NGAP_gnb_UE_MMP_Initiate_UE_Uplink_RAN_Early_Status_Transfer

        /**
         * @desc
         */
        function f_NGAP_gnb_UE_RRC_UL_Message() runs on gNBNGAPComponent {
        } // End of function f_NGAP_gnb_UE_RRC_UL_Message

        /**
         * @desc
         */
        function f_NGAP_gnb_UE_RRC_UL_Message_Failure() runs on gNBNGAPComponent {
        } // End of function f_NGAP_gnb_UE_RRC_UL_Message_Failure

    }//end group BehaviorFunctions

+293 −285

File changed.

Preview size limit exceeded, changes collapsed.

+196 −196

File changed.

Preview size limit exceeded, changes collapsed.

Loading