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
d662ad45
Commit
d662ad45
authored
Dec 29, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Performance improvements
parent
63f45a02
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
48 deletions
+11
-48
src/ue/l3/task.cpp
src/ue/l3/task.cpp
+0
-4
src/ue/nas/layer.hpp
src/ue/nas/layer.hpp
+1
-4
src/ue/nas/mm/messaging.cpp
src/ue/nas/mm/messaging.cpp
+1
-5
src/ue/nts.hpp
src/ue/nts.hpp
+0
-16
src/ue/rrc/layer.hpp
src/ue/rrc/layer.hpp
+9
-7
src/ue/rrc/sap.cpp
src/ue/rrc/sap.cpp
+0
-11
src/utils/nts.hpp
src/utils/nts.hpp
+0
-1
No files found.
src/ue/l3/task.cpp
View file @
d662ad45
...
...
@@ -63,10 +63,6 @@ void UeL3Task::onLoop()
m_nas
->
performCycle
();
}
}
else
if
(
msg
->
msgType
==
NtsMessageType
::
UE_NAS_TO_RRC
)
{
m_rrc
->
handleNasSapMessage
(
dynamic_cast
<
NmUeNasToRrc
&>
(
*
msg
));
}
else
if
(
msg
->
msgType
==
NtsMessageType
::
UE_RLS_TO_RRC
)
{
m_rrc
->
handleRlsSapMessage
(
dynamic_cast
<
NmUeRlsToRrc
&>
(
*
msg
));
...
...
src/ue/nas/layer.hpp
View file @
d662ad45
...
...
@@ -23,7 +23,6 @@ class NasLayer
Usim
*
m_usim
;
friend
class
UeCmdHandler
;
friend
class
UeL3Task
;
public:
explicit
NasLayer
(
TaskBase
*
base
);
...
...
@@ -33,11 +32,9 @@ class NasLayer
void
onStart
();
void
onQuit
();
p
rivate
:
p
ublic
:
void
performCycle
();
void
handleSapMessage
(
std
::
unique_ptr
<
NtsMessage
>
msg
);
public:
void
handleRrcConnectionRelease
();
};
...
...
src/ue/nas/mm/messaging.cpp
View file @
d662ad45
...
...
@@ -182,11 +182,7 @@ EProcRc NasMm::sendNasMessage(const nas::PlainMmMessage &msg)
}
}
auto
m
=
std
::
make_unique
<
NmUeNasToRrc
>
(
NmUeNasToRrc
::
UPLINK_NAS_DELIVERY
);
m
->
pduId
=
0
;
m
->
nasPdu
=
std
::
move
(
pdu
);
m_base
->
l3Task
->
push
(
std
::
move
(
m
));
m_base
->
l3Task
->
rrc
().
deliverUplinkNas
(
0
,
std
::
move
(
pdu
));
return
EProcRc
::
OK
;
}
...
...
src/ue/nts.hpp
View file @
d662ad45
...
...
@@ -84,22 +84,6 @@ struct NmUeRrcToNas : NtsMessage
}
};
struct
NmUeNasToRrc
:
NtsMessage
{
enum
PR
{
UPLINK_NAS_DELIVERY
,
}
present
;
// UPLINK_NAS_DELIVERY
uint32_t
pduId
{};
OctetString
nasPdu
;
explicit
NmUeNasToRrc
(
PR
present
)
:
NtsMessage
(
NtsMessageType
::
UE_NAS_TO_RRC
),
present
(
present
)
{
}
};
struct
NmUeRrcToRls
:
NtsMessage
{
enum
PR
...
...
src/ue/rrc/layer.hpp
View file @
d662ad45
...
...
@@ -57,7 +57,6 @@ class UeRrcLayer
OctetString
m_initialNasPdu
{};
friend
class
UeCmdHandler
;
friend
class
UeL3Task
;
public:
explicit
UeRrcLayer
(
TaskBase
*
base
);
...
...
@@ -82,13 +81,8 @@ class UeRrcLayer
void
receiveRrcMessage
(
ASN_RRC_DL_DCCH_Message
*
msg
);
void
receiveRrcMessage
(
ASN_RRC_PCCH_Message
*
msg
);
/* Service Access Point */
void
handleRlsSapMessage
(
NmUeRlsToRrc
&
msg
);
void
handleNasSapMessage
(
NmUeNasToRrc
&
msg
);
/* State Management */
void
triggerCycle
();
void
performCycle
();
void
switchState
(
ERrcState
state
);
void
onSwitchState
(
ERrcState
oldState
,
ERrcState
newState
);
...
...
@@ -110,7 +104,6 @@ class UeRrcLayer
void
receiveSib1
(
int
cellId
,
const
ASN_RRC_SIB1
&
msg
);
/* NAS Transport */
void
deliverUplinkNas
(
uint32_t
pduId
,
OctetString
&&
nasPdu
);
void
receiveDownlinkInformationTransfer
(
const
ASN_RRC_DLInformationTransfer
&
msg
);
/* Connection Control */
...
...
@@ -130,6 +123,15 @@ class UeRrcLayer
/* Connection Control */
void
performLocalRelease
(
bool
treatBarred
);
/* NAS Transport */
void
deliverUplinkNas
(
uint32_t
pduId
,
OctetString
&&
nasPdu
);
/* Service Access Point */
void
handleRlsSapMessage
(
NmUeRlsToRrc
&
msg
);
/* State Management */
void
performCycle
();
};
}
// namespace nr::ue
\ No newline at end of file
src/ue/rrc/sap.cpp
View file @
d662ad45
...
...
@@ -35,15 +35,4 @@ void UeRrcLayer::handleRlsSapMessage(NmUeRlsToRrc &msg)
}
}
void
UeRrcLayer
::
handleNasSapMessage
(
NmUeNasToRrc
&
msg
)
{
switch
(
msg
.
present
)
{
case
NmUeNasToRrc
:
:
UPLINK_NAS_DELIVERY
:
{
deliverUplinkNas
(
msg
.
pduId
,
std
::
move
(
msg
.
nasPdu
));
break
;
}
}
}
}
// namespace nr::ue
\ No newline at end of file
src/utils/nts.hpp
View file @
d662ad45
...
...
@@ -49,7 +49,6 @@ enum class NtsMessageType
UE_APP_TO_TUN
,
UE_TUN_TO_APP
,
UE_RRC_TO_NAS
,
UE_NAS_TO_RRC
,
UE_RRC_TO_RLS
,
UE_RLS_TO_RRC
,
UE_RLS_TO_NAS
,
...
...
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