Commit 8c1ce0b0 authored by Bostjan Pintar's avatar Bostjan Pintar
Browse files

First tests and NGAP_common

parent eb2fa133
Loading
Loading
Loading
Loading
+217 −0
Original line number Diff line number Diff line
/* ETSI Software License
* As long as the here under conditions are respected, non-exclusive permission is hereby granted,
* free of charge, to use, reproduce and modify this software source code, under the following conditions:
* This source code is provided AS IS with no warranties, express or implied, including but not limited to,
* the warranties of merchant ability, fitness for a particular purpose and warranties for non-infringement
* of intellectual property rights.
* ETSI shall not be held liable in any event for any direct or indirect damages whatsoever (including, without
* limitation, damages for loss of profits, business interruption, loss of information, or any other pecuniary
* loss) arising out of or related to the use of or inability to use the source code.
* This permission is granted to facilitate the implementation of the related ETSI standard, provided that
* ETSI is given the right to use, reproduce and amend the modified source code under the same conditions
* as the present permission.
* This permission does not apply to any documentation associated with this source code for which ETSI keeps
* all rights reserved.
* The present ETSI Source Code license shall be included in all copies of whole or part of this source code
* and shall not imply any sub-license right.
* (c) ETSI 2019-2020 
*/
 
 
Package Ngap_Common {
    Domain {
        pics:
            - NONE
            - PICS_A3/5_1
            - NOT_PICS_2
        ;
        entities:
            - UE
            - GNB
            - AMF
            - IUT
        ;
        events:
            - receives
            - sends
            - forwards
            - isRequestedToPlaceACall
            // Initial conditions
            - isNotRegisteredTo
            - hasAchievedFirstRegistration
            - isRegisteredTo
            - isNotAttachedTo
            - isAttachedTo
            - isNotConfiguredForTopologyHiding
            - isConfiguredForTopologyHiding
            - isExistingIn
            - establishedSecurityRelation
            - registeredIdentityTelURI
            - registeredIdentitySipURI
            - hasInitiatedDialogWith
            - hasInitiatedPS2CSinEarlydialog
            - hasInitiatedPS2CSinAlertingState
            - hasEstablishedDialog
            - hasEstablishedPS2CSDialog
            - isConfiguredWithENUMentryForTelURI_E164NumberOf
            - hasReceivedInitialRequestForDialog
            - hasReceived200OkOnInitialRequestForDialogWith
            - hasReceived180OnInitialRequest
            - hasReceived200OkCancel
            - hasReceivedTerminatedRequest
            - registeredPublicIdsWithTelUriAndSipUri
            - hasReceivedSubsequentOrTargetRefreshRequestInDialog
            - previouslyEstablishedCallWith
            - isRequestedToSend
            - isRequestedToDeregisterUser
            - isBusy
            - isNoLongerAvailable
            - isTriggeredToDetachUser
            - isRequestedToDetachfromNetwork
            - hasAchievedFirstREGISTER
            - hasResponded486INVITE
            - hasAchievedInitialINVITE
            - hasAchievedINVITE
            - hasAchievedUPDATEuponINVITE
            - timerOperatorSpecificTimeout //NOTE: 8 seconds is an appropriate value for the operator policy.
            - isAttachingToNetwork
            - hasDoneSubscription
            - indicate
        ;
    } // End of Domain section


//    Const {
//        PX_Stored_Domain_Uri,
//        PX_TO_BE_DEFINED
//        ;
//    } // End of Const section

    Data {
    	
        type NgapMessage;
        
        //Table 8.1-1     
        NgapMessage AMF_CONFIGURATION_UPDATE;
        NgapMessage AMF_CONFIGURATION_UPDATE_ACKNOWLEDGE;
        NgapMessage AMF_CONFIGURATION_UPDATE_FAILURE;
        NgapMessage RAN_CONFIGURATION_UPDATE;
        NgapMessage RAN_CONFIGURATION_UPDATE_ACKNOWLEDGE;
        NgapMessage RAN_CONFIGURATION_UPDATE_FAILURE;
        NgapMessage HANDOVER_CANCEL;
        NgapMessage HANDOVER_CANCEL_ACKNOWLEDGE;
        NgapMessage HANDOVER_REQUIRED;
        NgapMessage HANDOVER_COMMAND;
        NgapMessage HANDOVER_PREPARATION_FAILURE;
        NgapMessage HANDOVER_REQUEST ;
        NgapMessage HANDOVER_REQUEST_ACKNOWLEDGE;
        NgapMessage HANDOVER_FAILURE;
        NgapMessage INITIAL_CONTEXT_SETUP_REQUEST;
        NgapMessage INITIAL_CONTEXT_SETUP_RESPONSE;
        NgapMessage INITIAL_CONTEXT_SETUP_FAILURE;
        NgapMessage NG_RESET;
        NgapMessage NG_RESET_ACKNOWLEDGE;
        NgapMessage NG_SETUP_REQUEST;
        NgapMessage NG_SETUP_RESPONSE; 
        NgapMessage NG_SETUP_FAILURE;
        NgapMessage PATH_SWITCH_REQUEST;
        NgapMessage PATH_SWITCH_REQUEST_ACKNOWLEDGE;
        NgapMessage PATH_SWITCH_REQUEST_FAILURE;
        NgapMessage PDU_SESSION_RESOURCE_MODIFY_REQUEST;
        NgapMessage PDU_SESSION_RESOURCE_MODIFY_RESPONSE;
        NgapMessage PDU_SESSION_RESOURCE_MODIFY_INDICATION;
        NgapMessage PDU_SESSION_RESOURCE_MODIFY_CONFIRM;
        NgapMessage PDU_SESSION_RESOURCE_RELEASE_COMMAND;
        NgapMessage PDU_SESSION_RESOURCE_RELEASE_RESPONSE;
        NgapMessage PDU_SESSION_RESOURCE_SETUP_REQUEST;
        NgapMessage PDU_SESSION_RESOURCE_SETUP_RESPONSE;
        NgapMessage UE_CONTEXT_MODIFICATION_REQUEST;
        NgapMessage UE_CONTEXT_MODIFICATION_RESPONSE;
        NgapMessage UE_CONTEXT_MODIFICATION_FAILURE;
        NgapMessage UE_CONTEXT_RELEASE_COMMAND;
        NgapMessage UE_CONTEXT_RELEASE_COMPLETE;
        NgapMessage WRITE_REPLACE_WARNING_REQUEST;
        NgapMessage WRITE_REPLACE_WARNING_RESPONSE;
        NgapMessage PWS_CANCEL_REQUEST;
        NgapMessage PWS_CANCEL_RESPONSE;
        NgapMessage UE_RADIO_CAPABILITY_CHECK_REQUEST;
        NgapMessage UE_RADIO_CAPABILITY_CHECK_RESPONSE;
        NgapMessage UE_CONTEXT_SUSPEND_REQUEST;
        NgapMessage UE_CONTEXT_SUSPEND_RESPONSE;
        NgapMessage UE_CONTEXT_SUSPEND_FAILURE;
        NgapMessage UE_CONTEXT_RESUME_REQUEST;
        NgapMessage UE_CONTEXT_RESUME_RESPONSE;
        NgapMessage UE_CONTEXT_RESUME_FAILURE;
        NgapMessage UE_RADIO_CAPABILITY_ID_MAPPING_REQUEST;
        NgapMessage UE_RADIO_CAPABILITY_ID_MAPPING_RESPONSE;
        
        //Table 8.1-2
        NgapMessage DOWNLINK_RAN_CONFIGURATION_TRANSFER;
        NgapMessage DOWNLINK_RAN_STATUS_TRANSFER;
        NgapMessage DOWNLINK_NAS_TRANSPORT;
        NgapMessage ERROR_INDICATION;
        NgapMessage UPLINK_RAN_CONFIGURATION_TRANSFER;
        NgapMessage UPLINK_RAN_STATUS_TRANSFER;
        NgapMessage HANDOVER_NOTIFY;
        NgapMessage INITIAL_UE_MESSAGE;
        NgapMessage NAS_NON_DELIVERY_INDICATION;
        NgapMessage PAGING;
        NgapMessage PDU_SESSION_RESOURCE_NOTIFY;
        NgapMessage REROUTE_NAS_REQUEST;
        NgapMessage UE_CONTEXT_RELEASE_REQUEST;
        NgapMessage UPLINK_NAS_TRANSPORT;
        NgapMessage AMF_STATUS_INDICATION;
        NgapMessage PWS_RESTART_INDICATION;
        NgapMessage PWS_FAILURE_INDICATION;
        NgapMessage DOWNLINK_UE_ASSOCIATED_NRPPA_TRANSPORT;
        NgapMessage UPLINK_UE_ASSOCIATED_NRPPA_TRANSPORT;
        NgapMessage DOWNLINK_NON_UE_ASSOCIATED_NRPPA_TRANSPORT;
        NgapMessage UPLINK_NON_UE_ASSOCIATED_NRPPA_TRANSPORT;
        NgapMessage TRACE_START;
        NgapMessage TRACE_FAILURE_INDICATION;
        NgapMessage DEACTIVATE_TRACE;
        NgapMessage CELL_TRAFFIC_TRACE;
        NgapMessage LOCATION_REPORTING_CONTROL;
        NgapMessage LOCATION_REPORTING_FAILURE_INDICATION;
        NgapMessage LOCATION_REPORT;
        NgapMessage UE_TNLA_BINDING_RELEASE_REQUEST;
        NgapMessage UE_RADIO_CAPABILITY_INFO_INDICATION;
        NgapMessage RRC_INACTIVE_TRANSITION_REPORT;
        NgapMessage OVERLOAD_START;
        NgapMessage OVERLOAD_STOP;
        NgapMessage SECONDARY_RAT_DATA_USAGE_REPORT;
        NgapMessage UPLINK_RIM_INFORMATION_TRANSFER;
        NgapMessage DOWNLINK_RIM_INFORMATION_TRANSFER;
        NgapMessage RETRIEVE_UE_INFORMATION;
        NgapMessage UE_INFORMATION_TRANSFER;
        NgapMessage RAN_CP_RELOCATION_INDICATION;
        NgapMessage CONNECTION_ESTABLISHMENT_INDICATION;
        NgapMessage AMF_CP_RELOCATION_INDICATION;
        NgapMessage HANDOVER_SUCCESS;
        NgapMessage UPLINK_RAN_EARLY_STATUS_TRANSFER;
        NgapMessage DOWNLINK_RAN_EARLY_STATUS_TRANSFER;
                
    } // End of Data section
          
        Configuration {
            Interface Type defaultGT accepts NgapMessage;
            Component Type NgapComponent with gate g of type defaultGT;
            
            
            Test Configuration CFG_GNB_01 
                containing 
                    Tester component AMF of type NgapComponent
                    SUT component IUT of type NgapComponent
                    connection between AMF.g and IUT.g;
                    
            Test Configuration CFG_AMF_01 
                containing 
                    Tester component GNB of type NgapComponent
                    SUT component IUT of type NgapComponent
                    connection between GNB.g and IUT.g;
                    
        }
    
    
} // End of Package Sip_Common
+1 −0
Original line number Diff line number Diff line
[1]	ETSI TS 138 413: "5G;NG-RAN; NG Application Protocol (NGAP) (3GPP TS 38.413 version 16.12.0 Release 16)".
+24 −0
Original line number Diff line number Diff line
/*
Copyright (c) ETSI 2023.

This software is subject to copyrights owned by ETSI. Non-exclusive permission
is hereby granted, free of charge, to copy, reproduce and amend this file
under the following conditions: It is provided "as is", without warranty of any
kind, expressed or implied.

ETSI shall never be liable for any claim, damages, or other liability arising
from its use or inability of use.This permission does not apply to any documentation
associated with this file for which ETSI keeps all rights reserved. The present
copyright notice shall be included in all copies of whole or part of this
file and shall not imply any sub-license right.
*/

/* interface at AMF */
Package TP_AMF {
    
      
    
//TO BE DONE
    
} // End of Package TP_AMF
+158 −0
Original line number Diff line number Diff line
/*
Copyright (c) ETSI 2023.

This software is subject to copyrights owned by ETSI. Non-exclusive permission
is hereby granted, free of charge, to copy, reproduce and amend this file
under the following conditions: It is provided "as is", without warranty of any
kind, expressed or implied.

ETSI shall never be liable for any claim, damages, or other liability arising
from its use or inability of use.This permission does not apply to any documentation
associated with this file for which ETSI keeps all rights reserved. The present
copyright notice shall be included in all copies of whole or part of this
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;
    	 
    	Test Purpose {
		
        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."
        
        Reference 
            "ETSI TS 138 413 [1], Clauses 8.2.1.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_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;
                        ;
                    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_Setup_Response_List containing
                            PDU_SessionId,
                            PDU_Session_Resource_Setup_Response_Transfer;
                        ;
                     to the AMF entity
                	}
            	}
            
            } // 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."
        
        Reference 
            "ETSI TS 138 413 [1], Clauses 8.2.1.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_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;
                        ;
                    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
                            PDU_SessionId,
                            PDU_Session_Resource_Setup_Unsuccessful_Transfer;
                        ;
                     to the AMF entity
                	}
            	}
            
            } // end TP_NGAP_GNB_PDU_02
    	
    } // end Group 8.2 PDU Session Management Procedures
    
      
    
    Group "8.6 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 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
    	
    } // end Group 8.6 Initial UE message
    
} // End of Package TP_GNB