free5gc responded with “Registration reject (Protocol error, unspecified)” for “UplinkNASTransport, Security mode complete”.
Is this behavior correct?
UE has already context that is “070504” for amfid.
free5gc amfid is “071404”.
If amfid is the same for free5gc and UE’s context, the procedure will be successful.
UERANSIM is not used.
UE is Oneplus8.
I can’t answer the vendor of the RAN.(confidentiality)
Other CORE (not free5gc)
CORE simulator of RAN responded “InitialContextSetupRequest, Registration accept” for “UplinkNASTransport, Security mode complete”.
The context(amfid) of the UE is update when the UE/RAN receives “InitialContextSetupRequest, Registration accept”.
free5gc was unable to retrieve 5GMM data from the NAS-PDU.
free5gc returned a registration reject (Protocol error, unspecified).
(I think the cause is that I was not prepared for old amf.)
I’m not sure I get your point, please tell me if I misunderstand.
You mean UE has already recorded the old amfid as “070504”. Now UE wants to register to another AMF which is “071404”. And when doing so, the new AMF sends registration reject message due to error amfid in security mode complete.
Thanks for the question.
Your point of view is correct.
It seems that once this UE receives “Registration reject”, it does not attach “Registration request” when sending “Security mode complete”.
I cannot determine if this is a problem specific to this UE or common behavior for all UEs. (I only have one UE…).
I confirmed that when AMF sends the “DownlinkNASTransport, Security mode command”, it is sending the “Retransmission of the initial NAS message requested” (to send a REGISTRATION REQUEST to the UE) and that the “Registration request” is sent to the UE. to have them) is 1.
So I was expecting the UE to send a “REGISTRATION REQUEST” with “UplinkNASTransport, Security mode complete”. (actually it did not).
“Retransmission of the initial NAS message requested” is optional.
After this investigation I verified with two AMFs.