AMF processing the UE from different PLMN
AMF is sending the UE information from different PLMN to AUSF for authentication. You can see that from the log file. Also the common PLMN field in the logs is not correct.
PS: In case you want to re-produce this. You can use this rfsim docker-compose. docker-compose-rfsim.yaml and add below entry in database file.
INSERT INTO `AuthenticationSubscription` (`ueid`, `authenticationMethod`, `encPermanentKey`, `protectionParameterId`, `sequenceNumber`, `authenticationManagementField`, `algorithmId`, `encOpcKey`, `encTopcKey`, `vectorGenerationInHss`, `n5gcAuthMethod`, `rgAuthenticationInd`, `supi`) VALUES
('208960000000032', '5G_AKA', '0C0A34601D4F07677303652C0462535B', '0C0A34601D4F07677303652C0462535B', '{\"sqn\": \"000000000020\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '8000', 'milenage', '63bfa50ee6523365ff14c1f45f88737d', NULL, NULL, NULL, NULL, '208960000000032');
Second issue (Similar): Sometimes the UEs are also shown as connected in the logs though they aren't connected. This is more of a logging issue (the snippet is from cluster deployment of AMF so it isn't present in the logs)
[2023-05-25 12:21:23.638] [amf_app] [info] |----------------------------------------------------UEs' information--------------------------------------------|
[2023-05-25 12:21:23.638] [amf_app] [info] | Index | 5GMM state | IMSI | GUTI | RAN UE NGAP ID | AMF UE ID | PLMN |Cell ID|
[2023-05-25 12:21:23.638] [amf_app] [info] | 1| 5GMM-DEREGISTERED| 001010000000101| | 0| 476| 001, 01 | 0|
[2023-05-25 12:21:23.638] [amf_app] [info] | 2| 5GMM-DEREGISTERED| 001010000000105| | 1| 491| 001, 01 |14680064|
[2023-05-25 12:21:23.638] [amf_app] [info] | 3| 5GMM-DEREGISTERED| 001010000000106| | 0| 490| 001, 01 |14680064|
[2023-05-25 12:21:23.638] [amf_app] [info] | 4| 5GMM-REG-INITIATED| 208980000000001| | 0| 426| 001, 01 | 0|
[2023-05-25 12:21:23.638] [amf_app] [info] | 5| 5GMM-REGISTERED| 208990100001124| | 0| 492| 001, 01 |14680064|
Edited by Sagar Arora