Project

General

Profile

Actions

Bug #1968

closed

upon auth resync with osmo_auth_gen_vec_auts(), use MS.SQN + (2 ^ IND)

Added by neels about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
-
Target version:
-
Start date:
03/07/2017
Due date:
% Done:

100%

Spec Reference:

Description

USIMs have an IND value denoting the lower number of bits that are "below" the synchronized SQN significance,
i.e. we need to flip at least the (IND+1)th bit when doing AUTS resync.

For example, receiving an AUTS from a USIM showing MS.SQN = 0, an IND = 5 means
that the next auth vector should be produced for MS.SQN = 2^5 = 32.
So far we are using MS.SQN + 1, which causes the USIM to ask for resync again and again.

Add ind argument to osmo_auth_gen_vec_auts() so that the caller can communicate the USIM's IND setting,
and increment SQN by (1 << IND).


Related issues

Related to OsmoHLR - Feature #1969: add IND for proper UMTS auth resyncClosedneels03/07/2017

Actions
Related to Cellular Network Infrastructure - Support #1965: use sysmoUSIM-SJS1 with 3G OsmoMSCClosedneels03/04/2017

Actions
Actions #1

Updated by neels about 7 years ago

  • Status changed from New to In Progress
Actions #2

Updated by neels about 7 years ago

  • Related to Feature #1969: add IND for proper UMTS auth resync added
Actions #3

Updated by laforge about 7 years ago

  • Related to Support #1965: use sysmoUSIM-SJS1 with 3G OsmoMSC added
Actions #4

Updated by neels about 7 years ago

We need both an ind and an i argument:
ind defines the amount of bits that are not significant for SEQ and make up SQN.
i defines which IND slot/bucket the current SQN consumer wants SQNs for.

|----------SEQ------------|
|------------------------SQN-----------|
                          |<---------->|<-- IND

We also need ind and i in the non-AUTS vector generation code.

Every consumer shall get N vectors as (SEQ + (n << IND) + i),
e.g. for IND 5 bits, the IND value range has 2^5 32 slots,
and a consumer with i 0 gets 32, 64, 96,... where i 1 gets 33, 65, 97...

This is only needed for UMTS auth, but will affect large parts of the public osmo_auth API.
Probably best to add new API to be used for UMTS auth, while the old API remains available.

Actions #5

Updated by neels about 7 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by laforge almost 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)