22 #include "ns3/string.h" 
   23 #include "ns3/double.h" 
   25 #include "ns3/boolean.h" 
   28 #include "ns3/packet.h" 
   30 #include "ns3/lte-rrc-header.h" 
   31 #include "ns3/lte-rrc-sap.h" 
   53     uint32_t psize = pkt->
GetSize ();
 
   54     uint8_t buffer[psize];
 
   55     char sbuffer[psize * 3];
 
   57     for (uint32_t i = 0; i < psize; i++)
 
   59         sprintf (&sbuffer[i * 3],
"%02x ",buffer[i]);
 
   61     return std::string (sbuffer);
 
   71     uint32_t psize = pkt->
GetSize ();
 
   72     uint8_t buffer[psize];
 
   73     std::ostringstream oss (std::ostringstream::out);
 
   75     for (uint32_t i = 0; i < psize; i++)
 
   77         oss << (std::bitset<8> (buffer[i]));
 
   79     return std::string (oss.str () + 
"\n");
 
   88     NS_LOG_DEBUG (
"---- SERIALIZED PACKET CONTENTS (HEX): -------");
 
  101     NS_LOG_DEBUG (
"--------- " << s.data () << 
" INFO: -------");
 
  102     std::ostringstream oss (std::ostringstream::out);
 
  124   virtual void DoRun (
void) = 0;
 
  153   srbToAddMod.srbIdentity = 2;
 
  160   srbToAddMod.logicalChannelConfig = logicalChannelConfig;
 
  169   rlcConfig.
choice = LteRrcSap::RlcConfig::UM_BI_DIRECTIONAL;
 
  204   std::list<LteRrcSap::SrbToAddMod> srcSrbToAddModList = rrcd1.
srbToAddModList;
 
  205   std::list<LteRrcSap::SrbToAddMod>::iterator it1 = srcSrbToAddModList.begin ();
 
  206   std::list<LteRrcSap::SrbToAddMod> dstSrbToAddModList = rrcd2.
srbToAddModList;
 
  207   std::list<LteRrcSap::SrbToAddMod>::iterator it2 = dstSrbToAddModList.begin ();
 
  209   for (; it1 != srcSrbToAddModList.end (); it1++, it2++)
 
  212       NS_TEST_ASSERT_MSG_EQ (it1->logicalChannelConfig.priority,it2->logicalChannelConfig.priority, 
"logicalChannelConfig.priority");
 
  213       NS_TEST_ASSERT_MSG_EQ (it1->logicalChannelConfig.prioritizedBitRateKbps,it2->logicalChannelConfig.prioritizedBitRateKbps, 
"logicalChannelConfig.prioritizedBitRateKbps");
 
  214       NS_TEST_ASSERT_MSG_EQ (it1->logicalChannelConfig.bucketSizeDurationMs,it2->logicalChannelConfig.bucketSizeDurationMs, 
"logicalChannelConfig.bucketSizeDurationMs");
 
  215       NS_TEST_ASSERT_MSG_EQ (it1->logicalChannelConfig.logicalChannelGroup,it2->logicalChannelConfig.logicalChannelGroup, 
"logicalChannelConfig.logicalChannelGroup");
 
  220   std::list<LteRrcSap::DrbToAddMod> srcDrbToAddModList = rrcd1.
drbToAddModList;
 
  221   std::list<LteRrcSap::DrbToAddMod>::iterator it3 = srcDrbToAddModList.begin ();
 
  222   std::list<LteRrcSap::DrbToAddMod> dstDrbToAddModList = rrcd2.
drbToAddModList;
 
  223   std::list<LteRrcSap::DrbToAddMod>::iterator it4 = dstDrbToAddModList.begin ();
 
  225   for (; it3 != srcDrbToAddModList.end (); it3++, it4++)
 
  230       NS_TEST_ASSERT_MSG_EQ (it3->logicalChannelIdentity,it4->logicalChannelIdentity, 
"logicalChannelIdentity");
 
  233       NS_TEST_ASSERT_MSG_EQ (it3->logicalChannelConfig.priority,it4->logicalChannelConfig.priority, 
"logicalChannelConfig.priority");
 
  234       NS_TEST_ASSERT_MSG_EQ (it3->logicalChannelConfig.prioritizedBitRateKbps,it4->logicalChannelConfig.prioritizedBitRateKbps, 
"logicalChannelConfig.prioritizedBitRateKbps");
 
  235       NS_TEST_ASSERT_MSG_EQ (it3->logicalChannelConfig.bucketSizeDurationMs,it4->logicalChannelConfig.bucketSizeDurationMs, 
"logicalChannelConfig.bucketSizeDurationMs");
 
  236       NS_TEST_ASSERT_MSG_EQ (it3->logicalChannelConfig.logicalChannelGroup,it4->logicalChannelConfig.logicalChannelGroup, 
"logicalChannelConfig.logicalChannelGroup");
 
  243   std::list<uint8_t>::iterator it5 = srcDrbToReleaseList.begin ();
 
  244   std::list<uint8_t>::iterator it6 = dstDrbToReleaseList.begin ();
 
  246   for (; it5 != srcDrbToReleaseList.end (); it5++, it6++)
 
  257                              "haveSoundingRsUlConfigDedicated");
 
  261                              "soundingRsUlConfigDedicated.type");
 
  264                              "soundingRsUlConfigDedicated.srsBandwidth");
 
  268                              "soundingRsUlConfigDedicated.srsConfigIndex");
 
  272                              "haveAntennaInfoDedicated");
 
  278                                  "antennaInfo.transmissionMode");
 
  283                              "havePdschConfigDedicated");
 
  289                                  "pdschConfigDedicated.pa");
 
  304   virtual void DoRun (
void);
 
  314   packet = Create<Packet> ();
 
  315   NS_LOG_DEBUG (
"============= RrcConnectionRequestTestCase ===========");
 
  324   TestUtils::LogPacketInfo<RrcConnectionRequestHeader> (source,
"SOURCE");
 
  337   TestUtils::LogPacketInfo<RrcConnectionRequestHeader> (destination,
"DESTINATION");
 
  356   virtual void DoRun (
void);
 
  366   packet = Create<Packet> ();
 
  367   NS_LOG_DEBUG (
"============= RrcConnectionSetupTestCase ===========");
 
  377   TestUtils::LogPacketInfo<RrcConnectionSetupHeader> (source,
"SOURCE");
 
  390   TestUtils::LogPacketInfo<RrcConnectionSetupHeader> (destination,
"DESTINATION");
 
  393   NS_TEST_ASSERT_MSG_EQ (source.GetRrcTransactionIdentifier (),destination.GetRrcTransactionIdentifier (), 
"RrcTransactionIdentifier");
 
  410   virtual void DoRun (
void);
 
  420   packet = Create<Packet> ();
 
  421   NS_LOG_DEBUG (
"============= RrcConnectionSetupCompleteTestCase ===========");
 
  430   TestUtils::LogPacketInfo<RrcConnectionSetupCompleteHeader> (source,
"SOURCE");
 
  443   TestUtils::LogPacketInfo<RrcConnectionSetupCompleteHeader> (destination,
"DESTINATION");
 
  446   NS_TEST_ASSERT_MSG_EQ (source.GetRrcTransactionIdentifier (),destination.GetRrcTransactionIdentifier (), 
"RrcTransactionIdentifier");
 
  461   virtual void DoRun (
void);
 
  472   packet = Create<Packet> ();
 
  473   NS_LOG_DEBUG (
"============= RrcConnectionReconfigurationCompleteTestCase ===========");
 
  482   TestUtils::LogPacketInfo<RrcConnectionReconfigurationCompleteHeader> (source,
"SOURCE");
 
  495   TestUtils::LogPacketInfo<RrcConnectionReconfigurationCompleteHeader> (destination,
"DESTINATION");
 
  498   NS_TEST_ASSERT_MSG_EQ (source.GetRrcTransactionIdentifier (),destination.GetRrcTransactionIdentifier (), 
"RrcTransactionIdentifier");
 
  513   virtual void DoRun (
void);
 
  524   packet = Create<Packet> ();
 
  525   NS_LOG_DEBUG (
"============= RrcConnectionReconfigurationTestCase ===========");
 
  611   measIdToAddMod.
measId = 7;
 
  614   measIdToAddMod2.
measId = 4;
 
  645   TestUtils::LogPacketInfo<RrcConnectionReconfigurationHeader> (source,
"SOURCE");
 
  658   TestUtils::LogPacketInfo<RrcConnectionReconfigurationHeader> (destination,
"DESTINATION");
 
  661   NS_TEST_ASSERT_MSG_EQ (source.GetRrcTransactionIdentifier (),destination.GetRrcTransactionIdentifier (), 
"RrcTransactionIdentifier");
 
  662   NS_TEST_ASSERT_MSG_EQ (source.GetHaveMeasConfig (),destination.GetHaveMeasConfig (), 
"GetHaveMeasConfig");
 
  663   NS_TEST_ASSERT_MSG_EQ (source.GetHaveMobilityControlInfo (),destination.GetHaveMobilityControlInfo (), 
"GetHaveMobilityControlInfo");
 
  664   NS_TEST_ASSERT_MSG_EQ (source.GetHaveRadioResourceConfigDedicated (),destination.GetHaveRadioResourceConfigDedicated (), 
"GetHaveRadioResourceConfigDedicated");
 
  666   if ( source.GetHaveMobilityControlInfo () )
 
  668       NS_TEST_ASSERT_MSG_EQ (source.GetMobilityControlInfo ().targetPhysCellId,destination.GetMobilityControlInfo ().targetPhysCellId, 
"GetMobilityControlInfo().targetPhysCellId");
 
  669       NS_TEST_ASSERT_MSG_EQ (source.GetMobilityControlInfo ().haveCarrierFreq,destination.GetMobilityControlInfo ().haveCarrierFreq, 
"GetMobilityControlInfo().haveCarrierFreq");
 
  670       NS_TEST_ASSERT_MSG_EQ (source.GetMobilityControlInfo ().haveCarrierBandwidth,destination.GetMobilityControlInfo ().haveCarrierBandwidth, 
"GetMobilityControlInfo().haveCarrierBandwidth");
 
  671       NS_TEST_ASSERT_MSG_EQ (source.GetMobilityControlInfo ().newUeIdentity,destination.GetMobilityControlInfo ().newUeIdentity, 
"GetMobilityControlInfo().newUeIdentity");
 
  672       NS_TEST_ASSERT_MSG_EQ (source.GetMobilityControlInfo ().haveRachConfigDedicated,destination.GetMobilityControlInfo ().haveRachConfigDedicated, 
"GetMobilityControlInfo().haveRachConfigDedicated");
 
  674       if (source.GetMobilityControlInfo ().haveCarrierFreq)
 
  677                                  destination.GetMobilityControlInfo ().carrierFreq.dlCarrierFreq,
 
  678                                  "GetMobilityControlInfo().carrierFreq.dlCarrierFreq");
 
  680                                  destination.GetMobilityControlInfo ().carrierFreq.ulCarrierFreq,
 
  681                                  "GetMobilityControlInfo().carrierFreq.ulCarrierFreq");
 
  684       if (source.GetMobilityControlInfo ().haveCarrierBandwidth)
 
  687                                  destination.GetMobilityControlInfo ().carrierBandwidth.dlBandwidth,
 
  688                                  "GetMobilityControlInfo().carrierBandwidth.dlBandwidth");
 
  690                                  destination.GetMobilityControlInfo ().carrierBandwidth.ulBandwidth,
 
  691                                  "GetMobilityControlInfo().carrierBandwidth.ulBandwidth");
 
  694       if (source.GetMobilityControlInfo ().haveRachConfigDedicated)
 
  697                                  destination.GetMobilityControlInfo ().rachConfigDedicated.raPreambleIndex,
 
  698                                  "GetMobilityControlInfo().rachConfigDedicated.raPreambleIndex");
 
  700                                  destination.GetMobilityControlInfo ().rachConfigDedicated.raPrachMaskIndex,
 
  701                                  "GetMobilityControlInfo().rachConfigDedicated.raPrachMaskIndex");
 
  705   if (source.GetHaveRadioResourceConfigDedicated ())
 
  723   virtual void DoRun (
void);
 
  733   packet = Create<Packet> ();
 
  734   NS_LOG_DEBUG (
"============= HandoverPreparationInfoTestCase ===========");
 
  763   TestUtils::LogPacketInfo<HandoverPreparationInfoHeader> (source,
"SOURCE");
 
  776   TestUtils::LogPacketInfo<HandoverPreparationInfoHeader> (destination,
"DESTINATION");
 
  780   NS_TEST_ASSERT_MSG_EQ (source.GetAsConfig ().sourceUeIdentity, destination.GetAsConfig ().sourceUeIdentity, 
"sourceUeIdentity");
 
  781   NS_TEST_ASSERT_MSG_EQ (source.GetAsConfig ().sourceMasterInformationBlock.dlBandwidth,destination.GetAsConfig ().sourceMasterInformationBlock.dlBandwidth, 
"dlBandwidth");
 
  782   NS_TEST_ASSERT_MSG_EQ (source.GetAsConfig ().sourceMasterInformationBlock.systemFrameNumber, destination.GetAsConfig ().sourceMasterInformationBlock.systemFrameNumber, 
"systemFrameNumber");
 
  783   NS_TEST_ASSERT_MSG_EQ (source.GetAsConfig ().sourceSystemInformationBlockType1.cellAccessRelatedInfo.plmnIdentityInfo.plmnIdentity, destination.GetAsConfig ().sourceSystemInformationBlockType1.cellAccessRelatedInfo.plmnIdentityInfo.plmnIdentity, 
"plmnIdentity");
 
  784   NS_TEST_ASSERT_MSG_EQ (source.GetAsConfig ().sourceSystemInformationBlockType1.cellAccessRelatedInfo.csgIndication, destination.GetAsConfig ().sourceSystemInformationBlockType1.cellAccessRelatedInfo.csgIndication, 
"csgIndication");
 
  785   NS_TEST_ASSERT_MSG_EQ (source.GetAsConfig ().sourceSystemInformationBlockType1.cellAccessRelatedInfo.cellIdentity, destination.GetAsConfig ().sourceSystemInformationBlockType1.cellAccessRelatedInfo.cellIdentity, 
"cellIdentity");
 
  786   NS_TEST_ASSERT_MSG_EQ (source.GetAsConfig ().sourceSystemInformationBlockType1.cellAccessRelatedInfo.csgIdentity, destination.GetAsConfig ().sourceSystemInformationBlockType1.cellAccessRelatedInfo.csgIdentity, 
"csgIdentity");
 
  787   NS_TEST_ASSERT_MSG_EQ (source.GetAsConfig ().sourceDlCarrierFreq, destination.GetAsConfig ().sourceDlCarrierFreq, 
"sourceDlCarrierFreq");
 
  802   virtual void DoRun (
void);
 
  812   packet = Create<Packet> ();
 
  813   NS_LOG_DEBUG (
"============= RrcConnectionReestablishmentRequestTestCase ===========");
 
  824   TestUtils::LogPacketInfo<RrcConnectionReestablishmentRequestHeader> (source,
"SOURCE");
 
  837   TestUtils::LogPacketInfo<RrcConnectionReestablishmentRequestHeader> (destination,
"DESTINATION");
 
  841   NS_TEST_ASSERT_MSG_EQ (source.GetUeIdentity ().physCellId, destination.GetUeIdentity ().physCellId, 
"physCellId");
 
  842   NS_TEST_ASSERT_MSG_EQ (source.GetReestablishmentCause (),destination.GetReestablishmentCause (), 
"ReestablishmentCause");
 
  857   virtual void DoRun (
void);
 
  867   packet = Create<Packet> ();
 
  868   NS_LOG_DEBUG (
"============= RrcConnectionReestablishmentTestCase ===========");
 
  878   TestUtils::LogPacketInfo<RrcConnectionReestablishmentHeader> (source,
"SOURCE");
 
  891   TestUtils::LogPacketInfo<RrcConnectionReestablishmentHeader> (destination,
"DESTINATION");
 
  894   NS_TEST_ASSERT_MSG_EQ (source.GetRrcTransactionIdentifier (), destination.GetRrcTransactionIdentifier (), 
"rrcTransactionIdentifier");
 
  910   virtual void DoRun (
void);
 
  920   packet = Create<Packet> ();
 
  921   NS_LOG_DEBUG (
"============= RrcConnectionReestablishmentCompleteTestCase ===========");
 
  930   TestUtils::LogPacketInfo<RrcConnectionReestablishmentCompleteHeader> (source,
"SOURCE");
 
  943   TestUtils::LogPacketInfo<RrcConnectionReestablishmentCompleteHeader> (destination,
"DESTINATION");
 
  946   NS_TEST_ASSERT_MSG_EQ (source.GetRrcTransactionIdentifier (), destination.GetRrcTransactionIdentifier (), 
"rrcTransactionIdentifier");
 
  961   virtual void DoRun (
void);
 
  971   packet = Create<Packet> ();
 
  972   NS_LOG_DEBUG (
"============= RrcConnectionRejectTestCase ===========");
 
  981   TestUtils::LogPacketInfo<RrcConnectionRejectHeader> (source,
"SOURCE");
 
  994   TestUtils::LogPacketInfo<RrcConnectionRejectHeader> (destination,
"DESTINATION");
 
  997   NS_TEST_ASSERT_MSG_EQ (source.GetMessage ().waitTime, destination.GetMessage ().waitTime, 
"Different waitTime!");
 
 1012   virtual void DoRun (
void);
 
 1022   packet = Create<Packet> ();
 
 1023   NS_LOG_DEBUG (
"============= MeasurementReportTestCase ===========");
 
 1049   TestUtils::LogPacketInfo<MeasurementReportHeader> (source,
"SOURCE");
 
 1062   TestUtils::LogPacketInfo<MeasurementReportHeader> (destination,
"DESTINATION");
 
 1073   if (srcMeas.haveMeasResultNeighCells)
 
 1075       std::list<LteRrcSap::MeasResultEutra>::iterator itsrc = srcMeas.measResultListEutra.begin ();
 
 1076       std::list<LteRrcSap::MeasResultEutra>::iterator itdst = dstMeas.
measResultListEutra.begin ();
 
 1077       for (; itsrc != srcMeas.measResultListEutra.end (); itsrc++, itdst++)
 
 1082           if (itsrc->haveCgiInfo)
 
 1084               NS_TEST_ASSERT_MSG_EQ (itsrc->cgiInfo.plmnIdentity, itdst->cgiInfo.plmnIdentity, 
"Different cgiInfo.plmnIdentity!");
 
 1085               NS_TEST_ASSERT_MSG_EQ (itsrc->cgiInfo.cellIdentity, itdst->cgiInfo.cellIdentity, 
"Different cgiInfo.cellIdentity!");
 
 1086               NS_TEST_ASSERT_MSG_EQ (itsrc->cgiInfo.trackingAreaCode, itdst->cgiInfo.trackingAreaCode, 
"Different cgiInfo.trackingAreaCode!");
 
 1087               NS_TEST_ASSERT_MSG_EQ (itsrc->cgiInfo.plmnIdentityList.size (), itdst->cgiInfo.plmnIdentityList.size (), 
"Different cgiInfo.plmnIdentityList.size()!");
 
 1089               if (!itsrc->cgiInfo.plmnIdentityList.empty ())
 
 1091                   std::list<uint32_t>::iterator itsrc2 = itsrc->cgiInfo.plmnIdentityList.begin ();
 
 1092                   std::list<uint32_t>::iterator itdst2 = itdst->cgiInfo.plmnIdentityList.begin ();
 
 1093                   for (; itsrc2 != itsrc->cgiInfo.plmnIdentityList.begin (); itsrc2++, itdst2++)
 
 1101           if (itsrc->haveRsrpResult)
 
 1107           if (itsrc->haveRsrqResult)
 
 1131   : 
TestSuite (
"test-asn1-encoding", UNIT)
 
bool haveRange
has a range? 
 
uint32_t RemoveHeader(Header &header)
Deserialize and remove the header from the internal buffer. 
 
RrcConnectionRequest structure. 
 
enum ns3::LteRrcSap::ReportConfigEutra::@67 reportQuantity
Report type enumeration. 
 
SystemInformationBlockType2 sourceSystemInformationBlockType2
source system information block type 2 
 
PhysicalConfigDedicated structure. 
 
enum ns3::LteRrcSap::ThresholdEutra::@63 choice
Threshold enumeration. 
 
bool haveNonCriticalExtension
have critical extension? 
 
uint32_t carrierFreq
carrier frequency 
 
uint8_t drbIdentity
DRB identity. 
 
CarrierFreqEutra carrierFreq
carrier frequency 
 
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
 
PdschConfigDedicated pdschConfigDedicated
PDSCH config dedicated. 
 
uint16_t physCellId
Phy cell ID. 
 
MeasurementReport structure. 
 
uint8_t measObjectId
measure object ID 
 
PhysCellIdRange physCellIdRange
Phy cell ID range. 
 
MeasConfig sourceMeasConfig
source measure config 
 
uint32_t sourceDlCarrierFreq
source DL carrier frequency 
 
uint8_t cellIndex
cell index 
 
std::list< MeasObjectToAddMod > measObjectToAddModList
measure object to add mod list 
 
uint8_t numberOfRaPreambles
number of RA preambles 
 
SoundingRsUlConfigDedicated soundingRsUlConfigDedicated
sounding RS UL config dedicated 
 
bool presenceAntennaPort1
antenna port 1 present? 
 
uint8_t hysteresis
Parameter used within the entry and leave condition of an event triggered reporting condition...
 
std::list< CellsToAddMod > cellsToAddModList
cells to add mod list 
 
Asn1EncodingSuite asn1EncodingSuite
 
Rrc Connection Request Test Case. 
 
Rrc Connection Reject Test Case. 
 
QuantityConfig quantityConfig
quantity config 
 
std::list< uint8_t > reportConfigToRemoveList
report config to remove list 
 
RlcConfig rlcConfig
RLC config. 
 
uint8_t rsrpResult
RSRP result. 
 
std::list< MeasResultEutra > measResultListEutra
measure result list eutra 
 
uint8_t reportConfigId
report config ID 
 
ThresholdEutra threshold1
Threshold for event A1, A2, A4, and A5. 
 
Rrc Connection Reconfiguration Test Case. 
 
static std::string sprintPacketContentsHex(Ptr< Packet > pkt)
Function to convert packet contents in hex format. 
 
std::list< SrbToAddMod > srbToAddModList
SRB to add mod list. 
 
enum ns3::LteRrcSap::ReportConfigEutra::report purpose
purpose 
 
RadioResourceConfigDedicated radioResourceConfigDedicated
radio resource config dedicated 
 
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name. 
 
std::list< uint8_t > measObjectToRemoveList
measure object to remove list 
 
uint16_t start
starting cell ID 
 
uint32_t GetSize(void) const 
Returns the the size in bytes of the packet (including the zero-filled initial payload). 
 
Rrc Connection Reestablishment Request Test Case. 
 
uint8_t tEvaluation
evaluation 
 
uint16_t srsConfigIndex
SRS config index. 
 
MeasObjectEutra measObjectEutra
measure object eutra 
 
uint16_t sourceUeIdentity
source UE identity 
 
static void LogPacketInfo(T source, std::string s)
Function to log packet info. 
 
RrcConnectionReconfigurationCompleteTestCase()
 
bool haveCarrierFreq
have carrier frequency? 
 
enum ns3::LteRrcSap::ReportConfigEutra::@66 triggerQuantity
Trigger type enumeration. 
 
uint8_t neighCellConfig
neighbor cell config 
 
static void LogPacketContents(Ptr< Packet > pkt)
Function to log packet contents. 
 
RachConfigDedicated rachConfigDedicated
RACH config dedicated. 
 
bool haveSmeasure
have S measure? 
 
MeasConfig measConfig
measure config 
 
uint8_t rrcTransactionIdentifier
RRC transaction identifier. 
 
uint32_t cellIdentity
cell identity 
 
Handover Preparation Info Test Case. 
 
uint8_t waitTime
wait time 
 
uint32_t ulCarrierFreq
UL carrier frequency. 
 
bool haveRsrqResult
have RSRQ result? 
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
bool haveRadioResourceConfigDedicated
have radio resource config dedicated 
 
uint16_t trackingAreaCode
tracking area code 
 
std::list< BlackCellsToAddMod > blackCellsToAddModList
black cells to add mod list 
 
SystemInformationBlockType1 sourceSystemInformationBlockType1
source system information block type 1 
 
AsConfig asConfig
AS config. 
 
uint8_t rrcTransactionIdentifier
RRC transaction identifier. 
 
PreambleInfo preambleInfo
preamble info 
 
uint8_t rsrpResult
RSRP result. 
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
Rrc Connection Reconfiguration Complete Test Case. 
 
static std::string sprintPacketContentsBin(Ptr< Packet > pkt)
Function to convert packet contents in binary format. 
 
Rrc Connection Setup Test Case. 
 
static std::string sprintPacketContentsHex(Ptr< Packet > pkt)
Function to convert packet contents in hex format. 
 
RrcConnectionSetupTestCase()
 
enum ns3::LteRrcSap::MeasGapConfig::gap gapOffsetChoice
gap offset 
 
uint8_t preambleTransMax
preamble transmit maximum 
 
MeasResults measResults
measure results 
 
uint8_t epsBearerIdentity
EPS bearer identity. 
 
uint8_t tHystNormal
hyst normal 
 
uint64_t ueIdentity
UE identity. 
 
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite. 
 
enum ns3::LteRrcSap::SpeedStatePars::action type
action type 
 
RrcConnectionReestablishment structure. 
 
RachConfigCommon rachConfigCommon
RACH config common. 
 
ReportConfigEutra reportConfigEutra
report config eutra 
 
RrcConnectionReestablishmentTestCase()
 
uint8_t logicalChannelGroup
logical channel group 
 
uint8_t nCellChangeHigh
cell change high 
 
Rrc Connection Setup Complete Test Case. 
 
uint8_t rrcTransactionIdentifier
RRC transaction identifier. 
 
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not. 
 
uint8_t sMeasure
S measure. 
 
bool haveMeasGapConfig
have measure gap config? 
 
MeasResultEutra structure. 
 
RrcConnectionReconfiguration structure. 
 
std::list< MeasIdToAddMod > measIdToAddModList
measure ID to add mod list 
 
uint8_t srsBandwidth
SRS bandwidth. 
 
bool haveRachConfigDedicated
Have RACH config dedicated? 
 
uint8_t raPrachMaskIndex
RA PRACH mask index. 
 
RrcConnectionReestablishmentRequestTestCase()
 
MeasurementReportTestCase()
 
PhysicalConfigDedicated physicalConfigDedicated
physical config dedicated 
 
uint8_t filterCoefficientRSRP
filter coefficient RSRP 
 
RrcConnectionReconfigurationCompleted structure. 
 
enum ns3::LteRrcSap::ReportConfigEutra::@68 reportInterval
Report interval enumeration. 
 
enum ns3::LteRrcSap::ReportConfigEutra::@65 eventId
Event enumeration. 
 
bool haveRsrpResult
have RSRP result 
 
HandoverPreparationInfoTestCase()
 
MeasIdToAddMod structure. 
 
uint8_t rrcTransactionIdentifier
RRC transaction identifier. 
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
MobilityStateParameters mobilityStateParameters
mobility state parameters 
 
RrcConnectionSetupCompleted structure. 
 
HandoverPreparationInfo structure. 
 
Rrc Connection Reestablishment Complete Test Case. 
 
RadioResourceConfigDedicated radioResourceConfigDedicated
radio resource config dedicated 
 
RrcConnectionSetup structure. 
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
uint8_t rrcTransactionIdentifier
RRC transaction identifier. 
 
RrcConnectionReestablishmentRequest structure. 
 
uint8_t raPreambleIndex
RA preamble index. 
 
RadioResourceConfigDedicated sourceRadioResourceConfig
source radio resource config 
 
uint8_t reportConfigId
report config ID 
 
uint16_t cellForWhichToReportCGI
cell for which to report CGI 
 
bool reportOnLeave
Indicates whether or not the UE shall initiate the measurement reporting procedure when the leaving c...
 
uint16_t physCellId
Phy cell ID. 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
bool haveQuantityConfig
have quantity config? 
 
uint16_t targetPhysCellId
target Phy cell ID 
 
RrcConnectionReject structure. 
 
uint8_t rrcTransactionIdentifier
RRC transaction identifier. 
 
bool haveMobilityControlInfo
have mobility control info 
 
uint16_t prioritizedBitRateKbps
prioritized bit rate Kbps 
 
uint8_t maxReportCells
Maximum number of cells, excluding the serving cell, to be included in the measurement report...
 
int8_t cellIndividualOffset
cell individual offset 
 
RadioResourceConfigDedicated radioResourceConfigDedicated
radio resource config dedicated 
 
bool haveMeasResultNeighCells
have measure result neighbor cells 
 
uint8_t filterCoefficientRSRQ
filter coefficient RSRQ 
 
bool havePdschConfigDedicated
have PDSCH config dedicated? 
 
RrcConnectionRequestTestCase()
 
uint8_t logicalChannelIdentity
logical channel identify 
 
uint8_t sfHigh
scale factor high 
 
This class manages the serialization/deserialization of HandoverPreparationInfo IE. 
 
uint16_t newUeIdentity
new UE identity 
 
MeasGapConfig measGapConfig
measure gap config 
 
uint8_t range
Value range used in RSRP/RSRQ threshold. 
 
bool havePhysicalConfigDedicated
have physical config dedicated? 
 
bool haveCgiInfo
have CGI info? 
 
uint8_t ulBandwidth
UL bandwidth. 
 
uint8_t reportAmount
Number of measurement reports applicable, always assumed to be infinite. 
 
bool haveSoundingRsUlConfigDedicated
have sounding RS UL config dedicated? 
 
BlackCellsToAddMod structure. 
 
uint8_t measObjectId
measure object ID 
 
void SetMessage(LteRrcSap::HandoverPreparationInfo msg)
Receives a HandoverPreparationInfo IE and stores the contents into the class attributes. 
 
uint8_t gapOffsetValue
gap offset value 
 
uint16_t physCellId
Phy cell ID. 
 
RadioResourceConfigCommon radioResourceConfigCommon
radio resource config common 
 
uint32_t plmnIdentity
PLMN identity. 
 
uint32_t dlCarrierFreq
DL carrier frequency. 
 
CarrierBandwidthEutra carrierBandwidth
carrier bandwidth 
 
int8_t a3Offset
Offset value for Event A3. An integer between -30 and 30. The actual value is (value * 0...
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
LogicalChannelConfig logicalChannelConfig
logical channel config 
 
RachConfigCommon rachConfigCommon
RACH config common. 
 
SpeedStatePars speedStatePars
speed state parameters 
 
Rrc Connection Reestablishment Test Case. 
 
uint8_t raResponseWindowSize
RA response window size. 
 
bool haveCarrierBandwidth
have carrier bandwidth? 
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
bool haveAntennaInfoDedicated
have antenna info dedicated? 
 
uint8_t ulBandwidth
UL bandwidth. 
 
uint8_t rsrqResult
RSRQ result. 
 
std::list< uint8_t > blackCellsToRemoveList
black cells to remove list 
 
bool haveSpeedStatePars
have speed state parameters? 
 
uint8_t allowedMeasBandwidth
allowed measure bandwidth 
 
uint8_t cellIndex
cell index 
 
std::list< DrbToAddMod > drbToAddModList
DRB to add mod list. 
 
enum ns3::LteRrcSap::SoundingRsUlConfigDedicated::action type
action type 
 
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG. 
 
int8_t offsetFreq
offset frequency 
 
RrcConnectionReestablishmentComplete structure. 
 
uint8_t transmissionMode
transmission mode 
 
enum ns3::LteRrcSap::RlcConfig::direction choice
direction choice 
 
enum ns3::LteRrcSap::MeasGapConfig::action type
action type 
 
RrcConnectionReestablishmentCompleteTestCase()
 
RrcConnectionReconfigurationTestCase()
 
MobilityControlInfo mobilityControlInfo
mobility control info 
 
bool haveMeasConfig
have measure config 
 
uint32_t CopyData(uint8_t *buffer, uint32_t size) const 
Copy the packet contents to a byte buffer. 
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
AntennaInfoDedicated antennaInfo
antenna info 
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
uint32_t plmnIdentity
PLMN identity. 
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
std::list< uint8_t > cellsToRemoveList
cells to remove list 
 
uint8_t rsrqResult
RSRQ result. 
 
ReestablishmentCause reestablishmentCause
reestablishment cause 
 
uint8_t dlBandwidth
DL bandwidth. 
 
RrcConnectionSetupCompleteTestCase()
 
RrcConnectionRejectTestCase()
 
static std::string sprintPacketContentsBin(Ptr< Packet > pkt)
Function to convert packet contents in binary format. 
 
uint8_t sfMedium
scale factor medium 
 
LogicalChannelConfig structure. 
 
uint16_t timeToTrigger
Time during which specific criteria for the event needs to be met in order to trigger a measurement r...
 
uint16_t bucketSizeDurationMs
bucket size duration ms 
 
std::list< uint8_t > measIdToRemoveList
measure ID to remove list 
 
std::list< ReportConfigToAddMod > reportConfigToAddModList
report config to add mod list 
 
ReportConfigToAddMod structure. 
 
ReestabUeIdentity ueIdentity
UE identity. 
 
std::list< uint8_t > drbToReleaseList
DRB to release list. 
 
MeasObjectToAddMod structure. 
 
SpeedStateScaleFactors timeToTriggerSf
time to trigger scale factors 
 
void AddHeader(const Header &header)
Add header to this packet. 
 
RaSupervisionInfo raSupervisionInfo
RA supervision info. 
 
uint8_t nCellChangeMedium
cell change medium 
 
bool haveScellsMeas
has SCells measure 
 
Measurement Report Test Case. 
 
RadioResourceConfigDedicated structure. 
 
uint32_t ulCarrierFreq
UL carrier frequency. 
 
MasterInformationBlock sourceMasterInformationBlock
source master information block 
 
enum ns3::LteRrcSap::ReportConfigEutra::@64 triggerType
Trigger enumeration. 
 
bool haveCellForWhichToReportCGI
have cell for which to report CGI? 
 
ThresholdEutra threshold2
Threshold for event A5. 
 
virtual void DoRun(void)
Implementation to actually run this TestCase.