Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
UERANSIM
Commits
ecc88ce0
Commit
ecc88ce0
authored
Feb 26, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Registration failure abnormal cases handling improvement
parent
78403d60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
src/ue/mm/mm.hpp
src/ue/mm/mm.hpp
+3
-3
src/ue/mm/register.cpp
src/ue/mm/register.cpp
+14
-6
No files found.
src/ue/mm/mm.hpp
View file @
ecc88ce0
...
@@ -37,9 +37,9 @@ class NasMm
...
@@ -37,9 +37,9 @@ class NasMm
EMmState
m_mmState
;
EMmState
m_mmState
;
EMmSubState
m_mmSubState
;
EMmSubState
m_mmSubState
;
//
The very last registration request (or null)
//
Most recent registration request
std
::
unique_ptr
<
nas
::
RegistrationRequest
>
m_lastRegistrationRequest
{};
std
::
unique_ptr
<
nas
::
RegistrationRequest
>
m_lastRegistrationRequest
{};
//
The very last de-registration request (or null)
//
Most recent de-registration request
std
::
unique_ptr
<
nas
::
DeRegistrationRequestUeOriginating
>
m_lastDeregistrationRequest
{};
std
::
unique_ptr
<
nas
::
DeRegistrationRequestUeOriginating
>
m_lastDeregistrationRequest
{};
// Indicates that the last de-registration request is issued due to disable 5G services
// Indicates that the last de-registration request is issued due to disable 5G services
bool
m_lastDeregDueToDisable5g
{};
bool
m_lastDeregDueToDisable5g
{};
...
@@ -102,7 +102,7 @@ class NasMm
...
@@ -102,7 +102,7 @@ class NasMm
void
sendRegistration
(
nas
::
ERegistrationType
registrationType
,
nas
::
EFollowOnRequest
followOn
);
void
sendRegistration
(
nas
::
ERegistrationType
registrationType
,
nas
::
EFollowOnRequest
followOn
);
void
receiveRegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
);
void
receiveRegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
);
void
receiveRegistrationReject
(
const
nas
::
RegistrationReject
&
msg
);
void
receiveRegistrationReject
(
const
nas
::
RegistrationReject
&
msg
);
void
incrementRegistrationAttempt
(
);
void
handleCommonAbnormalInitialRegFailure
(
nas
::
ERegistrationType
regType
,
nas
::
EMmCause
cause
);
/* Authentication */
/* Authentication */
void
receiveAuthenticationRequest
(
const
nas
::
AuthenticationRequest
&
msg
);
void
receiveAuthenticationRequest
(
const
nas
::
AuthenticationRequest
&
msg
);
...
...
src/ue/mm/register.cpp
View file @
ecc88ce0
...
@@ -226,11 +226,19 @@ void NasMm::receiveRegistrationReject(const nas::RegistrationReject &msg)
...
@@ -226,11 +226,19 @@ void NasMm::receiveRegistrationReject(const nas::RegistrationReject &msg)
switchRmState
(
ERmState
::
RM_DEREGISTERED
);
switchRmState
(
ERmState
::
RM_DEREGISTERED
);
auto
handleAbnormalCase
=
[
cause
,
this
]()
{
auto
handleAbnormalCase
=
[
this
,
regType
,
cause
]()
{
m_logger
->
debug
(
"Handling Registration Reject abnormal case"
);
m_logger
->
debug
(
"Handling Registration Reject abnormal case"
);
// todo
m_storage
.
invalidateSim__
();
// If the registration request is not an initial registration request for emergency services, upon reception of
switchMmState
(
EMmState
::
MM_NULL
,
EMmSubState
::
MM_NULL_NA
);
// the 5GMM causes #95, #96, #97, #99 and #111 the UE should set the registration attempt counter to 5.
if
(
regType
==
nas
::
ERegistrationType
::
INITIAL_REGISTRATION
)
{
int
n
=
static_cast
<
int
>
(
cause
);
if
(
n
==
95
||
n
==
96
||
n
==
97
||
n
==
99
||
n
==
111
)
m_regCounter
=
5
;
}
handleCommonAbnormalInitialRegFailure
(
regType
,
cause
);
};
};
if
(
regType
==
nas
::
ERegistrationType
::
INITIAL_REGISTRATION
)
if
(
regType
==
nas
::
ERegistrationType
::
INITIAL_REGISTRATION
)
...
@@ -357,9 +365,9 @@ void NasMm::receiveRegistrationReject(const nas::RegistrationReject &msg)
...
@@ -357,9 +365,9 @@ void NasMm::receiveRegistrationReject(const nas::RegistrationReject &msg)
}
}
}
}
void
NasMm
::
incrementRegistrationAttempt
(
)
void
NasMm
::
handleCommonAbnormalInitialRegFailure
(
nas
::
ERegistrationType
regType
,
nas
::
EMmCause
cause
)
{
{
m_regCounter
++
;
// TODO
}
}
}
// namespace nr::ue
}
// namespace nr::ue
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment