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
63f45a02
Commit
63f45a02
authored
Dec 29, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Performance improvements
parent
7831c0d8
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
22 deletions
+25
-22
src/ue/nas/layer.cpp
src/ue/nas/layer.cpp
+5
-0
src/ue/nas/layer.hpp
src/ue/nas/layer.hpp
+3
-0
src/ue/nas/mm/radio.cpp
src/ue/nas/mm/radio.cpp
+1
-3
src/ue/nas/mm/sap.cpp
src/ue/nas/mm/sap.cpp
+0
-4
src/ue/nts.hpp
src/ue/nts.hpp
+0
-5
src/ue/rrc/connection.cpp
src/ue/rrc/connection.cpp
+13
-1
src/ue/rrc/layer.hpp
src/ue/rrc/layer.hpp
+3
-0
src/ue/rrc/sap.cpp
src/ue/rrc/sap.cpp
+0
-9
No files found.
src/ue/nas/layer.cpp
View file @
63f45a02
...
@@ -94,4 +94,9 @@ void NasLayer::performCycle()
...
@@ -94,4 +94,9 @@ void NasLayer::performCycle()
m_mm
->
performMmCycle
();
m_mm
->
performMmCycle
();
}
}
void
NasLayer
::
handleRrcConnectionRelease
()
{
m_mm
->
handleRrcConnectionRelease
();
}
}
// namespace nr::ue
}
// namespace nr::ue
\ No newline at end of file
src/ue/nas/layer.hpp
View file @
63f45a02
...
@@ -36,6 +36,9 @@ class NasLayer
...
@@ -36,6 +36,9 @@ class NasLayer
private:
private:
void
performCycle
();
void
performCycle
();
void
handleSapMessage
(
std
::
unique_ptr
<
NtsMessage
>
msg
);
void
handleSapMessage
(
std
::
unique_ptr
<
NtsMessage
>
msg
);
public:
void
handleRrcConnectionRelease
();
};
};
}
// namespace nr::ue
}
// namespace nr::ue
\ No newline at end of file
src/ue/nas/mm/radio.cpp
View file @
63f45a02
...
@@ -272,9 +272,7 @@ void NasMm::localReleaseConnection(bool treatBarred)
...
@@ -272,9 +272,7 @@ void NasMm::localReleaseConnection(bool treatBarred)
if
(
m_cmState
!=
ECmState
::
CM_IDLE
)
if
(
m_cmState
!=
ECmState
::
CM_IDLE
)
m_logger
->
info
(
"Performing local release of NAS connection"
);
m_logger
->
info
(
"Performing local release of NAS connection"
);
auto
w
=
std
::
make_unique
<
NmUeNasToRrc
>
(
NmUeNasToRrc
::
LOCAL_RELEASE_CONNECTION
);
m_base
->
l3Task
->
rrc
().
performLocalRelease
(
treatBarred
);
w
->
treatBarred
=
treatBarred
;
m_base
->
l3Task
->
push
(
std
::
move
(
w
));
}
}
void
NasMm
::
handlePaging
(
const
std
::
vector
<
GutiMobileIdentity
>
&
tmsiIds
)
void
NasMm
::
handlePaging
(
const
std
::
vector
<
GutiMobileIdentity
>
&
tmsiIds
)
...
...
src/ue/nas/mm/sap.cpp
View file @
63f45a02
...
@@ -31,10 +31,6 @@ void NasMm::handleRrcEvent(const NmUeRrcToNas &msg)
...
@@ -31,10 +31,6 @@ void NasMm::handleRrcEvent(const NmUeRrcToNas &msg)
receiveNasMessage
(
*
nasMessage
);
receiveNasMessage
(
*
nasMessage
);
break
;
break
;
}
}
case
NmUeRrcToNas
:
:
RRC_CONNECTION_RELEASE
:
{
handleRrcConnectionRelease
();
break
;
}
case
NmUeRrcToNas
:
:
RADIO_LINK_FAILURE
:
{
case
NmUeRrcToNas
:
:
RADIO_LINK_FAILURE
:
{
handleRadioLinkFailure
();
handleRadioLinkFailure
();
break
;
break
;
...
...
src/ue/nts.hpp
View file @
63f45a02
...
@@ -63,7 +63,6 @@ struct NmUeRrcToNas : NtsMessage
...
@@ -63,7 +63,6 @@ struct NmUeRrcToNas : NtsMessage
NAS_NOTIFY
,
NAS_NOTIFY
,
NAS_DELIVERY
,
NAS_DELIVERY
,
RRC_CONNECTION_SETUP
,
RRC_CONNECTION_SETUP
,
RRC_CONNECTION_RELEASE
,
RRC_ESTABLISHMENT_FAILURE
,
RRC_ESTABLISHMENT_FAILURE
,
RADIO_LINK_FAILURE
,
RADIO_LINK_FAILURE
,
PAGING
,
PAGING
,
...
@@ -89,7 +88,6 @@ struct NmUeNasToRrc : NtsMessage
...
@@ -89,7 +88,6 @@ struct NmUeNasToRrc : NtsMessage
{
{
enum
PR
enum
PR
{
{
LOCAL_RELEASE_CONNECTION
,
UPLINK_NAS_DELIVERY
,
UPLINK_NAS_DELIVERY
,
}
present
;
}
present
;
...
@@ -97,9 +95,6 @@ struct NmUeNasToRrc : NtsMessage
...
@@ -97,9 +95,6 @@ struct NmUeNasToRrc : NtsMessage
uint32_t
pduId
{};
uint32_t
pduId
{};
OctetString
nasPdu
;
OctetString
nasPdu
;
// LOCAL_RELEASE_CONNECTION
bool
treatBarred
{};
explicit
NmUeNasToRrc
(
PR
present
)
:
NtsMessage
(
NtsMessageType
::
UE_NAS_TO_RRC
),
present
(
present
)
explicit
NmUeNasToRrc
(
PR
present
)
:
NtsMessage
(
NtsMessageType
::
UE_NAS_TO_RRC
),
present
(
present
)
{
{
}
}
...
...
src/ue/rrc/connection.cpp
View file @
63f45a02
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
#include <lib/rrc/encode.hpp>
#include <lib/rrc/encode.hpp>
#include <ue/l3/task.hpp>
#include <ue/l3/task.hpp>
#include <ue/nts.hpp>
#include <ue/nts.hpp>
#include <ue/rls/task.hpp>
#include <utils/random.hpp>
#include <utils/random.hpp>
#include <asn/rrc/ASN_RRC_RRCSetup-IEs.h>
#include <asn/rrc/ASN_RRC_RRCSetup-IEs.h>
...
@@ -147,7 +148,8 @@ void UeRrcLayer::receiveRrcRelease(const ASN_RRC_RRCRelease &msg)
...
@@ -147,7 +148,8 @@ void UeRrcLayer::receiveRrcRelease(const ASN_RRC_RRCRelease &msg)
{
{
m_logger
->
debug
(
"RRC Release received"
);
m_logger
->
debug
(
"RRC Release received"
);
m_state
=
ERrcState
::
RRC_IDLE
;
m_state
=
ERrcState
::
RRC_IDLE
;
m_base
->
l3Task
->
push
(
std
::
make_unique
<
NmUeRrcToNas
>
(
NmUeRrcToNas
::
RRC_CONNECTION_RELEASE
));
m_base
->
l3Task
->
nas
().
handleRrcConnectionRelease
();
}
}
void
UeRrcLayer
::
handleEstablishmentFailure
()
void
UeRrcLayer
::
handleEstablishmentFailure
()
...
@@ -155,4 +157,14 @@ void UeRrcLayer::handleEstablishmentFailure()
...
@@ -155,4 +157,14 @@ void UeRrcLayer::handleEstablishmentFailure()
m_base
->
l3Task
->
push
(
std
::
make_unique
<
NmUeRrcToNas
>
(
NmUeRrcToNas
::
RRC_ESTABLISHMENT_FAILURE
));
m_base
->
l3Task
->
push
(
std
::
make_unique
<
NmUeRrcToNas
>
(
NmUeRrcToNas
::
RRC_ESTABLISHMENT_FAILURE
));
}
}
void
UeRrcLayer
::
performLocalRelease
(
bool
treatBarred
)
{
// TODO: handle treat barred
(
void
)
treatBarred
;
switchState
(
ERrcState
::
RRC_IDLE
);
m_base
->
rlsTask
->
push
(
std
::
make_unique
<
NmUeRrcToRls
>
(
NmUeRrcToRls
::
RESET_STI
));
m_base
->
l3Task
->
nas
().
handleRrcConnectionRelease
();
}
}
// namespace nr::ue
}
// namespace nr::ue
src/ue/rrc/layer.hpp
View file @
63f45a02
...
@@ -127,6 +127,9 @@ class UeRrcLayer
...
@@ -127,6 +127,9 @@ class UeRrcLayer
public:
public:
/* Access Control */
/* Access Control */
EUacResult
performUac
(
std
::
bitset
<
16
>
identities
,
int
category
,
int
establishmentCause
);
EUacResult
performUac
(
std
::
bitset
<
16
>
identities
,
int
category
,
int
establishmentCause
);
/* Connection Control */
void
performLocalRelease
(
bool
treatBarred
);
};
};
}
// namespace nr::ue
}
// namespace nr::ue
\ No newline at end of file
src/ue/rrc/sap.cpp
View file @
63f45a02
...
@@ -43,15 +43,6 @@ void UeRrcLayer::handleNasSapMessage(NmUeNasToRrc &msg)
...
@@ -43,15 +43,6 @@ void UeRrcLayer::handleNasSapMessage(NmUeNasToRrc &msg)
deliverUplinkNas
(
msg
.
pduId
,
std
::
move
(
msg
.
nasPdu
));
deliverUplinkNas
(
msg
.
pduId
,
std
::
move
(
msg
.
nasPdu
));
break
;
break
;
}
}
case
NmUeNasToRrc
:
:
LOCAL_RELEASE_CONNECTION
:
{
// TODO: handle treat barred
(
void
)
msg
.
treatBarred
;
switchState
(
ERrcState
::
RRC_IDLE
);
m_base
->
rlsTask
->
push
(
std
::
make_unique
<
NmUeRrcToRls
>
(
NmUeRrcToRls
::
RESET_STI
));
m_base
->
l3Task
->
push
(
std
::
make_unique
<
NmUeRrcToNas
>
(
NmUeRrcToNas
::
RRC_CONNECTION_RELEASE
));
break
;
}
}
}
}
}
...
...
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