Commit 98df199e authored by Yann Garcia's avatar Yann Garcia
Browse files

Merge branch 'TTF_T059_Rel17'

parents 0d49e054 dc1e0975
Loading
Loading
Loading
Loading
+219 −0
Changes for etc/AtsNGAP/AtsNGAP_AMF_p_net.cfg_: 219 added lines, 0 removed lines.
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.

# https://www.binaryhexconverter.com/hex-to-binary-converter

LibCommon_Time.PX_TDONE                 := 30.0;
LibCommon_Time.PX_TAC                   := 30.0;
LibCommon_Time.PX_TNOAC                 := 10.0;
LibCommon_Time.PX_TWAIT                 := 30.0;
LibCommon_Sync.PX_TSYNC_TIME_LIMIT      := 10.0;
LibCommon_Sync.PX_TSHUT_DOWN_TIME_LIMIT := 10.0;

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

LibNGAP_Pics.PICS_OFFLINE_MODE := false # true for offline mode with pcap files, false for online mode with SCTP server
LibNGAP_Pics.PICS_USE_OPEN5GS  := false # true to start open5gs, false to not start them

LibNGAP_Pixits.PX_NAS_MCC          := '999'H
LibNGAP_Pixits.PX_NAS_MNC          := '39'H
LibNGAP_Pixits.PX_RAN_NODE_NAME    := "gnb0012345"
LibNGAP_Pixits.PX_GNB_ID           := '00000000000000000000000000000001'B
LibNGAP_Pixits.PX_RAN_NODE_NAME    := "UERANSIM-gnb-999-70-1"
LibNGAP_Pixits.PX_TACode           := '000001'O
LibNGAP_Pixits.PX_SST              := '01'O
LibNGAP_Pixits.PX_SD               := '000001'O
LibNGAP_Pixits.PX_PAGING_DRX       := v128
LibNGAP_Pixits.PX_AMF_NAME         := "open5gs-amf0"
LibNGAP_Pixits.PX_AMF_REGION_ID    := '00000010'B
LibNGAP_Pixits.PX_AMF_SET_ID       := '0000000001'B
LibNGAP_Pixits.PX_AMF_POINTER      := '000000'B
LibNGAP_Pixits.PX_RAN_UE_NGAP_ID   := 1
LibNGAP_Pixits.PX_AMF_UE_NGAP_ID   := 2

LibNGAP_Pixits.PX_TIME_ZONE        := '80'O # 0x40 for GMT+1, 0x80 for GMT+2

LibNGAP_Pixits.PX_PDU_SESSION_ID   := 1

Lib_NG_NAS_Pixits.PX_CHECK_SECURITY                  := false
Lib_NG_NAS_Pixits.PX_SUPI_FORMAT                     := '0000'B # IMSI format
Lib_NG_NAS_Pixits.PX_TYPE_OF_ID                      := '001'B # SUCI type
Lib_NG_NAS_Pixits.PX_SUPI_DIGITS                     := '00f110214300014444330302'O
Lib_NG_NAS_Pixits.PX_MSIN                            := '0000000010'O;
Lib_NG_NAS_Pixits.PX_NETWORK_NAME                    := "Open5GS"

# OP
Lib_NG_NAS_Pixits.PX_OPERATOR_KEY                    := '00000000000000000000000000000000'O
# OPc
Lib_NG_NAS_Pixits.PX_OPERATOR_SECRET_KEY             := 'E8ED289DEBA952E4283B54E88E6183CA'O
Lib_NG_NAS_Pixits.PX_FORCE_USING_OPERATOR_SECRET_KEY := true

Lib_NG_NAS_Pixits.PX_SUBSCRIPTION_KEY                := '01000110010110110101110011101000101100011001100110110100100111111010101001011111000010100010111011100010001110001010011010111100'B
Lib_NG_NAS_Pixits.PX_BEARER_ID                       := '00001'B

Parameters.px_IMSI_Def                               := '393939373030303030303030303031'H # 999700000000001
Parameters.px_IMEISV_Def                             := '7380612185615101'H
NAS_5GC_Parameters.px_NAS_5GC_XRES_Length            := 8 # In ETSI TS 135 206 V16.0.0 (2020-08) Table Table 5. f2 output, RES length is 8 octets (64 bits)

# Upper tester parameters for UERANSIM integration
LibNGAP_Pixits.PX_OPEN5GS_BINARY_FILE := "/home/yann/dev/open5gs/build/tests/app/5gc"

[LOGGING]
# In this section you can specify the name of the log file and the classes of events
# you want to log into the file or display on console (standard error).

LogFile := "../logs/AtsNGAP/%e.%h-%r.%s"
FileMask := LOG_ALL | USER | DEBUG | MATCHING
ConsoleMask := LOG_ALL | USER | DEBUG | MATCHING
#FileMask := ERROR | WARNING | USER | MATCHING | EXECUTOR_RUNTIME | VERDICTOP | PORTEVENT | PARALLEL | TESTCASE
#ConsoleMask := ERROR | WARNING | USER | MATCHING | EXECUTOR_RUNTIME | VERDICTOP | PORTEVENT | PARALLEL | TESTCASE
LogSourceInfo := Stack
LogEntityName:= Yes
LogEventTypes:= Yes
#TimeStampFormat := DateTime

[TESTPORT_PARAMETERS]
# In this section you can specify parameters that are passed to Test Ports.

# Open5GS AMF IP and port as listener
system.NGAP_AMF.params := "NGAP/SCTP(server=10.174.18.65,port=38412,debug=1)"
3.NGAP_AMF.params := "NGAP/SCTP(server=10.174.18.65,port=38412,debug=1)"

# Open5GS pcap files
# Do not forget to set LibNGAP_Pics.PICS_OFFLINE_MODE to true
#system.NGAP_AMF.params := "NGAP/SCTP_FILE/IP_OFFLINE/PCAP_FILE(file=../captures/ttcn_5g_ngap.pcapng)" # Linux cooked capture v2, no Ethernet layer
#system.NGAP_AMF.params := "NGAP/SCTP_FILE/IP_OFFLINE/ETH(mac_src=8c554ac1eee0,mac_dst=8c554ac1eee1)/PCAP_FILE(file=../captures/TC_NGAP_AMF_PDU_01.pcap)" # regular pcap with Ethernet layer

#system.gtpPort.params := "GTPV2(auto_echo_reply=1)/UDP(server=192.168.1.10,port=2123,local_port=2123)"
#system.gtpPort.params := "GTPV2/UDP_FILE(port=2123)/IP_OFFLINE/PCAP_FILE(file=./captures/s11_create_session.pcap,filter=udp port 2123)"

[DEFINE]
# In this section you can create macro definitions,
# that can be used in other configuration file sections except [INCLUDE] and [ORDERED_INCLUDE].

[INCLUDE]
# To use configuration settings given in other configuration files,
# the configuration files just need to be listed in this section, with their full or relative pathnames.

[ORDERED_INCLUDE]
# To use configuration settings given in other configuration files,
# the configuration files just need to be listed in this section, with their full or relative pathnames.

[EXTERNAL_COMMANDS]
# This section can define external commands (shell scripts) to be executed by the ETS
# whenever a control part or test case is started or terminated.

#BeginTestCase := ""
#EndTestCase := ""
#BeginControlPart := ""
#EndControlPart := ""

[EXECUTE]
# In this section you can specify what parts of your test suite you want to execute.
#AtsImsIot_TestControl.control

# Verify that the IUT can send a  PDU SESSION RESOURCE SETUP REQUEST with at least one PDU session resource list to established PDU session.
#NGAP_TestCases.TC_NGAP_AMF_PDU_01
# Verify that the IUT successfully receives and processes the PDU_SESSION_RESOURCE_SETUP_RESPONSE message and completes the PDU Session Resource Setup procedure for a single PDU_Session_Resource.
#NGAP_TestCases.TC_NGAP_AMF_PDU_01_02
# Verify that the IUT can send a  PDU_SESSION_RESOURCE_RELEASE_COMMAND to release PDU session.
NGAP_TestCases.TC_NGAP_AMF_PDU_02
# Verify that the IUT successfully receives and processes the PDU_SESSION_RESOURCE_RELEASE_RESPONSE message and completes the PDU Session Resource Release procedure for a single PDU_Session_Resource.
#NGAP_TestCases.TC_NGAP_AMF_PDU_02_02
# Verify that the IUT can send a  PDU_SESSION_RESOURCE_MODIFY_REQUEST to modify PDU session.
#NGAP_TestCases.TC_NGAP_AMF_PDU_03
# 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.
#NGAP_TestCases.TC_NGAP_AMF_PDU_04
# 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.
#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
# 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
## 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
##NGAP_TestCases.TC_NGAP_AMF_CMP_06
## Verify that the IUT can successfully request UE information from the AMF
##NGAP_TestCases.TC_NGAP_AMF_CMP_07
## Verify that the AMF node successfully processes a UE CONTEXT SUSPEND REQUEST containing mandatory IEs and answers with UE CONTEXT SUSPEND REQUEST RESPONSE with successfully suspend UE context
##NGAP_TestCases.TC_NGAP_AMF_CMP_08
## Verify that the AMF node successfully processes a UE CONTEXT SUSPEND REQUEST containing mandatory IEs and answers with UE CONTEXT SUSPEND FAILURE with failed suspension
##NGAP_TestCases.TC_NGAP_AMF_CMP_09
## Verify that the AMF node successfully processes a UE CONTEXT RESUME REQUEST containing mandatory IEs and answers with UE CONTEXT RESUME RESPONSE with successfully resume UE context
##NGAP_TestCases.TC_NGAP_AMF_CMP_10
## Verify that the AMF node successfully processes a UE CONTEXT RESUME REQUEST containing mandatory IEs and answers with UE CONTEXT RESUME FAILURE with failing to resume UE context
##NGAP_TestCases.TC_NGAP_AMF_CMP_11

# Verify that the AMF node successfully processes a HANDOVER REQUIRED message contains mandatory IEs and answers with HANDOVER COMMAND with successfully handover.
#NGAP_TestCases.TC_NGAP_AMF_MMP_01
# Verify that the AMF node successfully processes a HANDOVER REQUIRED message contains mandatory IEs and answers with HANDOVER PREPARATION FAILURE because the UE is not longer available.
#NGAP_TestCases.TC_NGAP_AMF_MMP_02
# Verify that the AMF node successfully sends a HANDOVER REQUEST message that contains mandatory IEs to the GNB.
#NGAP_TestCases.TC_NGAP_AMF_MMP_03
# 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.
#NGAP_TestCases.TC_NGAP_AMF_MMP_04
# 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.
#NGAP_TestCases.TC_NGAP_AMF_MMP_05
# Verify that the AMF node successfully processes a HANDOVER CANCEL message that contains mandatory IEs and answers with HANDOVER CANCEL ACKNOWLEDGE to confirm that the ongoing handover was cancelled.
#NGAP_TestCases.TC_NGAP_AMF_MMP_06
# Verify that the AMF node successfully sends a DOWNLINK RAN STATUS TRANSFER message that contains mandatory IEs.
#NGAP_TestCases.TC_NGAP_AMF_MMP_07
# Verify that the NG-RAN node successfully sends a Handover Success message to the AMF.
#NGAP_TestCases.TC_NGAP_AMF_MMP_08
# Verify that the AMF node successfully sends a DOWNLINK RAN EARLY STATUS TRANSFER message that contains mandatory IEs.
#NGAP_TestCases.TC_NGAP_AMF_MMP_09

# Verify that the IUT can send an DOWNLINK NAS TRANSPORT message to carry NAS information over the NG interface.
#NGAP_TestCases.TC_NGAP_AMF_NAS_01

# Verify that the AMF node successfully processes a NG SETUP REQUEST message that contains mandatory IEs and answers with NG SETUP RESPONSE to acknowledge the setup.
#NGAP_TestCases.TC_NGAP_AMF_IMP_01
# Verify that the AMF node successfully processes an NG_SETUP_REQUEST message containing the PLMN identity, TAC, supported slice IEs and Extended RAN Node Name, and responds with an NG_SETUP_RESPONSE message to acknowledge the setup.
#NGAP_TestCases.TC_NGAP_AMF_IMP_01_02
# Verify that the AMF with IAB support successfully processes an NG_SETUP_REQUEST message containing the PLMN identity, TAC and supported slice IEs, and responds with an NG_SETUP_RESPONSE message containing IAB Supported IE to acknowledge the setup."
#NGAP_TestCases.TC_NGAP_AMF_IMP_01_03
# Verify that the AMF node successfully processes a NG SETUP REQUEST message that contains mandatory IEs and answers with NG SETUP RESPONSE to acknowledge the setup.
#NGAP_TestCases.TC_NGAP_AMF_IMP_02
# Verify that the AMF node successfully processes a NG SETUP REQUEST message with optional field UE Retention Information and answers with NG SETUP RESPONSE to acknowledge the setup.
#NGAP_TestCases.TC_NGAP_AMF_IMP_03
# Verify that the AMF node successfully processes a NG SETUP REQUEST message with different optional fields and answers with NG SETUP RESPONSE to acknowledge the setup.
#NGAP_TestCases.TC_NGAP_AMF_IMP_04
# Verify that the AMF node successfully processes a RAN_CONFIGURATION_UPDATE message containing new slice with RAN_CONFIGURATION_UPDATE_ACKNOWLEDGE to acknowledge the update with supported slice at AMF.
#NGAP_TestCases.TC_NGAP_AMF_IMP_05
# 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.
#NGAP_TestCases.TC_NGAP_AMF_IMP_06
# Verify that the IUT can send a AMF CONFIGURATION UPDATE message to the AMF.
#NGAP_TestCases.TC_NGAP_AMF_IMP_07
# 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.
#NGAP_TestCases.TC_NGAP_AMF_IMP_08
# Verify that the AMF node successfully processes a partial NG_RESET message and answers with NG_RESET_ACKNOWLEDGE to acknowledge the partial reset.
#NGAP_TestCases.TC_NGAP_AMF_IMP_08_02
# Verify that the AMF can send a ERROR INDICATION to the GNB when a error occurs.
#NGAP_TestCases.TC_NGAP_AMF_IMP_09
# Verify that the AMF can send a AMF STATUS INDICATION to the GNB when a error occurs.
#NGAP_TestCases.TC_NGAP_AMF_IMP_10
# Verify that the AMF can send a OVERLOAD START to the GNB.
#NGAP_TestCases.TC_NGAP_AMF_IMP_11
# Verify that the AMF can send a OVERLOAD STOP to the GNB.
#NGAP_TestCases.TC_NGAP_AMF_IMP_12

[GROUPS]
# In this section you can specify groups of hosts. These groups can be used inside the
# [COMPONENTS] section to restrict the creation of certain PTCs to a given set of hosts.

[COMPONENTS]
# This section consists of rules restricting the location of created PTCs.

[MAIN_CONTROLLER]
# The options herein control the behavior of MC.
KillTimer := 10.0
LocalAddress := 127.0.0.1
TCPPort := 12000
NumHCs := 1
+213 −0

File added.

Preview size limit exceeded, changes collapsed.

+2 −0
Changes for ttcn/LibNGAP/lib/LibNGAP_Pics.ttcn: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -8,4 +8,6 @@ module LibNGAP_Pics {

    modulepar boolean PICS_USE_OPEN5GS     := false; // If true, the test system starts Open5GS as 5GC for UERANSIMU

    modulepar boolean PICS_NO_RAN_NODE_NAME := false; // If true, the test system does not use RAN node name in NGAP messages

} // End of module LibNGAP_Pics
+2 −0
Changes for ttcn/LibNGAP/lib/asn1/r17/NGAP_Constants.asn: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -588,5 +588,7 @@ maxProtocolIEs INTEGER ::= 65535
	id-HashedUEIdentityIndexValue							ProtocolIE-ID ::= 365
	id-ExtendedMobilityInformation							ProtocolIE-ID ::= 366

	id-UnexpectedEricsson                                   ProtocolIE-ID ::= 43229


END
+5 −2
Changes for ttcn/LibNGAP/lib/asn1/r17/NGAP_PDU_Contents.asn: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -475,7 +475,9 @@ FROM NGAP-Containers
	id-WarningSecurityInfo,
	id-WarningType,
	id-WUS-Assistance-Information,
	id-RIMInformationTransfer
	id-RIMInformationTransfer,

	id-UnexpectedEricsson

FROM NGAP-Constants;

@@ -1868,7 +1870,8 @@ NGSetupRequestIEs NGAP-PROTOCOL-IES ::= {
	{ ID id-DefaultPagingDRX			CRITICALITY ignore	TYPE PagingDRX						PRESENCE mandatory	}|
	{ ID id-UERetentionInformation		CRITICALITY ignore	TYPE UERetentionInformation			PRESENCE optional	}|
	{ ID id-NB-IoT-DefaultPagingDRX		CRITICALITY ignore	TYPE NB-IoT-DefaultPagingDRX		PRESENCE optional	}|
	{ ID id-Extended-RANNodeName		CRITICALITY ignore	TYPE Extended-RANNodeName			PRESENCE optional	},
	{ ID id-Extended-RANNodeName		CRITICALITY ignore	TYPE Extended-RANNodeName			PRESENCE optional	}|
	{ ID id-UnexpectedEricsson			CRITICALITY ignore	TYPE OCTET STRING (SIZE (1..16))	PRESENCE optional	},
	...
}

Loading