AIDY-F2N / OAI-UERANSIM

Build a Kubernetes (K8s) cluster and configure the OAI 5G core network and UERANSIM GNB + UEs on it
Apache License 2.0
2 stars 0 forks source link

UE PDU Session Establishment Rejected: [MISSING_OR_UNKNOWN_DNN] #1

Open JonJon-Esto opened 1 week ago

JonJon-Esto commented 1 week ago

Environment: Kubernetes + flannel CNI 1 master, 1 worker

I have followed the steps in the README.md but when running the UE registration, I get the following errors:

[2024-11-15 09:48:26.799] [nas] [error] PDU Session Establishment Reject received [MISSING_OR_UNKNOWN_DNN] [2024-11-15 09:48:27.613] [nas] [debug] Sending PDU Session Establishment Request [2024-11-15 09:48:27.613] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig] [2024-11-15 09:48:27.619] [nas] [error] PDU Session Establishment Reject received [MISSING_OR_UNKNOWN_DNN]

OAI pods:

NAME                              READY   STATUS    RESTARTS   AGE   IP             NODE            NOMINATED NODE   READINESS GATES
mysql-54c748ddb6-smm6s            1/1     Running   0          31m   10.244.0.44    team            <none>           <none>
oai-amf-6b4589d7d-nd4sn           1/1     Running   0          30m   10.244.1.173   team-worker01   <none>           <none>
oai-ausf-c99ff4cd4-q8vk5          1/1     Running   0          30m   10.244.0.48    team            <none>           <none>
oai-nrf-7b8c596bb8-ns5h6          1/1     Running   0          31m   10.244.0.45    team            <none>           <none>
oai-smf-6c7ff697d4-tt94g          1/1     Running   0          30m   10.244.0.50    team            <none>           <none>
oai-spgwu-tiny-8475548cd6-4nlfj   1/1     Running   0          30m   10.244.0.49    team            <none>           <none>
oai-udm-dd68b4875-phxsw           1/1     Running   0          30m   10.244.0.47    team            <none>           <none>
oai-udr-c6b59765d-8zk4w           1/1     Running   0          30m   10.244.0.46    team            <none>           <none>

GNB status logs:

./UERANSIM/build/nr-gnb -c UERANSIM/build/OAI-gnb.yaml
UERANSIM v3.2.6
[2024-11-15 09:44:37.689] [sctp] [info] Trying to establish SCTP connection... (10.244.1.173:38412)
[2024-11-15 09:44:37.695] [sctp] [info] SCTP connection established (10.244.1.173:38412)
[2024-11-15 09:44:37.695] [sctp] [debug] SCTP association setup ascId[13]
[2024-11-15 09:44:37.700] [ngap] [debug] Sending NG Setup Request
[2024-11-15 09:44:37.703] [ngap] [debug] NG Setup Response received
[2024-11-15 09:44:37.703] [ngap] [info] NG Setup procedure is successful
[2024-11-15 09:48:26.512] [rrc] [debug] UE[1] new signal detected
[2024-11-15 09:48:26.514] [rrc] [info] RRC Setup for UE[1]
[2024-11-15 09:48:26.514] [ngap] [debug] Initial NAS message received from UE[1]
[2024-11-15 09:48:26.588] [ngap] [debug] Initial Context Setup Request received
[2024-11-15 09:48:31.123] [rls] [debug] UE[1] signal lost

UE status logs:

sudo ./UERANSIM/build/nr-ue -c UERANSIM/build/OAI-ue.yaml -i imsi-001010000000101
UERANSIM v3.2.6
[2024-11-15 10:06:16.114] [nas] [info] UE switches to state [MM-DEREGISTERED/PLMN-SEARCH]
[2024-11-15 10:06:16.114] [rrc] [debug] New signal detected for cell[1], total [1] cells in coverage
[2024-11-15 10:06:16.115] [nas] [info] Selected plmn[001/01]
[2024-11-15 10:06:16.115] [rrc] [info] Selected cell plmn[001/01] tac[1] category[SUITABLE]
[2024-11-15 10:06:16.115] [nas] [info] UE switches to state [MM-DEREGISTERED/PS]
[2024-11-15 10:06:16.115] [nas] [info] UE switches to state [MM-DEREGISTERED/NORMAL-SERVICE]
[2024-11-15 10:06:16.115] [nas] [debug] Initial registration required due to [MM-DEREG-NORMAL-SERVICE]
[2024-11-15 10:06:16.115] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig]
[2024-11-15 10:06:16.115] [nas] [debug] Sending Initial Registration
[2024-11-15 10:06:16.115] [nas] [info] UE switches to state [MM-REGISTER-INITIATED]
[2024-11-15 10:06:16.115] [rrc] [debug] Sending RRC Setup Request
[2024-11-15 10:06:16.116] [rrc] [info] RRC connection established
[2024-11-15 10:06:16.116] [rrc] [info] UE switches to state [RRC-CONNECTED]
[2024-11-15 10:06:16.116] [nas] [info] UE switches to state [CM-CONNECTED]
[2024-11-15 10:06:16.139] [nas] [debug] Authentication Request received
[2024-11-15 10:06:16.139] [nas] [debug] Received SQN [0000000002C0]
[2024-11-15 10:06:16.139] [nas] [debug] SQN-MS [000000000000]
[2024-11-15 10:06:16.159] [nas] [debug] Security Mode Command received
[2024-11-15 10:06:16.159] [nas] [debug] Selected integrity[1] ciphering[0]
[2024-11-15 10:06:16.166] [nas] [debug] Registration accept received
[2024-11-15 10:06:16.166] [nas] [info] UE switches to state [MM-REGISTERED/NORMAL-SERVICE]
[2024-11-15 10:06:16.166] [nas] [debug] Sending Registration Complete
[2024-11-15 10:06:16.166] [nas] [info] Initial Registration is successful
[2024-11-15 10:06:16.166] [nas] [debug] Sending PDU Session Establishment Request
[2024-11-15 10:06:16.167] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig]
[2024-11-15 10:06:16.381] [nas] [error] PDU Session Establishment Reject received [MISSING_OR_UNKNOWN_DNN]
[2024-11-15 10:06:17.214] [nas] [debug] Sending PDU Session Establishment Request
[2024-11-15 10:06:17.214] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig]
[2024-11-15 10:06:17.220] [nas] [error] PDU Session Establishment Reject received [MISSING_OR_UNKNOWN_DNN]

When I checked the oai-g5-basic and oai-smf values.yaml, I got the following:

oai-5g-basic/values.yaml:    dnn0: "oai" # should match with SMF information
oai-5g-basic/values.yaml:    #Upto 4 slices can be added from here to add more you need to add manullay in config.yaml. Please follow the same way of adding slices nssaiSST$,nssaiSd$,dnn$ ($=0,1,2,3)
oai-5g-basic/values.yaml:    dnn1: "ims" # should match with SMF information
oai-5g-basic/values.yaml:    dnnNi0: "oai"
oai-5g-basic/values.yaml:    ipv4dnnRange0: "12.1.1.2 - 12.1.1.254"
oai-5g-basic/values.yaml:    dnnNi1: "ims"
oai-5g-basic/values.yaml:    ipv4dnnRange1: "12.2.1.2 - 12.2.1.254"
oai-smf/values.yaml:  dnnNi0: "oai"
oai-smf/values.yaml:  ipv4dnnRange0: "12.1.1.2 - 12.1.1.254"
oai-smf/values.yaml:  dnnNi1: "ims"
oai-smf/values.yaml:  ipv4dnnRange1: "12.2.1.41 - 12.2.1.254"

I don't see these values ever configured when running the GNB and UE for UERANSIM.

UE command line does not accept any DNN parameter in the config file when inspecting the UE in UERANSIM source code.

Where can we configure DNN?

AITABAmassinissa commented 4 days ago

Hi, don't forget to update the UERANSIM files configuration using the following command (be sure that all pods of the core network are deployed, 180 seconds in average): python3 update_UERANSIM.py Additionally, make sure that both the UERANSIM gNB and the UERANSIM UE are launched on the same machine, but in different terminals.