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
Hide 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)
ps
->
sessionAmbr
=
{};
ps
->
authorizedQoSFlowDescriptions
=
{};
ps
->
pduAddress
=
{};
ps
->
uplinkPending
=
false
;
/* Make PCO */
nas
::
ProtocolConfigurationOptions
opt
{};
...
...
src/ue/nas/sm/interface.cpp
View file @
4fce9d0b
...
...
@@ -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
src/ue/nas/sm/resource.cpp
View file @
4fce9d0b
...
...
@@ -61,6 +61,9 @@ bool NasSm::anyEmergencySession()
void
NasSm
::
handleUplinkStatusChange
(
int
psi
,
bool
isPending
)
{
m_logger
->
debug
(
"Uplink data status changed PSI[%d] pending[%s]"
,
psi
,
isPending
?
"true"
:
"false"
);
m_pduSessions
[
psi
]
->
uplinkPending
=
isPending
;
// TODO
}
...
...
src/ue/nas/sm/sm.hpp
View file @
4fce9d0b
...
...
@@ -9,6 +9,7 @@
#pragma once
#include <array>
#include <bitset>
#include <nas/nas.hpp>
#include <nas/timer.hpp>
#include <ue/nts.hpp>
...
...
@@ -49,7 +50,9 @@ class NasSm
void
localReleaseSession
(
int
psi
);
void
localReleaseAllSessions
();
bool
anyEmergencySession
();
void
handleUplinkStatusChange
(
int
psi
,
bool
isPending
);
void
handleUplinkStatusChange
(
int
psi
,
bool
isPending
);
bool
anyUplinkDataPending
();
std
::
bitset
<
16
>
getUplinkDataStatus
();
/* Session Release */
void
sendReleaseRequest
(
int
psi
);
...
...
@@ -89,8 +92,8 @@ class NasSm
public:
/* Interface */
void
handleNasEvent
(
const
NwUeNasToNas
&
msg
);
// used by NAS
void
onTimerTick
();
// used by NAS
void
handleNasEvent
(
const
NwUeNasToNas
&
msg
);
// used by NAS
void
onTimerTick
();
// used by NAS
};
}
// namespace nr::ue
\ No newline at end of file
src/ue/types.hpp
View file @
4fce9d0b
...
...
@@ -250,6 +250,7 @@ struct PduSession
const
int
psi
;
EPsState
psState
{};
bool
uplinkPending
{};
nas
::
EPduSessionType
sessionType
{};
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