A Discrete-Event Network Simulator
API
LteRrcConnectionEstablishmentErrorTestCase Class Reference

Lte Rrc Connection Establishment Error Test Case. More...

+ Inheritance diagram for LteRrcConnectionEstablishmentErrorTestCase:
+ Collaboration diagram for LteRrcConnectionEstablishmentErrorTestCase:

Public Member Functions

 LteRrcConnectionEstablishmentErrorTestCase (Time jumpAwayTime, std::string description="")
 
- Public Member Functions inherited from LteRrcConnectionEstablishmentTestCase
 LteRrcConnectionEstablishmentTestCase (uint32_t nUes, uint32_t nBearers, uint32_t tConnBase, uint32_t tConnIncrPerUe, uint32_t delayDiscStart, bool errorExpected, bool useIdealRrc, bool admitRrcConnectionRequest, std::string description="")
 
- Public Member Functions inherited from ns3::TestCase
 TestCase (const TestCase &)=delete
 
virtual ~TestCase ()
 Destructor. More...
 
std::string GetName (void) const
 
TestCaseoperator= (const TestCase &)=delete
 

Protected Member Functions

virtual void DoRun (void)
 Implementation to actually run this TestCase. More...
 
- Protected Member Functions inherited from LteRrcConnectionEstablishmentTestCase
void CheckConnected (Ptr< NetDevice > ueDevice, Ptr< NetDevice > enbDevice)
 Check connected function. More...
 
void CheckNotConnected (Ptr< NetDevice > ueDevice, Ptr< NetDevice > enbDevice)
 Check not connected function. More...
 
void Connect (Ptr< NetDevice > ueDevice, Ptr< NetDevice > enbDevice)
 Connect function. More...
 
void ConnectionEstablishedCallback (std::string context, uint64_t imsi, uint16_t cellId, uint16_t rnti)
 Connection established callback function. More...
 
void ConnectionTimeoutCallback (std::string context, uint64_t imsi, uint16_t cellId, uint16_t rnti, uint8_t connEstFailCount)
 Connection timeout callback function. More...
 
virtual void DoRun (void)
 Implementation to actually run this TestCase. More...
 
- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
 Constructor. More...
 
void AddTestCase (TestCase *testCase, TestDuration duration=QUICK)
 Add an individual child TestCase to this test suite. More...
 
TestCaseGetParent () const
 Get the parent of this TestCsse. More...
 
bool IsStatusFailure (void) const
 Check if any tests failed. More...
 
bool IsStatusSuccess (void) const
 Check if all tests passed. More...
 
void SetDataDir (std::string directory)
 Set the data directory where reference trace files can be found. More...
 
void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
 Log the failure of this TestCase. More...
 
bool MustAssertOnFailure (void) const
 Check if this run should assert on failure. More...
 
bool MustContinueOnFailure (void) const
 Check if this run should continue on failure. More...
 
std::string CreateDataDirFilename (std::string filename)
 Construct the full path to a file in the data directory. More...
 
std::string CreateTempDirFilename (std::string filename)
 Construct the full path to a file in a temporary directory. More...
 

Private Member Functions

void JumpAway ()
 Jump away function. More...
 
void JumpBack ()
 Jump back function. More...
 

Private Attributes

Time m_jumpAwayTime
 jump away time More...
 
Ptr< MobilityModelm_ueMobility
 UE mobility model. More...
 

Additional Inherited Members

- Public Types inherited from ns3::TestCase
enum  TestDuration { QUICK = 1 , EXTENSIVE = 2 , TAKES_FOREVER = 3 }
 How long the test takes to execute. More...
 
- Static Protected Member Functions inherited from LteRrcConnectionEstablishmentTestCase
static std::string BuildNameString (uint32_t nUes, uint32_t nBearers, uint32_t tConnBase, uint32_t tConnIncrPerUe, uint32_t delayDiscStart, bool useIdealRrc, bool admitRrcConnectionRequest, std::string description="")
 Build name string function. More...
 
- Protected Attributes inherited from LteRrcConnectionEstablishmentTestCase
bool m_admitRrcConnectionRequest
 If set to false, eNb will not allow UE connections. More...
 
uint32_t m_delayConnEnd
 expected duration to perform connection establishment in ms More...
 
uint32_t m_delayDiscEnd
 expected duration to complete disconnection in ms More...
 
uint32_t m_delayDiscStart
 delay between connection completed and disconnection request in ms More...
 
std::map< uint64_t, bool > m_isConnectionEstablished
 key: IMSI More...
 
Ptr< LteHelperm_lteHelper
 LTE helper. More...
 
uint32_t m_nBearers
 number of bearers to be setup in each connection More...
 
uint32_t m_nUes
 number of UEs in the test More...
 
uint32_t m_tConnBase
 connection time base value for all UEs in ms More...
 
uint32_t m_tConnIncrPerUe
 additional connection time increment for each UE index (0...nUes-1) in ms More...
 
bool m_useIdealRrc
 If set to false, real RRC protocol model will be used. More...
 

Detailed Description

Lte Rrc Connection Establishment Error Test Case.

Definition at line 553 of file test-lte-rrc.cc.

Constructor & Destructor Documentation

◆ LteRrcConnectionEstablishmentErrorTestCase()

LteRrcConnectionEstablishmentErrorTestCase::LteRrcConnectionEstablishmentErrorTestCase ( Time  jumpAwayTime,
std::string  description = "" 
)
Parameters
jumpAwayTimethe time when all the UEs 'teleport' to a pre-defined high-interference position and stay there for 100 ms
descriptionadditional description of the test case

Definition at line 580 of file test-lte-rrc.cc.

References ns3::TestCase::GetName(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

Member Function Documentation

◆ DoRun()

void LteRrcConnectionEstablishmentErrorTestCase::DoRun ( void  )
protectedvirtual

Implementation to actually run this TestCase.

Subclasses should override this method to conduct their tests.

Reimplemented from LteRrcConnectionEstablishmentTestCase.

Definition at line 591 of file test-lte-rrc.cc.

References ns3::LteHelper::AssignStreams(), ns3::NetDeviceContainer::Begin(), LteRrcConnectionEstablishmentTestCase::CheckNotConnected(), LteRrcConnectionEstablishmentTestCase::Connect(), ns3::Config::Connect(), LteRrcConnectionEstablishmentTestCase::ConnectionEstablishedCallback(), LteRrcConnectionEstablishmentTestCase::ConnectionTimeoutCallback(), ns3::NodeContainer::Create(), ns3::NetDeviceContainer::End(), ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::TestCase::GetName(), ns3::Object::GetObject(), ns3::LteHelper::InstallEnbDevice(), ns3::LteHelper::InstallUeDevice(), JumpAway(), JumpBack(), LteRrcConnectionEstablishmentTestCase::m_admitRrcConnectionRequest, LteRrcConnectionEstablishmentTestCase::m_delayConnEnd, LteRrcConnectionEstablishmentTestCase::m_delayDiscEnd, LteRrcConnectionEstablishmentTestCase::m_delayDiscStart, LteRrcConnectionEstablishmentTestCase::m_isConnectionEstablished, m_jumpAwayTime, LteRrcConnectionEstablishmentTestCase::m_lteHelper, LteRrcConnectionEstablishmentTestCase::m_nUes, LteRrcConnectionEstablishmentTestCase::m_tConnBase, LteRrcConnectionEstablishmentTestCase::m_tConnIncrPerUe, m_ueMobility, LteRrcConnectionEstablishmentTestCase::m_useIdealRrc, ns3::MakeCallback(), max, ns3::MilliSeconds(), third::mobility, NS_LOG_FUNCTION, ns3::Config::Reset(), Run(), ns3::ObjectBase::SetAttribute(), and ns3::Config::SetDefault().

+ Here is the call graph for this function:

◆ JumpAway()

void LteRrcConnectionEstablishmentErrorTestCase::JumpAway ( )
private

Jump away function.

Definition at line 716 of file test-lte-rrc.cc.

References m_ueMobility, NS_LOG_FUNCTION, and ns3::MobilityModel::SetPosition().

Referenced by DoRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JumpBack()

void LteRrcConnectionEstablishmentErrorTestCase::JumpBack ( )
private

Jump back function.

Definition at line 725 of file test-lte-rrc.cc.

References m_ueMobility, NS_LOG_FUNCTION, and ns3::MobilityModel::SetPosition().

Referenced by DoRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_jumpAwayTime

Time LteRrcConnectionEstablishmentErrorTestCase::m_jumpAwayTime
private

jump away time

Definition at line 575 of file test-lte-rrc.cc.

Referenced by DoRun().

◆ m_ueMobility

Ptr<MobilityModel> LteRrcConnectionEstablishmentErrorTestCase::m_ueMobility
private

UE mobility model.

Definition at line 576 of file test-lte-rrc.cc.

Referenced by DoRun(), JumpAway(), and JumpBack().


The documentation for this class was generated from the following file: