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

Validate TC_5GNAS_AMF_AUT_REQ_01/02; Review TAG for UL/DL messages

parent b32d5bd1
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -11,12 +11,6 @@
		},
		{
			"path": "../UERANSIM"
		},
		{
			"path": "../../tmp/tobedeleted/nas-TTF_T048_AMF"
		},
		{
			"path": "../../tmp/tobedeleted/nas-TTF_T048_GNB"
		}
	],
	"settings": {
+6.07 KiB

File added.

No diff preview for this file type.

+5.91 KiB

File added.

No diff preview for this file type.

+812 B (4.37 KiB)

File changed.

No diff preview for this file type.

+50 −27
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.

NG_NAS_Pics.PICS_NGNAS         := true
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 := true
NG_NAS_Pics.PICS_NGNAS         := true

LibNGAP_Pics.PICS_OFFLINE_MODE := false # true to use offline mode with pcap files, false to use online mode with real network functions
LibNGAP_Pics.PICS_USE_OPEN5GS  := false # true to start open5gs, false to not start them

# 5GRegAuthSec_deReg.pcap
LibNGAP_Pixits.PX_AMF_NAME               := "open5gs-amf0"
LibNGAP_Pixits.PX_RAN_UE_NGAP_ID         := 1
LibNGAP_Pixits.PX_AMF_UE_NGAP_ID         := 1
# https://www.binaryhexconverter.com/hex-to-binary-converter
LibNGAP_Pixits.PX_NAS_MCC          := '999'H
LibNGAP_Pixits.PX_NAS_MNC          := '70'H
LibNGAP_Pixits.PX_AMF_REGION_ID          := '00000010'B
LibNGAP_Pixits.PX_AMF_SET_ID             := '0000000100'B
LibNGAP_Pixits.PX_AMF_POINTER            := '000000'B
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               := '000009'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
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
@@ -38,9 +52,13 @@ 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_IMSI_Def                               := '393939373030303030303030303031'H # 999700000000001
Parameters.px_IMEISV_Def                             := '73806121856151f1'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).
@@ -58,8 +76,13 @@ LogEventTypes:= Yes
[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=127.0.0.5,port=38412,debug=1)"

# 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)"
# 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

[DEFINE]
# In this section you can create macro definitions,
@@ -88,9 +111,9 @@ system.NGAP_AMF.params := "NGAP/SCTP_FILE/IP_OFFLINE/ETH(mac_src=8c554ac1eee0,ma

# Verify that the IUT sends an AUTHENTICATION REQUEST message correctly upon receipt of a NAS Registration without an active security context
#NG_NAS_TestCases.TC_5GNAS_AMF_AUT_REQ_01
# Verify that the IUT sends an AUTHENTICATION REJECT message correctly upon receipt of an AUTHENTICATION RESPONSE message indicating a wrong ARP IEI
#NG_NAS_TestCases.TC_5GNAS_AMF_AUT_REQ_02
# Verify that the IUT sends an IDENTITY REQUEST message correctly upon receipt of an AUTHENTICATION FAILURE message indicating a 5GMM cause value #20 - MAC failure
# Verify that the IUT sends an AUTHENTICATION_REJECT message upon receipt of an AUTHENTICATION_RESPONSE containing an invalid authentication response value, when the UE was identified with SUCI in the initial NAS message
NG_NAS_TestCases.TC_5GNAS_AMF_AUT_REQ_02
# Verify that the IUT stops re-sending an AUTHENTICATION_REQUEST message if no AUTHENTICATION_RESPONSE message is received on the fifth expire of timer T3560
#NG_NAS_TestCases.TC_5GNAS_AMF_AUT_REQ_03
# Verify that the IUT sends an IDENTITY REQUEST message correctly upon receipt of an AUTHENTICATION FAILURE message indicating a 5GMM cause value #20 - MAC failure
#NG_NAS_TestCases.TC_5GNAS_AMF_AUT_REQ_04
@@ -118,7 +141,7 @@ system.NGAP_AMF.params := "NGAP/SCTP_FILE/IP_OFFLINE/ETH(mac_src=8c554ac1eee0,ma
#NG_NAS_TestCases.TC_5GNAS_AMF_DRG_REQ_02
#NG_NAS_TestCases.TC_5GNAS_AMF_DRG_REQ_03


# Security function tests, out of scope of the Ats_NG_NAS test suite, but useful to verify the correctness of the test implementation and the security functions used in the test suite. These tests are based on the 5G AKA test vectors given in 3GPP TS 35.208 V16.0.0 (2020-09) Annex A, and on the security analysis of 5G authentication given in the Eurecom publication "Security Analysis of 5G Authentication" (https://eprint.iacr.org/2022/1623.pdf)
#NG_NAS_TestCases.TC_5G_AKA_RIJNDAEL_FUNCTIONS_TEST_01_01
#NG_NAS_TestCases.TC_5G_AKA_RIJNDAEL_FUNCTIONS_TEST_01_02
#NG_NAS_TestCases.TC_5G_AKA_RIJNDAEL_FUNCTIONS_TEST_01_03
@@ -176,7 +199,7 @@ system.NGAP_AMF.params := "NGAP/SCTP_FILE/IP_OFFLINE/ETH(mac_src=8c554ac1eee0,ma
#NG_NAS_TestCases.TC_5G_AKA_CRYPTO_FUNCTIONS_TEST_26_01_03
#NG_NAS_TestCases.TC_5G_AKA_CRYPTO_FUNCTIONS_TEST_26_02_02
#NG_NAS_TestCases.TC_5G_AKA_CRYPTO_FUNCTIONS_TEST_26_03_01
NG_NAS_TestCases.TC_5G_AKA_CRYPTO_FUNCTIONS_TEST_27_01
#NG_NAS_TestCases.TC_5G_AKA_CRYPTO_FUNCTIONS_TEST_27_01


[GROUPS]
Loading