Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication Failure - ngKSI already in use #307

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ashithacdac
Copy link
Contributor

Issue:
Authentication failure with cause ngKSI already in use

Troubleshoot:
Identified the root cause: the core includes the same ngKSI value from the Registration Request
in the Authentication request

Fix:
Updated the ngKSI value after the 5G AKA procedure

Supporting Data:
Authentication_fail_ngksi_already_in_use.zip

Signed-off-by: AshithaCDAC <ashitha@cdac.in>
@@ -1558,6 +1558,16 @@ func AuthenticationProcedure(ue *context.AmfUe, accessType models.AccessType) (b
ue.AuthenticationCtx = response
ue.ABBA = []uint8{0x00, 0x00} // set ABBA value as described at TS 33.501 Annex A.7.1

if ue.NgKsi.Tsc == models.ScType_NATIVE && ue.NgKsi.Ksi != 7 {
// As per the Specification 24.501 - 5.4.1.3.2 Authentication initiation by the network
if ue.NgKsi.Ksi < 6 { // ksi is range from 0 to 6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ue.NgKsi.Ksi = (ue.NgKsi.Ksi +1) % 7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants