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
4fce9d0b
Commit
4fce9d0b
authored
Apr 04, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uplink data status handling in SM
parent
342fbf2f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
3 deletions
+29
-3
src/ue/nas/sm/establishment.cpp
src/ue/nas/sm/establishment.cpp
+1
-0
src/ue/nas/sm/interface.cpp
src/ue/nas/sm/interface.cpp
+18
-0
src/ue/nas/sm/resource.cpp
src/ue/nas/sm/resource.cpp
+3
-0
src/ue/nas/sm/sm.hpp
src/ue/nas/sm/sm.hpp
+6
-3
src/ue/types.hpp
src/ue/types.hpp
+1
-0
No files found.
src/ue/nas/sm/establishment.cpp
View file @
4fce9d0b
...
@@ -89,6 +89,7 @@ void NasSm::sendEstablishmentRequest(const SessionConfig &config)
...
@@ -89,6 +89,7 @@ void NasSm::sendEstablishmentRequest(const SessionConfig &config)
ps
->
sessionAmbr
=
{};
ps
->
sessionAmbr
=
{};
ps
->
authorizedQoSFlowDescriptions
=
{};
ps
->
authorizedQoSFlowDescriptions
=
{};
ps
->
pduAddress
=
{};
ps
->
pduAddress
=
{};
ps
->
uplinkPending
=
false
;
/* Make PCO */
/* Make PCO */
nas
::
ProtocolConfigurationOptions
opt
{};
nas
::
ProtocolConfigurationOptions
opt
{};
...
...
src/ue/nas/sm/interface.cpp
View file @
4fce9d0b
...
@@ -39,4 +39,22 @@ void NasSm::onTimerTick()
...
@@ -39,4 +39,22 @@ void NasSm::onTimerTick()
}
}
}
}
bool
NasSm
::
anyUplinkDataPending
()
{
auto
status
=
getUplinkDataStatus
();
for
(
int
i
=
1
;
i
<
16
;
i
++
)
if
(
status
[
i
])
return
true
;
return
false
;
}
std
::
bitset
<
16
>
NasSm
::
getUplinkDataStatus
()
{
std
::
bitset
<
16
>
res
{};
for
(
int
i
=
1
;
i
<
16
;
i
++
)
if
(
m_pduSessions
[
i
]
->
psState
==
EPsState
::
ACTIVE
&&
m_pduSessions
[
i
]
->
uplinkPending
)
res
[
i
]
=
true
;
return
res
;
}
}
// namespace nr::ue
}
// namespace nr::ue
src/ue/nas/sm/resource.cpp
View file @
4fce9d0b
...
@@ -61,6 +61,9 @@ bool NasSm::anyEmergencySession()
...
@@ -61,6 +61,9 @@ bool NasSm::anyEmergencySession()
void
NasSm
::
handleUplinkStatusChange
(
int
psi
,
bool
isPending
)
void
NasSm
::
handleUplinkStatusChange
(
int
psi
,
bool
isPending
)
{
{
m_logger
->
debug
(
"Uplink data status changed PSI[%d] pending[%s]"
,
psi
,
isPending
?
"true"
:
"false"
);
m_logger
->
debug
(
"Uplink data status changed PSI[%d] pending[%s]"
,
psi
,
isPending
?
"true"
:
"false"
);
m_pduSessions
[
psi
]
->
uplinkPending
=
isPending
;
// TODO
// TODO
}
}
...
...
src/ue/nas/sm/sm.hpp
View file @
4fce9d0b
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
#pragma once
#pragma once
#include <array>
#include <array>
#include <bitset>
#include <nas/nas.hpp>
#include <nas/nas.hpp>
#include <nas/timer.hpp>
#include <nas/timer.hpp>
#include <ue/nts.hpp>
#include <ue/nts.hpp>
...
@@ -50,6 +51,8 @@ class NasSm
...
@@ -50,6 +51,8 @@ class NasSm
void
localReleaseAllSessions
();
void
localReleaseAllSessions
();
bool
anyEmergencySession
();
bool
anyEmergencySession
();
void
handleUplinkStatusChange
(
int
psi
,
bool
isPending
);
void
handleUplinkStatusChange
(
int
psi
,
bool
isPending
);
bool
anyUplinkDataPending
();
std
::
bitset
<
16
>
getUplinkDataStatus
();
/* Session Release */
/* Session Release */
void
sendReleaseRequest
(
int
psi
);
void
sendReleaseRequest
(
int
psi
);
...
...
src/ue/types.hpp
View file @
4fce9d0b
...
@@ -250,6 +250,7 @@ struct PduSession
...
@@ -250,6 +250,7 @@ struct PduSession
const
int
psi
;
const
int
psi
;
EPsState
psState
{};
EPsState
psState
{};
bool
uplinkPending
{};
nas
::
EPduSessionType
sessionType
{};
nas
::
EPduSessionType
sessionType
{};
std
::
optional
<
std
::
string
>
apn
{};
std
::
optional
<
std
::
string
>
apn
{};
...
...
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