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
16dbe1ad
Commit
16dbe1ad
authored
May 12, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RLS developments
parent
fb77d5bc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
src/gnb/rls/ctl_task.cpp
src/gnb/rls/ctl_task.cpp
+22
-0
src/gnb/rls/ctl_task.hpp
src/gnb/rls/ctl_task.hpp
+2
-0
No files found.
src/gnb/rls/ctl_task.cpp
View file @
16dbe1ad
...
@@ -13,6 +13,12 @@
...
@@ -13,6 +13,12 @@
static
constexpr
const
size_t
MAX_PDU_COUNT
=
4096
;
static
constexpr
const
size_t
MAX_PDU_COUNT
=
4096
;
static
constexpr
const
int
MAX_PDU_TTL
=
3000
;
static
constexpr
const
int
MAX_PDU_TTL
=
3000
;
static
constexpr
const
int
TIMER_ID_ACK_CONTROL
=
1
;
static
constexpr
const
int
TIMER_ID_ACK_SEND
=
2
;
static
constexpr
const
int
TIMER_PERIOD_ACK_CONTROL
=
1500
;
static
constexpr
const
int
TIMER_PERIOD_ACK_SEND
=
2250
;
namespace
nr
::
gnb
namespace
nr
::
gnb
{
{
...
@@ -28,6 +34,8 @@ void RlsControlTask::initialize(RlsUdpTask *udpTask)
...
@@ -28,6 +34,8 @@ void RlsControlTask::initialize(RlsUdpTask *udpTask)
void
RlsControlTask
::
onStart
()
void
RlsControlTask
::
onStart
()
{
{
setTimer
(
TIMER_ID_ACK_CONTROL
,
TIMER_PERIOD_ACK_CONTROL
);
setTimer
(
TIMER_ID_ACK_SEND
,
TIMER_PERIOD_ACK_SEND
);
}
}
void
RlsControlTask
::
onLoop
()
void
RlsControlTask
::
onLoop
()
...
@@ -63,6 +71,20 @@ void RlsControlTask::onLoop()
...
@@ -63,6 +71,20 @@ void RlsControlTask::onLoop()
}
}
break
;
break
;
}
}
case
NtsMessageType
:
:
TIMER_EXPIRED
:
{
auto
*
w
=
dynamic_cast
<
NwTimerExpired
*>
(
msg
);
if
(
w
->
timerId
==
TIMER_ID_ACK_CONTROL
)
{
setTimer
(
TIMER_ID_ACK_CONTROL
,
TIMER_PERIOD_ACK_CONTROL
);
onAckControlTimerExpired
();
}
else
if
(
w
->
timerId
==
TIMER_ID_ACK_SEND
)
{
setTimer
(
TIMER_ID_ACK_SEND
,
TIMER_PERIOD_ACK_SEND
);
onAckSendTimerExpired
();
}
break
;
}
default:
default:
m_logger
->
unhandledNts
(
msg
);
m_logger
->
unhandledNts
(
msg
);
break
;
break
;
...
...
src/gnb/rls/ctl_task.hpp
View file @
16dbe1ad
...
@@ -44,6 +44,8 @@ class RlsControlTask : public NtsTask
...
@@ -44,6 +44,8 @@ class RlsControlTask : public NtsTask
void
handleRlsMessage
(
int
ueId
,
rls
::
RlsMessage
&
msg
);
void
handleRlsMessage
(
int
ueId
,
rls
::
RlsMessage
&
msg
);
void
handleDownlinkRrcDelivery
(
int
ueId
,
uint32_t
pduId
,
rrc
::
RrcChannel
channel
,
OctetString
&&
data
);
void
handleDownlinkRrcDelivery
(
int
ueId
,
uint32_t
pduId
,
rrc
::
RrcChannel
channel
,
OctetString
&&
data
);
void
handleDownlinkDataDelivery
(
int
ueId
,
int
psi
,
OctetString
&&
data
);
void
handleDownlinkDataDelivery
(
int
ueId
,
int
psi
,
OctetString
&&
data
);
void
onAckControlTimerExpired
();
void
onAckSendTimerExpired
();
};
};
}
// namespace nr::gnb
}
// namespace nr::gnb
\ 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