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
e593da15
Commit
e593da15
authored
Dec 29, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Performance improvements
parent
f229c810
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
20 deletions
+15
-20
src/ue/nas/layer.cpp
src/ue/nas/layer.cpp
+10
-0
src/ue/nas/layer.hpp
src/ue/nas/layer.hpp
+2
-0
src/ue/nas/mm/sap.cpp
src/ue/nas/mm/sap.cpp
+0
-8
src/ue/nts.hpp
src/ue/nts.hpp
+0
-5
src/ue/rrc/cells.cpp
src/ue/rrc/cells.cpp
+1
-3
src/ue/rrc/connection.cpp
src/ue/rrc/connection.cpp
+1
-1
src/ue/rrc/idle.cpp
src/ue/rrc/idle.cpp
+1
-3
No files found.
src/ue/nas/layer.cpp
View file @
e593da15
...
@@ -119,4 +119,14 @@ void NasLayer::handleRadioLinkFailure()
...
@@ -119,4 +119,14 @@ void NasLayer::handleRadioLinkFailure()
m_mm
->
handleRadioLinkFailure
();
m_mm
->
handleRadioLinkFailure
();
}
}
void
NasLayer
::
handleRrcEstablishmentFailure
()
{
m_mm
->
handleRrcEstablishmentFailure
();
}
void
NasLayer
::
handleActiveCellChange
(
const
Tai
&
prevTai
)
{
m_mm
->
handleActiveCellChange
(
prevTai
);
}
}
// namespace nr::ue
}
// namespace nr::ue
\ No newline at end of file
src/ue/nas/layer.hpp
View file @
e593da15
...
@@ -40,6 +40,8 @@ class NasLayer
...
@@ -40,6 +40,8 @@ class NasLayer
void
handlePaging
(
const
std
::
vector
<
GutiMobileIdentity
>
&
tmsiIds
);
void
handlePaging
(
const
std
::
vector
<
GutiMobileIdentity
>
&
tmsiIds
);
void
handleRrcFallbackIndication
();
void
handleRrcFallbackIndication
();
void
handleRadioLinkFailure
();
void
handleRadioLinkFailure
();
void
handleRrcEstablishmentFailure
();
void
handleActiveCellChange
(
const
Tai
&
prevTai
);
};
};
}
// namespace nr::ue
}
// namespace nr::ue
\ No newline at end of file
src/ue/nas/mm/sap.cpp
View file @
e593da15
...
@@ -27,14 +27,6 @@ void NasMm::handleRrcEvent(const NmUeRrcToNas &msg)
...
@@ -27,14 +27,6 @@ void NasMm::handleRrcEvent(const NmUeRrcToNas &msg)
receiveNasMessage
(
*
nasMessage
);
receiveNasMessage
(
*
nasMessage
);
break
;
break
;
}
}
case
NmUeRrcToNas
:
:
ACTIVE_CELL_CHANGED
:
{
handleActiveCellChange
(
msg
.
previousTai
);
break
;
}
case
NmUeRrcToNas
:
:
RRC_ESTABLISHMENT_FAILURE
:
{
handleRrcEstablishmentFailure
();
break
;
}
}
}
}
}
...
...
src/ue/nts.hpp
View file @
e593da15
...
@@ -61,16 +61,11 @@ struct NmUeRrcToNas : NtsMessage
...
@@ -61,16 +61,11 @@ struct NmUeRrcToNas : NtsMessage
enum
PR
enum
PR
{
{
NAS_DELIVERY
,
NAS_DELIVERY
,
RRC_ESTABLISHMENT_FAILURE
,
ACTIVE_CELL_CHANGED
,
}
present
;
}
present
;
// NAS_DELIVERY
// NAS_DELIVERY
OctetString
nasPdu
;
OctetString
nasPdu
;
// ACTIVE_CELL_CHANGED
Tai
previousTai
;
explicit
NmUeRrcToNas
(
PR
present
)
:
NtsMessage
(
NtsMessageType
::
UE_RRC_TO_NAS
),
present
(
present
)
explicit
NmUeRrcToNas
(
PR
present
)
:
NtsMessage
(
NtsMessageType
::
UE_RRC_TO_NAS
),
present
(
present
)
{
{
}
}
...
...
src/ue/rrc/cells.cpp
View file @
e593da15
...
@@ -70,9 +70,7 @@ void UeRrcLayer::notifyCellLost(int cellId)
...
@@ -70,9 +70,7 @@ void UeRrcLayer::notifyCellLost(int cellId)
declareRadioLinkFailure
(
rls
::
ERlfCause
::
SIGNAL_LOST_TO_CONNECTED_CELL
);
declareRadioLinkFailure
(
rls
::
ERlfCause
::
SIGNAL_LOST_TO_CONNECTED_CELL
);
else
else
{
{
auto
w
=
std
::
make_unique
<
NmUeRrcToNas
>
(
NmUeRrcToNas
::
ACTIVE_CELL_CHANGED
);
m_base
->
l3Task
->
nas
().
handleActiveCellChange
(
Tai
{
lastActiveCell
.
plmn
,
lastActiveCell
.
tac
});
w
->
previousTai
=
Tai
{
lastActiveCell
.
plmn
,
lastActiveCell
.
tac
};
m_base
->
l3Task
->
push
(
std
::
move
(
w
));
}
}
}
}
...
...
src/ue/rrc/connection.cpp
View file @
e593da15
...
@@ -154,7 +154,7 @@ void UeRrcLayer::receiveRrcRelease(const ASN_RRC_RRCRelease &msg)
...
@@ -154,7 +154,7 @@ void UeRrcLayer::receiveRrcRelease(const ASN_RRC_RRCRelease &msg)
void
UeRrcLayer
::
handleEstablishmentFailure
()
void
UeRrcLayer
::
handleEstablishmentFailure
()
{
{
m_base
->
l3Task
->
push
(
std
::
make_unique
<
NmUeRrcToNas
>
(
NmUeRrcToNas
::
RRC_ESTABLISHMENT_FAILURE
)
);
m_base
->
l3Task
->
nas
().
handleRrcEstablishmentFailure
(
);
}
}
void
UeRrcLayer
::
performLocalRelease
(
bool
treatBarred
)
void
UeRrcLayer
::
performLocalRelease
(
bool
treatBarred
)
...
...
src/ue/rrc/idle.cpp
View file @
e593da15
...
@@ -104,9 +104,7 @@ void UeRrcLayer::performCellSelection()
...
@@ -104,9 +104,7 @@ void UeRrcLayer::performCellSelection()
w1
->
cellId
=
selectedCell
;
w1
->
cellId
=
selectedCell
;
m_base
->
rlsTask
->
push
(
std
::
move
(
w1
));
m_base
->
rlsTask
->
push
(
std
::
move
(
w1
));
auto
w2
=
std
::
make_unique
<
NmUeRrcToNas
>
(
NmUeRrcToNas
::
ACTIVE_CELL_CHANGED
);
m_base
->
l3Task
->
nas
().
handleActiveCellChange
(
Tai
{
lastCell
.
plmn
,
lastCell
.
tac
});
w2
->
previousTai
=
Tai
{
lastCell
.
plmn
,
lastCell
.
tac
};
m_base
->
l3Task
->
push
(
std
::
move
(
w2
));
}
}
}
}
...
...
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