Error when adding second UE

Hi.

I got the following error as a result of executing the following command.

Is this due to the fact that I have only one UE registered in Web console?
If so, can I solve this problem by registering a second UE with the UE number set to 208930000000002?

ubuntu@ueransim:~/UERANSIM$ sudo build/nr-ue -c config/free5gc-ue.yaml -n 2

[sudo] password for ubuntu:
UERANSIM v3.2.6
[2024-10-25 09:48:39.567] [208930000000002|nas] [info] UE switches to state [MM-DEREGISTERED/PLMN-SEARCH]
[2024-10-25 09:48:39.567] [208930000000001|nas] [info] UE switches to state [MM-DEREGISTERED/PLMN-SEARCH]
[2024-10-25 09:48:39.567] [208930000000002|rrc] [debug] New signal detected for cell[1], total [1] cells in coverage
[2024-10-25 09:48:39.568] [208930000000001|rrc] [debug] New signal detected for cell[1], total [1] cells in coverage
[2024-10-25 09:48:39.568] [208930000000002|nas] [info] Selected plmn[208/93]
[2024-10-25 09:48:39.568] [208930000000002|rrc] [info] Selected cell plmn[208/93] tac[1] category[SUITABLE]
[2024-10-25 09:48:39.568] [208930000000002|nas] [info] UE switches to state [MM-DEREGISTERED/PS]
[2024-10-25 09:48:39.568] [208930000000002|nas] [info] UE switches to state [MM-DEREGISTERED/NORMAL-SERVICE]
[2024-10-25 09:48:39.568] [208930000000002|nas] [debug] Initial registration required due to [MM-DEREG-NORMAL-SERVICE]
[2024-10-25 09:48:39.569] [208930000000002|nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig]
[2024-10-25 09:48:39.569] [208930000000002|nas] [debug] Sending Initial Registration
[2024-10-25 09:48:39.569] [208930000000001|nas] [info] Selected plmn[208/93]
[2024-10-25 09:48:39.569] [208930000000001|rrc] [info] Selected cell plmn[208/93] tac[1] category[SUITABLE]
[2024-10-25 09:48:39.569] [208930000000001|nas] [info] UE switches to state [MM-DEREGISTERED/PS]
[2024-10-25 09:48:39.569] [208930000000001|nas] [info] UE switches to state [MM-DEREGISTERED/NORMAL-SERVICE]
[2024-10-25 09:48:39.569] [208930000000001|nas] [debug] Initial registration required due to [MM-DEREG-NORMAL-SERVICE]
[2024-10-25 09:48:39.569] [208930000000001|nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig]
[2024-10-25 09:48:39.569] [208930000000001|nas] [debug] Sending Initial Registration
[2024-10-25 09:48:39.570] [208930000000002|nas] [info] UE switches to state [MM-REGISTER-INITIATED]
[2024-10-25 09:48:39.570] [208930000000002|rrc] [debug] Sending RRC Setup Request
[2024-10-25 09:48:39.570] [208930000000001|nas] [info] UE switches to state [MM-REGISTER-INITIATED]
[2024-10-25 09:48:39.570] [208930000000001|rrc] [debug] Sending RRC Setup Request
[2024-10-25 09:48:39.571] [208930000000001|rrc] [info] RRC connection established
[2024-10-25 09:48:39.571] [208930000000001|rrc] [info] UE switches to state [RRC-CONNECTED]
[2024-10-25 09:48:39.571] [208930000000001|nas] [info] UE switches to state [CM-CONNECTED]
[2024-10-25 09:48:39.571] [208930000000002|rrc] [info] RRC connection established
[2024-10-25 09:48:39.571] [208930000000002|rrc] [info] UE switches to state [RRC-CONNECTED]
[2024-10-25 09:48:39.571] [208930000000002|nas] [info] UE switches to state [CM-CONNECTED]
[2024-10-25 09:48:39.608] [208930000000001|nas] [debug] Authentication Request received
[2024-10-25 09:48:39.639] [208930000000002|nas] [error] Initial Registration failed [ILLEGAL_UE]
[2024-10-25 09:48:39.639] [208930000000002|nas] [info] UE switches to state [5U3-ROAMING-NOT-ALLOWED]
[2024-10-25 09:48:39.639] [208930000000002|nas] [info] UE switches to state [MM-DEREGISTERED/PS]
[2024-10-25 09:48:39.639] [208930000000002|nas] [info] UE switches to state [MM-DEREGISTERED/NO-SUPI]
[2024-10-25 09:48:39.639] [208930000000002|nas] [warning] Registration Reject ignored since the MM state is not MM_REGISTERED_INITIATED
[2024-10-25 09:48:39.639] [208930000000002|nas] [warning] Sending MM Status with cause [MESSAGE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE]
[2024-10-25 09:48:39.659] [208930000000001|nas] [debug] Security Mode Command received
[2024-10-25 09:48:39.659] [208930000000001|nas] [debug] Selected integrity[2] ciphering[0]
[2024-10-25 09:48:39.759] [208930000000001|nas] [debug] Registration accept received
[2024-10-25 09:48:39.759] [208930000000001|nas] [info] UE switches to state [MM-REGISTERED/NORMAL-SERVICE]
[2024-10-25 09:48:39.759] [208930000000001|nas] [debug] Sending Registration Complete
[2024-10-25 09:48:39.759] [208930000000001|nas] [info] Initial Registration is successful
[2024-10-25 09:48:39.759] [208930000000001|nas] [debug] Sending PDU Session Establishment Request
[2024-10-25 09:48:39.766] [208930000000001|nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig]
[2024-10-25 09:48:39.968] [208930000000001|nas] [debug] Configuration Update Command received
[2024-10-25 09:48:40.077] [208930000000001|nas] [debug] PDU Session Establishment Accept received
[2024-10-25 09:48:40.077] [208930000000001|nas] [info] PDU Session establishment is successful PSI[1]
[2024-10-25 09:48:40.083] [208930000000001|app] [info] Connection setup for PDU session[1] is successful, TUN interface[uesimtun0, 10.60.0.1] is up.

Hi,

The error is indeed due to the reason you mentioned.

I tested it by registering only one UE as 208930000000001 and ran the command as you described. I encountered the same error.

Registering two or more UEs should solve this problem.

P.S. For more on setting UE sequence numbers, you can refer to this link: UERANSIM-USAGE

Hello!
I was able to resolve the error successfully!
Thank you!!

1 Like