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

Review functions namimg; Enforce component dependencies

parent 5adac94c
Loading
Loading
Loading
Loading
+5 −12
Original line number Diff line number Diff line
@@ -56,17 +56,10 @@ LogEventTypes:= Yes
# In this section you can specify parameters that are passed to Test Ports.

# 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_AMF.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)"
# Open5GS pcap files
system.NGAP_AMF.params := "NGAP/SCTP_FILE/IP_OFFLINE/ETH(mac_src=8c554ac1eee0,mac_dst=8c554ac1eee1)/PCAP_FILE(file=../captures/open5gs.pcap)"

[DEFINE]
# In this section you can create macro definitions,
@@ -105,13 +98,13 @@ system.N2_gNBaMF_P.params := "NGAP/SCTP_FILE/IP_OFFLINE/ETH(mac_src=8c554ac1eee0
#NGAP_TestCases.TC_NGAP_AMF_PDU_05

# Verify the IUT correctly sets the UE Context after Authentication and Security procedure has been executed
#NGAP_TestCases.TC_NGAP_AMF_CMP_01
NGAP_TestCases.TC_NGAP_AMF_CMP_01
# 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 or only AMF_UE_NGAP_ID
#NGAP_TestCases.TC_NGAP_AMF_CMP_02
# Verify that the IUT sends a UE CONTEXT RELEASE COMMAND after UE_CONTEXT_RELEASE_REQUEST to release the UE-associated logic NG-connection due to NG-RAN node generated reasons
#NGAP_TestCases.TC_NGAP_AMF_CMP_03
# Verify that the IUT can send a UE CONTEXT MODIFICATION REQUEST containing mandatory IEs
NGAP_TestCases.TC_NGAP_AMF_CMP_04
###########################################NGAP_TestCases.TC_NGAP_AMF_CMP_04
# Verify that the IUT can send a CONNECTION ESTABLISHMENT INDICATION that contains mandatory IEs
#NGAP_TestCases.TC_NGAP_AMF_CMP_05
# Verify that the IUT can send an AMF CP RELOCATION INDICATION that contains mandatory IEs
+0 −6
Original line number Diff line number Diff line
@@ -26,15 +26,9 @@ LogEventTypes:= Yes
#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,
# that can be used in other configuration file sections except [INCLUDE] and [ORDERED_INCLUDE].
+1 −1
Original line number Diff line number Diff line
[1]	ETSI TS 124 501: "5G;Non-Access-Stratum (NAS) protocol for 5G System (5GS);Stage 3 (3GPP TS 24.501 version 16.14.1 Release 16)".
[1]	ETSI TS 138 413: "5G;NG-RAN; NG Application Protocol (NGAP) (3GPP TS 38.413 version 16.12.0 Release 16)".
+163 −60
Original line number Diff line number Diff line
@@ -180,16 +180,37 @@ module NGAP_Steps {
         */
        function f_NGAP_amf_UE_Register() runs on aMFNGAPComponent {
            log(">>> f_NGAP_amf_UE_Register");
            f_await_NGSetupRequest_send_NGSetupRespone();
            if (PICS_OFFLINE_MODE) {
                f_await_NGSetupRequest_await_NGSetupRespone();
            } else {
                f_send_NGSetupRequest_await_NGSetupRespone();
            }
            log("f_NGAP_amf_UE_Register: f_send_registration_request done");
            if (PICS_OFFLINE_MODE) {
                f_send_registration_request();
            } else {
                f_await_registration_request();
            }
            log("<<< f_NGAP_amf_UE_Register");
        } // End of function f_NGAP_amf_UE_Register

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

        /**
         * @desc
         */
        function f_NGAP_amf_UE_Authentication() runs on aMFNGAPComponent {
            log(">>> f_NGAP_amf_UE_Authentication");
            f_send_authentication_request_await_authentication_response();
            if (PICS_OFFLINE_MODE) {
                f_await_authentication_request_await_authentication_response();
            } else {
                f_await_authentication_request_send_authentication_response();
            }
        } // End of function f_NGAP_amf_UE_Authentication

        /**
@@ -197,14 +218,90 @@ module NGAP_Steps {
         */
        function f_NGAP_amf_UE_SecurityMode() runs on aMFNGAPComponent {
            log(">>> f_NGAP_amf_UE_SecurityMode");
            f_send_securitymode_command_await_securitymode_complete();
            if (PICS_OFFLINE_MODE) {
                f_await_securitymode_command_await_securitymode_complete();
            } else { // Await security mode and send response
                f_await_securitymode_command_send_securitymode_complete();
            }
            log("<<< f_NGAP_amf_UE_SecurityMode");
        } // End of function f_NGAP_amf_UE_SecurityMode

        /**
         * @desc
         */
        function f_NGAP_amf_UE_InitialContextSetup() runs on aMFNGAPComponent {
            log(">>> f_NGAP_amf_UE_InitialContextSetup");
            if (PICS_OFFLINE_MODE) {
                f_await_initial_context_setup_request_await_initial_context_setup_resonse();
            } else {
                f_await_initial_context_setup_request_send_initial_context_setup_resonse();
            }
        } // End of function f_NGAP_amf_UE_InitialContextSetup
        
        function f_NGAP_amf_RegistrationComplete() runs on aMFNGAPComponent {
            log(">>> f_NGAP_amf_RegistrationComplete");
            if (PICS_OFFLINE_MODE) {
                f_await_registration_complete();
            } else {
                f_send_registration_complete();
            }
        } // End of function f_NGAP_amf_RegistrationComplete

        /**
         * @desc
         */
        function f_NGAP_amf_UE_Has_EstablishedContextInproperly() runs on aMFNGAPComponent return boolean {
            if (not(isbound(vc_initialContextSetupRequest))) {
                log("f_NGAP_amf_UE_Has_EstablishedContextInproperly: vc_initialContextSetupRequest is not bound");
                return false;
            } else {
                // TODO FSCOM To be enhanced
            }
            return true;
        } // End of function f_NGAP_amf_UE_Has_EstablishedContextInproperly

        /**
         * @desc
         */
        function f_NGAP_amf_UE_PDU_SessionEstablishmentRequest() runs on aMFNGAPComponent {
            log(">>> f_NGAP_amf_UE_PDU_SessionEstablishmentRequest");
            if (PICS_OFFLINE_MODE) {
                f_await_session_establishment_request();
            } else {
                f_send_session_establishment_request();
            }
        } // End of function f_NGAP_amf_UE_PDU_SessionEstablishmentRequest

        /**
         * @desc
         */
        function f_NGAP_amf_UE_PDU_SessionEstablishmentAccept() runs on aMFNGAPComponent {
            log(">>> f_NGAP_amf_UE_PDU_SessionEstablishmentAccept");
            f_await_session_establishment_accept();
        } // End of function f_NGAP_amf_UE_PDU_SessionEstablishmentAccept

        /**
         * @desc
         */
        function f_NGAP_amf_UE_PDU_SessionResourceSetup() runs on aMFNGAPComponent {
            log(">>> f_NGAP_amf_UE_PDU_SessionResourceSetup");
            f_await_pdu_session_resource_setup_request();
        } // End of function f_NGAP_amf_UE_PDU_SessionResourceSetup

        function f_NGAP_amf_UE_PDU_SessionResourceResponse() runs on aMFNGAPComponent {
            log(">>> f_NGAP_amf_UE_PDU_SessionResourceResponse");
            if (PICS_OFFLINE_MODE) {
                f_await_pdu_session_resource_setup_response();
            } else {
                f_send_pdu_session_resource_setup_response();
            }
        }

        /**
         * @desc
         */
        function f_NGAP_amf_UE_PDU_ResourceSetup() runs on aMFNGAPComponent {
        //FIXME: Implementation of PDU session resource setup
                //FIXME
        } // End of function f_NGAP_amf_UE_PDU_ResourceSetup

        /**
@@ -256,13 +353,6 @@ module NGAP_Steps {
        //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 aMFNGAPComponent {
        //FIXME: Implementation of a NAS procedure
        } // End of function f_NGAP_amf_UE_NAS_Initiate

        /**
         * @desc
         */
@@ -284,6 +374,23 @@ module NGAP_Steps {
        //FIXME: Implementation of an UE transitioning into the RRC_INACTIVE state
        } // End of function f_NGAP_amf_isTransitioningTo_RRC_INACTIVE

        /**
         * @desc
         */
        function f_NGAP_amf_UE_Not_Available() runs on aMFNGAPComponent {
        //FIXME: 
        } // End of function f_NGAP_amf_UE_Not_Available

        function f_NGAP_amf_UE_HasPendingDataTransmission() runs on aMFNGAPComponent return boolean {
            //FIXME: 
            return false;
        } // End of function f_NGAP_amf_UE_HasPendingDataTransmission

        function f_NGAP_amf_UE_Has_Suspended_Context() runs on aMFNGAPComponent return boolean {
            //FIXME: 
            return false;
        } // End of function f_NGAP_amf_UE_Has_Suspended_Context

        /******************************************************************/

        /**
@@ -294,7 +401,7 @@ module NGAP_Steps {
            if (PICS_OFFLINE_MODE) {
                f_await_NGSetupRequest_await_NGSetupRespone();
            } else {
                f_send_NGSetupRequest_await_NGSetupRespone();
                f_await_NGSetupRequest_send_NGSetupRespone();
            }
            log("f_NGAP_gnb_UE_Register: f_send_NGSetupRequest_await_NGSetupRespone done");
            f_await_registration_request();
@@ -305,6 +412,7 @@ module NGAP_Steps {
         * @desc
         */
        function f_NGAP_gnb_UE_NAS_Initiate() runs on gNBNGAPComponent {
            // FIXME
        } // End of function f_NGAP_gnb_UE_NAS_Initiate

        /**
@@ -314,8 +422,8 @@ module NGAP_Steps {
            log(">>> f_NGAP_gnb_UE_Authentication");
            if (PICS_OFFLINE_MODE) {
                f_await_authentication_request_await_authentication_response();
            } else { // Await authentication request and send response
                f_await_authentication_request_send_authentication_response();
            } else {
                f_send_authentication_request_await_authentication_response();
            }
            log("<<< f_NGAP_gnb_UE_Authentication");
        } // End of function f_NGAP_gnb_UE_Authentication
@@ -328,32 +436,11 @@ module NGAP_Steps {
            if (PICS_OFFLINE_MODE) {
                f_await_securitymode_command_await_securitymode_complete();
            } else { // Await security mode and send response
                f_await_securitymode_command_send_securitymode_complete();
                f_send_securitymode_command_await_securitymode_complete();
            }
            log("<<< f_NGAP_gnb_UE_SecurityMode");
        } // End of function f_NGAP_gnb_UE_SecurityMode

        /**
         * @desc
         */
        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 gNBNGAPComponent {
        //FIXME: Implementation of UE handover required
        } // End of function f_NGAP_gnb_UE_Handover_Required

        /**
         * @desc
         */
        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
         */
@@ -362,17 +449,13 @@ module NGAP_Steps {
            if (PICS_OFFLINE_MODE) {
                f_await_initial_context_setup_request_await_initial_context_setup_resonse();
            } else {
                f_await_initial_context_setup_request_send_initial_context_setup_resonse();
                f_send_initial_context_setup_request_await_initial_context_setup_resonse();
            }
        } // End of function f_NGAP_gnb_UE_InitialContextSetup
        
        function f_NGAP_gnb_RegistrationComplete() runs on gNBNGAPComponent {
            log(">>> f_NGAP_gnb_RegistrationComplete");
            if (PICS_OFFLINE_MODE) {
            f_await_registration_complete();
            } else {
                f_send_registration_complete();
            }
        } // End of function f_NGAP_gnb_RegistrationComplete

        /**
@@ -388,24 +471,12 @@ module NGAP_Steps {
            return true;
        } // End of function f_NGAP_gnb_UE_Has_EstablishedContextInproperly
        
        /**
         * @desc
         */
        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

        /**
         * @desc
         */
        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();
            } else {
                f_send_session_establishment_request();
            }
        } // End of function f_NGAP_gnb_UE_PDU_SessionEstablishmentRequest

        /**
@@ -423,14 +494,46 @@ module NGAP_Steps {
        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();
                f_await_pdu_session_resource_setup_request();
            } else {
                f_await_session_resource_setup_request_send_session_resource_setup_response();
                f_send_pdu_session_resource_setup_request();
            }
        }

            // f_send_session_resource_setup_request_await_session_resource_setup_response
        function f_NGAP_gnb_UE_PDU_SessionResourceResponse() runs on gNBNGAPComponent {
            log(">>> f_NGAP_gnb_UE_PDU_SessionResourceResponse");
            f_await_pdu_session_resource_setup_response();
        }

        /**
         * @desc
         */
        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 gNBNGAPComponent {
        //FIXME: Implementation of UE handover required
        } // End of function f_NGAP_gnb_UE_Handover_Required

        /**
         * @desc
         */
        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_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

        /**
         * @desc
         */
+293 −289

File changed.

Preview size limit exceeded, changes collapsed.

Loading