aligungr / UERANSIM

Open source 5G UE and RAN (gNodeB) implementation.
GNU General Public License v3.0
799 stars 324 forks source link

[error] Initial Registration failed [SEMANTICALLY_INCORRECT_MESSAGE] #550

Open Asit-coll opened 2 years ago

Asit-coll commented 2 years ago

UERANSIM getting the following error

sudo ./build/nr-ue -c config/open5gs-ue.yaml

UERANSIM v3.1.0

[2022-08-06 13:45:10.123] [nas] [debug] NAS layer started

[2022-08-06 13:45:10.123] [rrc] [debug] RRC layer started

[2022-08-06 13:45:10.124] [nas] [info] UE switches to state: MM-DEREGISTERED/PLMN-SEARCH

[2022-08-06 13:45:10.124] [nas] [info] UE connected to gNB

[2022-08-06 13:45:10.124] [nas] [info] UE switches to state: MM-DEREGISTERED/NORMAL-SERVICE

[2022-08-06 13:45:10.124] [nas] [info] UE switches to state: MM-REGISTERED-INITIATED/NA

[2022-08-06 13:45:10.124] [rrc] [debug] Sending RRC Setup Request

[2022-08-06 13:45:10.125] [rrc] [info] RRC connection established

[2022-08-06 13:45:10.125] [nas] [info] UE switches to state: CM-CONNECTED

[2022-08-06 13:45:10.126] _### [nas] [error] Initial Registration failed [SEMANTICALLY_INCORRECT_MESSAG_E]

[2022-08-06 13:45:10.126] [nas] [error] Registration rejected with unhandled MMCause: SEMANTICALLY_INCORRECT_MESSAGE

[2022-08-06 13:45:10.126] [nas] [info] UE switches to state: MM-DEREGISTERED/NA

[2022-08-06 13:45:10.126] [nas] [info] UE switches to state: MM-DEREGISTERED/NORMAL-SERVICE

[2022-08-06 13:45:10.126] [nas] [info] UE switches to state: MM-REGISTERED-INITIATED/NA

Due to this getting error amf.log

08/06 13:45:10.125: [amf] INFO: InitialUEMessage (../src/amf/ngap-handler.c:361)

08/06 13:45:10.125: [amf] INFO: [Added] Number of gNB-UEs is now 1 (../src/amf/c ontext.c:2087)

08/06 13:45:10.125: [amf] INFO: RAN_UE_NGAP_ID[1] AMF_UE_NGAP_ID[1] TAC[1] C ellID[0x10] (../src/amf/ngap-handler.c:500)

08/06 13:45:10.125: [amf] INFO: [suci-0-999-70-0000-0-0-0000000001] Unknown UE b y SUCI (../src/amf/context.c:1409)

08/06 13:45:10.125: [amf] INFO: [Added] Number of AMF-UEs is now 1 (../src/amf/c

pedrovianadias commented 1 year ago

Hello, everything alright ?

I also have encountered similar issue and was not able to register UE with 5GS.

Did you find a solution?

Thanks in advance for the help

vegetablehan commented 1 year ago

Hello,just a suggestion, check to see if your UE configuration is the same as in WebConsole

FatimaaIsmail27 commented 8 months ago

hello, @pedrovianadias I'm facing the same problem. Is your problm solved?

pedrovianadias commented 8 months ago

Hello @FatimaaIsmail27 , how are you ?

From what I remember, ueransim was not in the most up to date version, so I just installed ueransim again in the most up to date version and it worked.

I hope it helped you

FatimaaIsmail27 commented 8 months ago

Hello @pedrovianadias I'm fine thank you for asking, I hope you're having a good day. Did you install open5gs from package installer or did you build it from source?

JimsVica commented 6 months ago

Hello @pedrovianadias I'm fine thank you for asking, I hope you're having a good day. Did you install open5gs from package installer or did you build it from source?

May i know what version of ueransim you are using?

I am using ueransim version 3.2.6 with open5gs 2.7.1.2 and having the following error message from ue connection to gnb. [2024-05-09 13:46:44.299] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig] [2024-05-09 13:46:44.299] [nas] [debug] Sending Initial Registration [2024-05-09 13:46:44.299] [nas] [info] UE switches to state [MM-REGISTER-INITIATED] [2024-05-09 13:46:44.300] [rrc] [debug] Sending RRC Setup Request [2024-05-09 13:46:44.300] [rrc] [info] RRC connection established [2024-05-09 13:46:44.300] [rrc] [info] UE switches to state [RRC-CONNECTED] [2024-05-09 13:46:44.300] [nas] [info] UE switches to state [CM-CONNECTED] [2024-05-09 13:46:44.304] [rrc] [debug] RRC Release received [2024-05-09 13:46:44.304] [nas] [error] Initial Registration failed [SEMANTICALLY_INCORRECT_MESSAGE] [2024-05-09 13:46:44.304] [nas] [debug] Handling Registration Reject abnormal case [2024-05-09 13:46:44.304] [nas] [info] UE switches to state [5U2-NOT-UPDATED] [2024-05-09 13:46:44.304] [nas] [info] UE switches to state [MM-DEREGISTERED/ATTEMPTING-REGISTRATION

Does any one encounter the same error message above?

desimetallica commented 6 months ago

Hello there, I am using ueransim version 3.2.6 with open5gs 2.7.0 (on kubernetes deploy) and having the following error message from ue connection to gnb:

[2024-05-15 12:28:14.801] [nas] [info] UE switches to state [MM-DEREGISTERED/PLMN-SEARCH] [2024-05-15 12:28:14.802] [rrc] [debug] New signal detected for cell[1], total [1] cells in coverage [2024-05-15 12:28:14.803] [nas] [info] Selected plmn[001/01] [2024-05-15 12:28:14.803] [rrc] [info] Selected cell plmn[001/01] tac[40960] category[SUITABLE] [2024-05-15 12:28:14.803] [nas] [info] UE switches to state [MM-DEREGISTERED/PS] [2024-05-15 12:28:14.803] [nas] [info] UE switches to state [MM-DEREGISTERED/NORMAL-SERVICE] [2024-05-15 12:28:14.803] [nas] [debug] Initial registration required due to [MM-DEREG-NORMAL-SERVICE] [2024-05-15 12:28:14.803] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig] [2024-05-15 12:28:14.803] [nas] [debug] Sending Initial Registration [2024-05-15 12:28:14.804] [nas] [info] UE switches to state [MM-REGISTER-INITIATED] [2024-05-15 12:28:14.804] [rrc] [debug] Sending RRC Setup Request [2024-05-15 12:28:14.805] [rrc] [info] RRC connection established [2024-05-15 12:28:14.805] [rrc] [info] UE switches to state [RRC-CONNECTED] [2024-05-15 12:28:14.805] [nas] [info] UE switches to state [CM-CONNECTED] [2024-05-15 12:28:14.824] [rrc] [debug] RRC Release received [2024-05-15 12:28:14.824] [nas] [error] Initial Registration failed [SEMANTICALLY_INCORRECT_MESSAGE] [2024-05-15 12:28:14.824] [nas] [debug] Handling Registration Reject abnormal case [2024-05-15 12:28:14.824] [nas] [info] UE switches to state [5U2-NOT-UPDATED] [2024-05-15 12:28:14.824] [nas] [info] UE switches to state [MM-DEREGISTERED/ATTEMPTING-REGISTRATION] [2024-05-15 12:28:14.824] [nas] [info] UE switches to state [CM-IDLE]

lakshithaHewagamage commented 5 months ago

I am unable to register UE in the core,below error is coming, please help to resolve this

gnb2@GNB1-u20:~/UERANSIM$ ./build/nr-ue -c config/open5gs-ue.yaml UERANSIM v3.2.6 [2024-06-18 11:23:12.007] [nas] [info] UE switches to state [MM-DEREGISTERED/PLMN-SEARCH] [2024-06-18 11:23:12.008] [rrc] [debug] New signal detected for cell[1], total [1] cells in coverage [2024-06-18 11:23:12.008] [nas] [info] Selected plmn[208/93] [2024-06-18 11:23:12.009] [rrc] [info] Selected cell plmn[208/93] tac[1] category[SUITABLE] [2024-06-18 11:23:12.009] [nas] [info] UE switches to state [MM-DEREGISTERED/PS] [2024-06-18 11:23:12.009] [nas] [info] UE switches to state [MM-DEREGISTERED/NORMAL-SERVICE] [2024-06-18 11:23:12.009] [nas] [debug] Initial registration required due to [MM-DEREG-NORMAL-SERVICE] [2024-06-18 11:23:12.024] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig] [2024-06-18 11:23:12.024] [nas] [debug] Sending Initial Registration [2024-06-18 11:23:12.025] [rrc] [debug] Sending RRC Setup Request [2024-06-18 11:23:12.025] [rrc] [info] RRC connection established [2024-06-18 11:23:12.025] [rrc] [info] UE switches to state [RRC-CONNECTED] [2024-06-18 11:23:12.025] [nas] [info] UE switches to state [MM-REGISTER-INITIATED] [2024-06-18 11:23:12.025] [nas] [info] UE switches to state [CM-CONNECTED] [2024-06-18 11:23:12.090] [rrc] [debug] RRC Release received [2024-06-18 11:23:12.090] [nas] [error] Initial Registration failed [SEMANTICALLY_INCORRECT_MESSAGE] [2024-06-18 11:23:12.090] [nas] [debug] Handling Registration Reject abnormal case [2024-06-18 11:23:12.090] [nas] [info] UE switches to state [5U2-NOT-UPDATED] [2024-06-18 11:23:12.090] [nas] [info] UE switches to state [MM-DEREGISTERED/ATTEMPTING-REGISTRATION] [2024-06-18 11:23:12.090] [nas] [info] UE switches to state [CM-IDLE]

pedrovianadias commented 5 months ago

Hello @pedrovianadias I'm fine thank you for asking, I hope you're having a good day. Did you install open5gs from package installer or did you build it from source?

Sorry for the late reply @FatimaaIsmail27, I was busy in another project and couldn't check GitHub

In this case was from package installer, but I also build from source and with the latest version on Open5gs and UERANSIM, it worked.

pedrovianadias commented 5 months ago

Hello @pedrovianadias I'm fine thank you for asking, I hope you're having a good day. Did you install open5gs from package installer or did you build it from source?

May i know what version of ueransim you are using?

I am using ueransim version 3.2.6 with open5gs 2.7.1.2 and having the following error message from ue connection to gnb. [2024-05-09 13:46:44.299] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig] [2024-05-09 13:46:44.299] [nas] [debug] Sending Initial Registration [2024-05-09 13:46:44.299] [nas] [info] UE switches to state [MM-REGISTER-INITIATED] [2024-05-09 13:46:44.300] [rrc] [debug] Sending RRC Setup Request [2024-05-09 13:46:44.300] [rrc] [info] RRC connection established [2024-05-09 13:46:44.300] [rrc] [info] UE switches to state [RRC-CONNECTED] [2024-05-09 13:46:44.300] [nas] [info] UE switches to state [CM-CONNECTED] [2024-05-09 13:46:44.304] [rrc] [debug] RRC Release received [2024-05-09 13:46:44.304] [nas] [error] Initial Registration failed [SEMANTICALLY_INCORRECT_MESSAGE] [2024-05-09 13:46:44.304] [nas] [debug] Handling Registration Reject abnormal case [2024-05-09 13:46:44.304] [nas] [info] UE switches to state [5U2-NOT-UPDATED] [2024-05-09 13:46:44.304] [nas] [info] UE switches to state [MM-DEREGISTERED/ATTEMPTING-REGISTRATION

Does any one encounter the same error message above?

Sorry for the late reply @JimsVica , I was busy in another project and couldn't check GitHub

It was the same version that you are using, 3.2.6, the most recent at the time, I just installed the new version and it worked, following the same instructions.

It could help you but I also tested UERANSIM with Free5GC and they have instructions as well to configure the UERANSIM and it helped me.

https://free5gc.org/guide/5-install-ueransim/#8-testing-ueransim-deregister-via-nr-cli

Even if you are using another core like Open5gs, the configuration of UERANSIM in this page from Free5GC can help you.

Sorry for the poor english.