#include "ns3/applications-module.h"#include "ns3/core-module.h"#include "ns3/internet-module.h"#include "ns3/lte-module.h"#include "ns3/mobility-module.h"#include "ns3/network-module.h"#include "ns3/point-to-point-module.h"#include <iomanip>#include <iostream>#include <stdio.h>#include <vector>
Include dependency graph for lena-radio-link-failure.cc:Go to the source code of this file.
Functions | |
| void | EnbRrcTimeout (uint64_t imsi, uint16_t rnti, uint16_t cellId, std::string cause) |
| eNB RRC timeout tracer. | |
| void | NotifyConnectionEstablishedEnb (std::string context, uint64_t imsi, uint16_t cellId, uint16_t rnti) |
| eNB Notify connection established. | |
| void | NotifyConnectionEstablishedUe (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) |
| UE Notify connection established. | |
| void | NotifyConnectionReleaseAtEnodeB (uint64_t imsi, uint16_t cellId, uint16_t rnti) |
| Notification of connection release at eNB. | |
| void | NotifyConnectionTimeoutUe (uint64_t imsi, uint16_t cellId, uint16_t rnti, uint8_t connEstFailCount) |
| UE Connection timeout notification. | |
| void | NotifyRandomAccessErrorUe (uint64_t imsi, uint16_t cellId, uint16_t rnti) |
| UE Random access error notification. | |
| void | NotifyRaResponseTimeoutUe (uint64_t imsi, bool contention, uint8_t preambleTxCounter, uint8_t maxPreambleTxLimit) |
| UE RA response timeout notification. | |
| void | PhySyncDetection (uint16_t n310, uint64_t imsi, uint16_t rnti, uint16_t cellId, std::string type, uint8_t count) |
| PHY sync detection tracer. | |
| void | PrintUePosition (uint64_t imsi) |
| Print the position of a UE with given IMSI. | |
| void | RadioLinkFailure (Time t310, uint64_t imsi, uint16_t cellId, uint16_t rnti) |
| Radio link failure tracer. | |
| void | ReceivePacket (Ptr< const Packet > packet, const Address &) |
| Receive a packet. | |
| void | Throughput (bool firstWrite, Time binSize, std::string fileName) |
| Write the throughput to file. | |
| static const std::string & | ToString (LteUeRrc::State s) |
| void | UeStateTransition (uint64_t imsi, uint16_t cellId, uint16_t rnti, LteUeRrc::State oldState, LteUeRrc::State newState) |
| UE state transition tracer. | |
Variables | |
| uint32_t | ByteCounter = 0 |
| Byte counter. | |
| uint16_t | counterN310FirsteNB = 0 |
| Counter of N310 indications. | |
| static const std::string | g_ueRrcStateName [LteUeRrc::NUM_STATES] |
| Map each of UE RRC states to its string representation. | |
| uint32_t | oldByteCounter = 0 |
| Old Byte counter,. | |
| Time | t310StartTimeFirstEnb = Seconds(0) |
| Time of first N310 indication. | |
$ ./ns3 run "lena-radio-link-failure [Program Options]"
--simTime --numberOfEnbs --n311 --n310 --t310 --interSiteDistance --useIdealRrc --enableCtrlErrorModel --enableDataErrorModel --enableNsLogs Definition in file lena-radio-link-failure.cc.
| void EnbRrcTimeout | ( | uint64_t | imsi, |
| uint16_t | rnti, | ||
| uint16_t | cellId, | ||
| std::string | cause | ||
| ) |
eNB RRC timeout tracer.
| imsi | The IMSI. |
| rnti | The RNTI. |
| cellId | The Cell ID. |
| cause | The reason for timeout. |
Definition at line 171 of file lena-radio-link-failure.cc.
References ns3::Time::As(), ns3::Simulator::Now(), and ns3::Time::S.
Here is the call graph for this function:| void NotifyConnectionEstablishedEnb | ( | std::string | context, |
| uint64_t | imsi, | ||
| uint16_t | cellId, | ||
| uint16_t | rnti | ||
| ) |
eNB Notify connection established.
| context | The context. |
| imsi | The IMSI. |
| cellId | The Cell ID. |
| rnti | The RNTI. |
Definition at line 96 of file lena-radio-link-failure.cc.
References ns3::Time::As(), counterN310FirsteNB, ns3::Simulator::Now(), and ns3::Time::S.
Here is the call graph for this function:| void NotifyConnectionEstablishedUe | ( | std::string | context, |
| uint64_t | imsi, | ||
| uint16_t | cellid, | ||
| uint16_t | rnti | ||
| ) |
UE Notify connection established.
| context | The context. |
| imsi | The IMSI. |
| cellid | The Cell ID. |
| rnti | The RNTI. |
Definition at line 81 of file lena-radio-link-failure.cc.
References ns3::Time::As(), ns3::Simulator::Now(), and ns3::Time::S.
Here is the call graph for this function:| void NotifyConnectionReleaseAtEnodeB | ( | uint64_t | imsi, |
| uint16_t | cellId, | ||
| uint16_t | rnti | ||
| ) |
Notification of connection release at eNB.
| imsi | The IMSI. |
| cellId | The Cell ID. |
| rnti | The RNTI. |
Definition at line 185 of file lena-radio-link-failure.cc.
References ns3::Simulator::Now().
Here is the call graph for this function:| void NotifyConnectionTimeoutUe | ( | uint64_t | imsi, |
| uint16_t | cellId, | ||
| uint16_t | rnti, | ||
| uint8_t | connEstFailCount | ||
| ) |
UE Connection timeout notification.
| imsi | The IMSI. |
| cellId | The Cell ID. |
| rnti | The RNTI. |
| connEstFailCount | Connection failure count. |
Definition at line 271 of file lena-radio-link-failure.cc.
References ns3::Time::As(), ns3::Simulator::Now(), and ns3::Time::S.
Here is the call graph for this function:| void NotifyRandomAccessErrorUe | ( | uint64_t | imsi, |
| uint16_t | cellId, | ||
| uint16_t | rnti | ||
| ) |
UE Random access error notification.
| imsi | The IMSI. |
| cellId | The Cell ID. |
| rnti | The RNTI. |
Definition at line 256 of file lena-radio-link-failure.cc.
References ns3::Time::As(), ns3::Simulator::Now(), and ns3::Time::S.
Here is the call graph for this function:| void NotifyRaResponseTimeoutUe | ( | uint64_t | imsi, |
| bool | contention, | ||
| uint8_t | preambleTxCounter, | ||
| uint8_t | maxPreambleTxLimit | ||
| ) |
UE RA response timeout notification.
| imsi | The IMSI. |
| contention | Contention flag. |
| preambleTxCounter | Preamble Tx counter. |
| maxPreambleTxLimit | Max preamble Ts limit. |
Definition at line 287 of file lena-radio-link-failure.cc.
References ns3::Time::As(), ns3::Simulator::Now(), and ns3::Time::S.
Here is the call graph for this function:| void PhySyncDetection | ( | uint16_t | n310, |
| uint64_t | imsi, | ||
| uint16_t | rnti, | ||
| uint16_t | cellId, | ||
| std::string | type, | ||
| uint8_t | count | ||
| ) |
PHY sync detection tracer.
| n310 | 310 data. |
| imsi | The IMSI. |
| rnti | The RNTI. |
| cellId | The Cell ID. |
| type | The type. |
| count | The count. |
Definition at line 202 of file lena-radio-link-failure.cc.
References ns3::Time::As(), counterN310FirsteNB, ns3::Simulator::Now(), NS_LOG_DEBUG, ns3::Time::S, and t310StartTimeFirstEnb.
Here is the call graph for this function:| void PrintUePosition | ( | uint64_t | imsi | ) |
Print the position of a UE with given IMSI.
| imsi | The IMSI. |
Definition at line 50 of file lena-radio-link-failure.cc.
References ns3::NodeList::Begin(), and ns3::NodeList::End().
Referenced by RadioLinkFailure().
Here is the call graph for this function:
Here is the caller graph for this function:| void RadioLinkFailure | ( | Time | t310, |
| uint64_t | imsi, | ||
| uint16_t | cellId, | ||
| uint16_t | rnti | ||
| ) |
Radio link failure tracer.
| t310 | 310 data. |
| imsi | The IMSI. |
| cellId | The Cell ID. |
| rnti | The RNTI. |
Definition at line 233 of file lena-radio-link-failure.cc.
References ns3::Simulator::Now(), NS_ABORT_MSG_IF, PrintUePosition(), and t310StartTimeFirstEnb.
Here is the call graph for this function:Receive a packet.
| packet | The packet. |
Definition at line 304 of file lena-radio-link-failure.cc.
References ByteCounter.
| void Throughput | ( | bool | firstWrite, |
| Time | binSize, | ||
| std::string | fileName | ||
| ) |
Write the throughput to file.
| firstWrite | True if first time writing. |
| binSize | Bin size. |
| fileName | Output filename. |
Definition at line 317 of file lena-radio-link-failure.cc.
References ns3::Time::As(), ByteCounter, ns3::Time::GetSeconds(), ns3::Simulator::Now(), oldByteCounter, ns3::Time::S, ns3::Simulator::Schedule(), and Throughput().
Referenced by Throughput().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| s | The UE RRC state. |
Definition at line 136 of file lena-radio-link-failure.cc.
References g_ueRrcStateName.
Referenced by UeStateTransition().
Here is the caller graph for this function:| void UeStateTransition | ( | uint64_t | imsi, |
| uint16_t | cellId, | ||
| uint16_t | rnti, | ||
| LteUeRrc::State | oldState, | ||
| LteUeRrc::State | newState | ||
| ) |
UE state transition tracer.
| imsi | The IMSI. |
| cellId | The Cell ID. |
| rnti | The RNTI. |
| oldState | The old state. |
| newState | The new state. |
Definition at line 151 of file lena-radio-link-failure.cc.
References ns3::Time::As(), ns3::Simulator::Now(), ns3::Time::S, and ToString().
Here is the call graph for this function:| uint32_t ByteCounter = 0 |
Byte counter.
Definition at line 41 of file lena-radio-link-failure.cc.
Referenced by ReceivePacket(), and Throughput().
| uint16_t counterN310FirsteNB = 0 |
Counter of N310 indications.
Definition at line 39 of file lena-radio-link-failure.cc.
Referenced by NotifyConnectionEstablishedEnb(), and PhySyncDetection().
|
static |
Map each of UE RRC states to its string representation.
Definition at line 115 of file lena-radio-link-failure.cc.
Referenced by ToString().
| uint32_t oldByteCounter = 0 |
Old Byte counter,.
Definition at line 42 of file lena-radio-link-failure.cc.
Referenced by Throughput().
| Time t310StartTimeFirstEnb = Seconds(0) |
Time of first N310 indication.
Definition at line 40 of file lena-radio-link-failure.cc.
Referenced by PhySyncDetection(), and RadioLinkFailure().