Commit b0ec71ea authored by juvancic's avatar juvancic
Browse files

Added NGAP from ttf033

parent 25b6b4a6
Loading
Loading
Loading
Loading
+143 −0
Original line number Diff line number Diff line
/**
*    @author   ETSI / TTF033
*    @version  $URL$
*              $Id$
*    @desc     This module provides PICS for NGAP tests.
*    @copyright   ETSI Copyright Notification
*                 No part may be reproduced except as authorized by written permission.
*                 The copyright and the foregoing restriction extend to reproduction in all media.
*                 All rights reserved.
*    @see      ETSI TS 
*/
module NGAP_Pics {

    group PICS_A2 {
        /**
         * @desc Does gNB act as the IUT? 
         * @see  ETSI  
         */
        modulepar boolean PICS_NGAP_GNB_IUT := false;

        /**
         * @desc Does AMF act as the IUT? 
         * @see  ETSI  
         */
        modulepar boolean PICS_NGAP_AMF_IUT := false;

    } // End of group PICS_A2

    group PICS_A3 {

        modulepar boolean PICS_A3_1_1	:= false;  //gNB - PDU session management procedure - PDU SESSION RESOURCE SETUP REQUEST 
        modulepar boolean PICS_A3_1_2	:= false;  //gNB - PDU session management procedure - PDU SESSION RESOURCE RELEASE COMMAND
        modulepar boolean PICS_A3_1_3	:= false;  //gNB - PDU session management procedure - PDU SESSION RESOURCE MODIFY REQUEST 
        modulepar boolean PICS_A3_1_4	:= false;  //gNB - PDU session management procedure - PDU SESSION RESOURCE NOTIFY REQUEST
        modulepar boolean PICS_A3_1_5	:= false;  //gNB - PDU session management procedure - PDU SESSION RESOURCE MODIFY INDICATION
        modulepar boolean PICS_A3_2_1	:= false;  //gnB - UE Context Management Procedures - INITIAL CONTEXT SETUP REQUEST
        modulepar boolean PICS_A3_2_2	:= false;  //gnB - UE Context Management Procedures - UE CONTEXT RELEASE REQUEST
        modulepar boolean PICS_A3_2_3	:= false;  //gnB - UE Context Management Procedures - UE CONTEXT RELEASE COMMAND
        modulepar boolean PICS_A3_2_4	:= false;  //gnB - UE Context Management Procedures - UE CONTEXT MODIFICATION REQUEST
        modulepar boolean PICS_A3_2_5	:= false;  //gnB - UE Context Management Procedures - RRC INACTIVE TRANSITION REPORT
        modulepar boolean PICS_A3_2_8	:= false;  //gnB - UE Context Management Procedures - RAN CP Relocation Indication
        modulepar boolean PICS_A3_2_11	:= false;  //gnB - UE Context Management Procedures - UE CONTEXT SUSPEND REQUEST
        modulepar boolean PICS_A3_2_12	:= false;  //gnB - UE Context Management Procedures - UE CONTEXT RESUME REQUEST
        modulepar boolean PICS_A3_3_1	:= false;  //gnB - UE Mobility Management Procedures - HANDOVER REQUIRED
        modulepar boolean PICS_A3_3_2	:= false;  //gnB - UE Mobility Management Procedures - HANDOVER REQUEST
        modulepar boolean PICS_A3_3_3	:= false;  //gnB - UE Mobility Management Procedures - HANDOVER NOTIFY
        modulepar boolean PICS_A3_3_4	:= false;  //gnB - UE Mobility Management Procedures - PATH SWITCH REQUEST
        modulepar boolean PICS_A3_3_5	:= false;  //gnB - UE Mobility Management Procedures - HANDOVER CANCEL
        modulepar boolean PICS_A3_3_6	:= false;  //gnB - UE Mobility Management Procedures - UPLINK RAN STATUS TRANSFER
        modulepar boolean PICS_A3_3_8	:= false;  //gnB - UE Mobility Management Procedures - HANDOVER SUCCESS
        modulepar boolean PICS_A3_3_9	:= false;  //gnB - UE Mobility Management Procedures - UPLINK RAN EARLY STATUS TRANSFER
        modulepar boolean PICS_A3_5_1	:= false;  //gNB - Transport of NAS Messages Procedures - INITIAL UE MESSAGE
        modulepar boolean PICS_A3_5_3	:= false;  //gNB - Transport of NAS Messages Procedures - UPLINK NAS TRANSPORT
        modulepar boolean PICS_A3_5_4	:= false;  //gNB - Transport of NAS Messages Procedures -  NAS NON DELIVERY INDICATION
        modulepar boolean PICS_A3_6_1	:= false;  //gNB - Interface Management Procedures - NG SETUP REQUEST
        modulepar boolean PICS_A3_6_2	:= false;  //gNB - Interface Management Procedures - RAN CONFIGURATION UPDATE
        modulepar boolean PICS_A3_6_3	:= false;  //gNB - Interface Management Procedures - AMF CONFIGURATION UPDATE
        modulepar boolean PICS_A3_6_4	:= false;  //gNB - Interface Management Procedures - NG RESET
        modulepar boolean PICS_A3_6_5	:= false;  //gNB - Interface Management Procedures - ERROR INDICATION
        modulepar boolean PICS_A3_7_1	:= false;  //gNB - Configuration Transfer Procedures -  UPLINK RAN CONFIGURATION TRANSFER
        modulepar boolean PICS_A3_8_1	:= false;  //gNB - Warning Message Transmission procedure - WRITE-REPLACE WARNING REQUEST
        modulepar boolean PICS_A3_8_2	:= false;  //gNB - Warning Message Transmission procedure - PWS CANCEL REQUEST
        modulepar boolean PICS_A3_8_3	:= false;  //gNB - Warning Message Transmission procedure - PWS RESTART INDICATION
        modulepar boolean PICS_A3_8_4	:= false;  //gNB - Warning Message Transmission procedure - PWS FAILURE INDICATION
        modulepar boolean PICS_A3_9_1	:= false;  //gNB - NRPPa Transport procedure - DOWNLINK UE ASSOCIATED NRPPA TRANSPORT messages
        modulepar boolean PICS_A3_9_2	:= false;  //gNB - NRPPa Transport procedure - UPLINK UE ASSOCIATED NRPPA TRANSPORT messages
        modulepar boolean PICS_A3_9_3	:= false;  //gNB - NRPPa Transport procedure - DOWNLINK NON UE ASSOCIATED NRPPA TRANSPORT messages
        modulepar boolean PICS_A3_9_4	:= false;  //gNB - NRPPa Transport procedure - UPLINK NON UE ASSOCIATED NRPPA TRANSPORT messages
        modulepar boolean PICS_A3_10_1	:= false;  //gNB - Trace procedure - TRACE START messages
        modulepar boolean PICS_A3_10_2	:= false;  //gNB - Trace procedure - TRACE FAILURE INDICATION messages
        modulepar boolean PICS_A3_10_3	:= false;  //gNB - Trace procedure - DEACTIVATE TRACE messages
        modulepar boolean PICS_A3_10_4	:= false;  //gNB - Trace procedure - CELL TRAFFIC TRACE messages
        modulepar boolean PICS_A3_11_1	:= false;  //gNB - Location Reporting Procedures - LOCATION REPORTING CONTROL
        modulepar boolean PICS_A3_11_2	:= false;  //gNB - Location Reporting Procedures - LOCATION REPORTING FAILURE INDICATION
        modulepar boolean PICS_A3_11_3	:= false;  //gNB - Location Reporting Procedures - LOCATION REPORT
        modulepar boolean PICS_A3_12_1	:= false;  //gNB - TNLA procedure - UE TNLA BINDING RELEASE REQUEST messages
        modulepar boolean PICS_A3_13_1	:= false;  //gNB - UE Radio Capability Management procedure - UE RADIO CAPABILITY INFO INDICATION messages
        modulepar boolean PICS_A3_13_2	:= false;  //gNB - UE Radio Capability Management procedure - UE RADIO CAPABILITY CHECK REQUEST messages
        modulepar boolean PICS_A3_13_3	:= false;  //gNB - UE Radio Capability Management procedure - UE RADIO CAPABILITY ID MAPPING REQUEST messages
        modulepar boolean PICS_A3_14_1  := false;  //gNB - Data Usage Reporting Procedures - SECONDARY RAT DATA USAGE REPORT 
        modulepar boolean PICS_A3_15_1  := false;  //gNB - RIM information Transfer procedure - UPLINK RIM INFORMATION TRANSFER
        modulepar boolean PICS_A3_15_2  := false;  //gNB - RIM information Transfer procedure - DOWNLINK RIM INFORMATION TRANSFER
    } // End of group PICS_A3

    group PICS_A4 { 

        modulepar boolean PICS_A4_1_1	:= false;  //AMF - PDU session management procedure - PDU SESSION RESOURCE SETUP REQUEST 
        modulepar boolean PICS_A4_1_2	:= false;  //AMF - PDU session management procedure - PDU SESSION RESOURCE RELEASE COMMAND
        modulepar boolean PICS_A4_1_3	:= false;  //AMF - PDU session management procedure - PDU SESSION RESOURCE MODIFY REQUEST
        modulepar boolean PICS_A4_1_4	:= false;  //AMF - PDU session management procedure - PDU SESSION RESOURCE MODIFY NOTIFY
        modulepar boolean PICS_A4_1_5	:= false;  //AMF - PDU session management procedure - PDU SESSION RESOURCE MODIFY INDICATION
        modulepar boolean PICS_A4_2_1	:= false;  //AMF - UE Context Management Procedures - INITIAL CONTEXT SETUP REQUEST
        modulepar boolean PICS_A4_2_3	:= false;  //AMF - UE Context Management Procedures - UE CONTEXT RELEASE COMMAND
        modulepar boolean PICS_A4_2_4	:= false;  //AMF - UE Context Management Procedures - UE CONTEXT MODIFICATION REQUEST
        modulepar boolean PICS_A4_2_6	:= false;  //AMF - UE Context Management Procedures - CONNECTION ESTABLISHMENT INDICATION
        modulepar boolean PICS_A4_2_7	:= false;  //AMF - UE Context Management Procedures - AMF CP RELOCATION INDICATION
        modulepar boolean PICS_A4_2_9	:= false;  //AMF - UE Context Management Procedures - RETRIEVE UE INFORMATION
        modulepar boolean PICS_A4_2_10	:= false;  //AMF - UE Context Management Procedures - UE INFORMATION TRANSFER
        modulepar boolean PICS_A4_2_11	:= false;  //AMF - UE Context Management Procedures - UE CONTEXT SUSPEND REQUEST
        modulepar boolean PICS_A4_2_12	:= false;  //AMF - UE Context Management Procedures - UE CONTEXT RESUME REQUEST
        modulepar boolean PICS_A4_3_1	:= false;  //AMF - UE Mobility Management Procedures - HANDOVER REQUIRED
        modulepar boolean PICS_A4_3_2	:= false;  //AMF - UE Mobility Management Procedures - HANDOVER REQUEST
        modulepar boolean PICS_A4_3_4	:= false;  //AMF - UE Mobility Management Procedures - PATH SWITCH REQUESTS
        modulepar boolean PICS_A4_3_5	:= false;  //AMF - UE Mobility Management Procedures - HANDOVER CANCEL
        modulepar boolean PICS_A4_3_6	:= false;  //AMF - UE Mobility Management Procedures - UPLINK RAN STATUS TRANSFER
        modulepar boolean PICS_A4_3_9	:= false;  //AMF - UE Mobility Management Procedures - UPLINK RAN EARLY STATUS TRANSFER
        modulepar boolean PICS_A4_4_1	:= false;  //AMF - Paging procedures - Paging
        modulepar boolean PICS_A4_5_2	:= false;  //AMF - Transport of NAS Messages Procedures - DOWNLINK NAS TRANSPORT
        modulepar boolean PICS_A4_5_5	:= false;  //AMF - Transport of NAS Messages Procedures - REROUTE NAS REQUEST
        modulepar boolean PICS_A4_6_1	:= false;  //AMF - Interface Management Procedures - NG SETUP REQUEST
        modulepar boolean PICS_A4_6_2	:= false;  //AMF - Interface Management Procedures - RAN CONFIGURATION UPDATE
        modulepar boolean PICS_A4_6_3	:= false;  //AMF - Interface Management Procedures - AMF CONFIGURATION UPDATE
        modulepar boolean PICS_A4_6_4	:= false;  //AMF - Interface Management Procedures - NG RESET
        modulepar boolean PICS_A4_6_5	:= false;  //AMF - Interface Management Procedures - ERROR INDICATION
        modulepar boolean PICS_A4_6_6	:= false;  //AMF - Interface Management Procedures - AMF STATUS INDICATION
        modulepar boolean PICS_A4_6_7	:= false;  //AMF - Interface Management Procedures - OVERLOAD START
        modulepar boolean PICS_A4_6_8	:= false;  //AMF - Interface Management Procedures - OVERLOAD STOP
        modulepar boolean PICS_A4_7_2	:= false;  //AMF - Configuration Transfer Procedures - DOWNLINK RAN CONFIGURATION TRANSFER
        modulepar boolean PICS_A4_8_1	:= false;  //AMF - Warning Message Transmission procedure - WRITE-REPLACE WARNING REQUEST
        modulepar boolean PICS_A4_8_2	:= false;  //AMF - Warning Message Transmission procedure - PWS CANCEL REQUEST
        modulepar boolean PICS_A4_8_3	:= false;  //AMF - Warning Message Transmission procedure - PWS RESTART INDICATION
        modulepar boolean PICS_A4_8_4	:= false;  //AMF - Warning Message Transmission procedure - PWS FAILURE INDICATION
        modulepar boolean PICS_A4_9_1	:= false;  //AMF - NRPPa Transport procedure - DOWNLINK UE ASSOCIATED NRPPA TRANSPORT messages
        modulepar boolean PICS_A4_9_2	:= false;  //AMF - NRPPa Transport procedure - UPLINK UE ASSOCIATED NRPPA TRANSPORT messages
        modulepar boolean PICS_A4_9_3	:= false;  //AMF - NRPPa Transport procedure - DOWNLINK NON UE ASSOCIATED NRPPA TRANSPORT messages
        modulepar boolean PICS_A4_9_4	:= false;  //AMF - NRPPa Transport procedure - UPLINK NON UE ASSOCIATED NRPPA TRANSPORT messages
        modulepar boolean PICS_A4_10_1	:= false;  //AMF - Trace procedure - TRACE START messages
        modulepar boolean PICS_A4_10_2	:= false;  //AMF - Trace procedure - TRACE FAILURE INDICATION messages
        modulepar boolean PICS_A4_10_3	:= false;  //AMF - Trace procedure - DEACTIVATE TRACE messages
        modulepar boolean PICS_A4_10_4	:= false;  //AMF - Trace procedure - CELL TRAFFIC TRACE messages
        modulepar boolean PICS_A4_11_1	:= false;  //AMF - Location Reporting Procedures - LOCATION REPORTING CONTROL
        modulepar boolean PICS_A4_11_2	:= false;  //AMF - Location Reporting Procedures - LOCATION REPORTING FAILURE INDICATION
        modulepar boolean PICS_A4_11_3	:= false;  //AMF - Location Reporting Procedures - LOCATION REPORT
        modulepar boolean PICS_A4_12_1	:= false;  //AMF - TNLA procedure - UE TNLA BINDING RELEASE REQUEST messages
        modulepar boolean PICS_A4_13_1	:= false;  //AMF - UE Radio Capability Management procedure - UE RADIO CAPABILITY INFO INDICATION messages
        modulepar boolean PICS_A4_13_2	:= false;  //AMF - UE Radio Capability Management procedure - UE RADIO CAPABILITY CHECK REQUEST messages
        modulepar boolean PICS_A4_13_3	:= false;  //AMF - UE Radio Capability Management procedure - UE RADIO CAPABILITY ID MAPPING REQUEST messages
        modulepar boolean PICS_A4_14_1  := false;  //AMF - Data Usage Reporting Procedures - SECONDARY RAT DATA USAGE REPORT 
        modulepar boolean PICS_A4_15_1  := false;  //AMF - RIM information Transfer procedure - UPLINK RIM INFORMATION TRANSFER
        modulepar boolean PICS_A4_15_2  := false;  //AMF - RIM information Transfer procedure - DOWNLINK RIM INFORMATION TRANSFER 
    } // End of group PICS_A4

} // End of module NGAP_Pics 
+86 −0
Original line number Diff line number Diff line
/**
*    @author   ETSI / TTF033
*    @version  $URL$
*              $Id$
*    @desc     This module provides PIXITs for NGAP tests.
*    @copyright   ETSI Copyright Notification
*                 No part may be reproduced except as authorized by written permission.
*                 The copyright and the foregoing restriction extend to reproduction in all media.
*                 All rights reserved.
*    @see      ETSI TS 
*/
module NGAP_Pixits {

    //  LibCommon
    import from LibCommon_BasicTypesAndValues all;
    import from LibCommon_DataStrings all;

    // LibNGAP
    import from NGAP_CommonDataTypes language "ASN.1:1997" all;
    import from NGAP_IEs language "ASN.1:2002" all;

    group NGAP_Port_and_addresses {

        group NGAP_TS_Port_and_addresses {

            /** @desc    
             * IP address of the test system
             */
            modulepar charstring PX_NGAP_ETS_IPADDR := "1.1.1.10";

            /** @desc    
             * Port number of the test system
             */
            modulepar integer PX_NGAP_ETS_PORT := 3868;

            /** @desc    
             * IP address of the test system
             */
            modulepar charstring PX_NGAP_ETS_IPADDR2 := "1.1.1.13";

            /** @desc    
             * Port number of the test system
             */
            modulepar integer PX_NGAP_ETS_PORT2 := 3868;


        } // End of group NGAP_TS_Port_and_addresses

        group NGAP_SUT_Port_and_addresses {

            /** @desc    
             * IP address of the system under test
             */
            modulepar charstring PX_NGAP_SUT_IPADDR := "1.1.2.10";

            /** @desc   
             * Port number of the system under test
             */
            modulepar integer PX_NGAP_SUT_PORT := 3868;

        } // End of group NGAP_SUT_Port_and_addresses{

    } // End of group NGAP_Port_and_addresses

    group NGAP_CommonData {

        /** 
         * @desc    integer for variant selection, 
         * @see ETSI 
         */
        modulepar integer PX_VA := 1;

        /**
         * @desc Variant for Criticality values
         */
        modulepar Criticality PX_VA_CRITICALITY := reject;

      /** 
        * @desc    integer for timer TNGRELOCOverall, 
        * @see ETSI  TS 138 413, chapter 9.6
        */
        modulepar float PX_TNGRELOCOverall := 10.0;

    } // End of group NGAP_CommonData

} // End of module NGAP_Pixits
+321 −0

File added.

Preview size limit exceeded, changes collapsed.

+137 −0
Original line number Diff line number Diff line
/**
*    @author   ETSI / TTF033
*    @version  $URL$
*              $Id$
*    @desc     This module provides test configuration description for NGAP tests.
*    @copyright   ETSI Copyright Notification
*                 No part may be reproduced except as authorized by written permission.
*                 The copyright and the foregoing restriction extend to reproduction in all media.
*                 All rights reserved.
*    @see      ETSI TS 
*/
module NGAP_TestConfiguration {

    // LibCommon
    import from LibCommon_Sync all;
    import from LibCommon_VerdictControl all;

    // NGAP_Ats
    import from NGAP_TestSystem all;
    //  LibNGAP
    import from LibNGAP_Interface all;

    group cfUp {

        /**
         * @desc Creates test configuration of cf_NGAP_AMF - gNB is SUT
         * @param p_NGAPComponent_mme
         */
        function f_cf_NGAP_aMF_Up(
                                 out aMFNGAPComponent p_NGAPComponent_amf
        ) runs on aMFNGAPComponent system TestAdapter {
            //Variables
            var FncRetCode v_ret := e_success;

            //Create
            p_NGAPComponent_amf := aMFNGAPComponent.create ;

            // Connect mtc sync port
            connect(self:syncPort, self:syncPort);
            // Connect client sync port
            connect(p_NGAPComponent_amf:syncPort, self:syncPort) ;
            //Map
            map(p_NGAPComponent_amf:N2_gNBaMF_P, system:NGAP_AMF);

            activate(a_mtc_shutdown());

            f_setVerdict(v_ret);
        } // End of function f_cf_NGAP_AMF_Up

        /**
         * @desc Creates test configuration of cf_NGAP_gNB - AMF is SUT
         * @param p_NGAPComponent_gnb
         */
        function f_cf_NGAP_gNB_Up(
                                  out gNBNGAPComponent p_NGAPComponent_gnb
        ) runs on gNBNGAPComponent system TestAdapter {
            //Variables
            var FncRetCode v_ret := e_success;

            //Create
            p_NGAPComponent_gnb := gNBNGAPComponent.create ;

            // Connect mtc sync port
            connect(self:syncPort, self:syncPort);
            // Connect client sync port
            connect(p_NGAPComponent_gnb:syncPort, self:syncPort) ;
            //Map
            map(p_NGAPComponent_gnb:N2_gNBaMF_P, system:NGAP_gNB_1);

            activate(a_mtc_shutdown());

            f_setVerdict(v_ret);
        } // End of function f_cf_NGAP_gNB_Up

        /**
         * @desc Creates test configuration of cf_NGAP_2gNB - AMF is SUT
         * @param p_NGAPComponent_enb1, p_NGAPComponent_gnb2
         */
        function f_cf_NGAP_2gNB_Up(
                                   out gNBNGAPComponent p_NGAPComponent_gnb1,
                                   out gNBNGAPComponent p_NGAPComponent_gnb2
        ) runs on gNBNGAPComponent system TestAdapter {
            //Variables
            var FncRetCode v_ret := e_success;

            //Create
            p_NGAPComponent_gnb1 := gNBNGAPComponent.create;
            p_NGAPComponent_gnb2 := gNBNGAPComponent.create;

            // Connect mtc sync port
            connect(self:syncPort, self:syncPort);
            // Connect client sync port
            connect(p_NGAPComponent_gnb1:syncPort, self:syncPort);
            connect(p_NGAPComponent_gnb2:syncPort, self:syncPort) ;

            //Map
            map(p_NGAPComponent_gnb1:N2_gNBaMF_P, system:NGAP_gNB_1);
            map(p_NGAPComponent_gnb2:N2_gNBaMF_P, system:NGAP_gNB_2);

            activate(a_mtc_shutdown());

            f_setVerdict(v_ret);
        } // End of function f_cf_NGAP_2gNB_Up

    } // End of group cfUp

    group cfDown {

        /**
         * @desc Deletes configuration
         * @param 
         */
        function f_cf_Down() runs on NGAPComponent system TestAdapter {
            // Deactivate all
            deactivate;
            // Unmap all
            //unmap;
            // Disconnect all
            //disconnect;

        } // End of function f_cf_Down

    } // End of group cfDown

    group shutDownAltsteps {

        altstep a_mtc_shutdown() 
        runs on SelfSyncComp {
            [] syncSendPort.receive(m_syncServerStop) {
                tc_sync.stop ;
                log("**** a_mtc_shutdown: MTC component received STOP signal **** ");
            }
        } // End of altstep a_mtc_shutdown

    } // End of group shutDownAltsteps

} // End of module NGAP_TestConfiguration
+55 −0
Original line number Diff line number Diff line
 /**
*    @author   ETSI / TTF033
*    @version  $URL$
*              $Id$
*    @desc    This module provides the types and ports used by the test component for NGAP tests.
*    @copyright   ETSI Copyright Notification
*                 No part may be reproduced except as authorized by written permission.
*                 The copyright and the foregoing restriction extend to reproduction in all media.
*                 All rights reserved.
*    @see      ETSI TS 
*/
module NGAP_TestSystem {

    // LibCommon
    import from LibCommon_Sync all;

    // LibNGAP
    import from LibNGAP_Interface all;

    group SystemConfiguration {

        group TestComponents {

            group TestSystemInterfaces {

                /**
                 * @desc  The test system interface
                 */
                type component TestAdapter {

                   port 
                       NGAPPort NGAP_AMF,
                       NGAP_gNB_1, 
                       NGAP_gNB_2
                } // End of type TestAdapter

        } // End of group TestSystemInterfaces

        type component gNBNGAPComponent extends ServerSyncComp, NGAPComponent {
            //component variables
        } // End of type component gNBNGAPComponent

        type component aMFNGAPComponent extends ServerSyncComp, NGAPComponent {
            //component variables
        } // End of type component aMFNGAPComponent

        //type component NGAP extends ServerSyncComp, NGAPComponent { 
        //    //component variables  
        //} // End of component NGAP

      } // End of group TestComponents

    } // End of group SystemConfiguration

} // End of module NGAP_TestSystem
Loading