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
e1e36f76
Commit
e1e36f76
authored
May 12, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RLS developments
parent
279e9150
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
7 deletions
+43
-7
src/gnb/nts.hpp
src/gnb/nts.hpp
+19
-1
src/gnb/rls/ctl_task.cpp
src/gnb/rls/ctl_task.cpp
+24
-6
No files found.
src/gnb/nts.hpp
View file @
e1e36f76
...
...
@@ -95,29 +95,47 @@ struct NwGnbRlsToRls : NtsMessage
SIGNAL_LOST
,
RECEIVE_RLS_MESSAGE
,
DOWNLINK_RRC
,
DOWNLINK_DATA
DOWNLINK_DATA
,
UPLINK_RRC
,
UPLINK_DATA
,
RADIO_LINK_FAILURE
,
TRANSMISSION_FAILURE
,
}
present
;
// SIGNAL_DETECTED
// SIGNAL_LOST
// DOWNLINK_RRC
// DOWNLINK_DATA
// UPLINK_DATA
// UPLINK_RRC
int
ueId
{};
// RECEIVE_RLS_MESSAGE
std
::
unique_ptr
<
rls
::
RlsMessage
>
msg
{};
// DOWNLINK_DATA
// UPLINK_DATA
int
psi
{};
// DOWNLINK_DATA
// DOWNLINK_RRC
// UPLINK_DATA
// UPLINK_RRC
OctetString
data
;
// DOWNLINK_RRC
uint32_t
pduId
{};
// DOWNLINK_RRC
// UPLINK_RRC
rrc
::
RrcChannel
rrcChannel
{};
// RADIO_LINK_FAILURE
rls
::
ERlfCause
rlfCause
{};
// TRANSMISSION_FAILURE
std
::
vector
<
rls
::
PduInfo
>
pduList
;
explicit
NwGnbRlsToRls
(
PR
present
)
:
NtsMessage
(
NtsMessageType
::
GNB_RLS_TO_RLS
),
present
(
present
)
{
}
...
...
src/gnb/rls/ctl_task.cpp
View file @
e1e36f76
...
...
@@ -99,12 +99,16 @@ void RlsControlTask::onQuit()
void
RlsControlTask
::
handleSignalDetected
(
int
ueId
)
{
// TODO: tranparently notify upper layer
auto
*
w
=
new
NwGnbRlsToRls
(
NwGnbRlsToRls
::
SIGNAL_DETECTED
);
w
->
ueId
=
ueId
;
// TODO: push msg
}
void
RlsControlTask
::
handleSignalLost
(
int
ueId
)
{
// TODO: tranparently notify upper layer
auto
*
w
=
new
NwGnbRlsToRls
(
NwGnbRlsToRls
::
SIGNAL_LOST
);
w
->
ueId
=
ueId
;
// TODO: push msg
}
void
RlsControlTask
::
handleRlsMessage
(
int
ueId
,
rls
::
RlsMessage
&
msg
)
...
...
@@ -123,11 +127,19 @@ void RlsControlTask::handleRlsMessage(int ueId, rls::RlsMessage &msg)
if
(
m
.
pduType
==
rls
::
EPduType
::
DATA
)
{
// TODO: send to the upper layer
auto
*
w
=
new
NwGnbRlsToRls
(
NwGnbRlsToRls
::
UPLINK_DATA
);
w
->
ueId
=
ueId
;
w
->
psi
=
static_cast
<
int
>
(
m
.
payload
);
w
->
data
=
std
::
move
(
m
.
pdu
);
// TODO push msg
}
else
if
(
m
.
pduType
==
rls
::
EPduType
::
RRC
)
{
// TODO: send to the upper layer
auto
*
w
=
new
NwGnbRlsToRls
(
NwGnbRlsToRls
::
UPLINK_RRC
);
w
->
ueId
=
ueId
;
w
->
rrcChannel
=
static_cast
<
rrc
::
RrcChannel
>
(
m
.
payload
);
w
->
data
=
std
::
move
(
m
.
pdu
);
// TODO push msg
}
else
{
...
...
@@ -148,7 +160,9 @@ void RlsControlTask::handleDownlinkRrcDelivery(int ueId, uint32_t pduId, rrc::Rr
{
m_pduMap
.
clear
();
// TODO: Send RLF
auto
*
w
=
new
NwGnbRlsToRls
(
NwGnbRlsToRls
::
RADIO_LINK_FAILURE
);
w
->
rlfCause
=
rls
::
ERlfCause
::
PDU_ID_EXISTS
;
// TODO: push msg
return
;
}
...
...
@@ -156,6 +170,8 @@ void RlsControlTask::handleDownlinkRrcDelivery(int ueId, uint32_t pduId, rrc::Rr
{
m_pduMap
.
clear
();
auto
*
w
=
new
NwGnbRlsToRls
(
NwGnbRlsToRls
::
RADIO_LINK_FAILURE
);
w
->
rlfCause
=
rls
::
ERlfCause
::
PDU_ID_FULL
;
// TODO: Send RLF
return
;
}
...
...
@@ -202,7 +218,9 @@ void RlsControlTask::onAckControlTimerExpired()
if
(
!
transmissionFailures
.
empty
())
{
// TODO: send to upper layer
auto
*
w
=
new
NwGnbRlsToRls
(
NwGnbRlsToRls
::
TRANSMISSION_FAILURE
);
w
->
pduList
=
std
::
move
(
transmissionFailures
);
// TODO: push msg
}
}
...
...
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