A Discrete-Event Network Simulator
API
LteIpv6RoutingTestCase Class Reference

Lte Ipv6 routing test case. More...

+ Inheritance diagram for LteIpv6RoutingTestCase:
+ Collaboration diagram for LteIpv6RoutingTestCase:

Public Member Functions

 LteIpv6RoutingTestCase ()
 
 ~LteIpv6RoutingTestCase () override
 
void Checker ()
 Initialize testing parameters. More...
 
void EnbToPgw (Ptr< Packet > p)
 Received Packet at pgw from enb. More...
 
void ReceivedAtClient (Ptr< const Packet > p, Ptr< Ipv6 > ipv6, uint32_t interface)
 Received Packets at client's IPv6 interface. More...
 
void SentAtClient (Ptr< const Packet > p, Ptr< Ipv6 > ipv6, uint32_t interface)
 sent Packets from client's IPv6 interface. More...
 
void TunToPgw (Ptr< Packet > p)
 Received Packet at pgw from enb. More...
 
- Public Member Functions inherited from ns3::TestCase
 TestCase (const TestCase &)=delete
 
virtual ~TestCase ()
 Destructor. More...
 
std::string GetName () const
 
TestCaseoperator= (const TestCase &)=delete
 

Private Member Functions

void DoRun () override
 Implementation to actually run this TestCase. More...
 

Private Attributes

std::list< Ptr< Packet > > m_clientRxPkts
 list of received packets at client More...
 
std::list< Ptr< Packet > > m_clientTxPkts
 list of sent packets from client More...
 
std::list< uint64_t > m_pgwUidRxFrmEnb
 list of uids of packets received at pgw from enb More...
 
std::list< uint64_t > m_pgwUidRxFrmTun
 list of uids of packets received at pgw from tunnel net device More...
 
Ipv6Address m_remoteHostAddr
 remote host address More...
 
Ipv6InterfaceContainer m_ueIpIface
 IPv6 interface container for ue. 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...
 
- 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 TestCase. More...
 
bool IsStatusFailure () const
 Check if any tests failed. More...
 
bool IsStatusSuccess () 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 () const
 Check if this run should assert on failure. More...
 
bool MustContinueOnFailure () 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...
 

Detailed Description

Lte Ipv6 routing test case.

Definition at line 57 of file lte-test-ipv6-routing.cc.

Constructor & Destructor Documentation

◆ LteIpv6RoutingTestCase()

LteIpv6RoutingTestCase::LteIpv6RoutingTestCase ( )

Definition at line 108 of file lte-test-ipv6-routing.cc.

◆ ~LteIpv6RoutingTestCase()

LteIpv6RoutingTestCase::~LteIpv6RoutingTestCase ( )
override

Definition at line 113 of file lte-test-ipv6-routing.cc.

Member Function Documentation

◆ Checker()

void LteIpv6RoutingTestCase::Checker ( )

◆ DoRun()

void LteIpv6RoutingTestCase::DoRun ( )
overrideprivatevirtual

Implementation to actually run this TestCase.

Subclasses should override this method to conduct their tests.

Implements ns3::TestCase.

Definition at line 224 of file lte-test-ipv6-routing.cc.

References ns3::Ipv6AddressHelper::Assign(), ns3::NoBackhaulEpcHelper::AssignUeIpv6Address(), ns3::LteHelper::Attach(), Checker(), ns3::ConfigStore::ConfigureDefaults(), ns3::NodeContainer::Create(), EnbToPgw(), ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::Ipv6InterfaceContainer::GetAddress(), ns3::Node::GetApplication(), ns3::NodeContainer::GetN(), ns3::Object::GetObject(), ns3::NoBackhaulEpcHelper::GetPgwNode(), ns3::Ipv6StaticRoutingHelper::GetStaticRouting(), ns3::NoBackhaulEpcHelper::GetUeDefaultGatewayAddress6(), ns3::PointToPointHelper::Install(), ns3::UdpEchoServerHelper::Install(), ns3::UdpEchoClientHelper::Install(), ns3::LteHelper::InstallEnbDevice(), ns3::LteHelper::InstallUeDevice(), nsclick-simple-lan::internet, m_remoteHostAddr, m_ueIpIface, ns3::MakeCallback(), third::mobility, ReceivedAtClient(), ns3::Seconds(), SentAtClient(), first::serverApps, ns3::UdpEchoClientHelper::SetAttribute(), ns3::Ipv6AddressHelper::SetBase(), ns3::PointToPointHelper::SetChannelAttribute(), ns3::Ipv6InterfaceContainer::SetDefaultRouteInAllNodes(), ns3::PointToPointHelper::SetDeviceAttribute(), ns3::LteHelper::SetEpcHelper(), ns3::Ipv6InterfaceContainer::SetForwarding(), ns3::ApplicationContainer::Start(), ns3::ApplicationContainer::Stop(), ns3::ObjectBase::TraceConnectWithoutContext(), and TunToPgw().

+ Here is the call graph for this function:

◆ EnbToPgw()

void LteIpv6RoutingTestCase::EnbToPgw ( Ptr< Packet p)

Received Packet at pgw from enb.

Parameters
ppacket

Definition at line 140 of file lte-test-ipv6-routing.cc.

References ns3::Ipv6Header::GetNextHeader(), ns3::Packet::GetUid(), m_pgwUidRxFrmEnb, and ns3::Packet::PeekHeader().

Referenced by DoRun().

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

◆ ReceivedAtClient()

void LteIpv6RoutingTestCase::ReceivedAtClient ( Ptr< const Packet p,
Ptr< Ipv6 ipv6,
uint32_t  interface 
)

Received Packets at client's IPv6 interface.

Parameters
ppacket
ipv6Ipv6 object
interfaceIpv6interface at which the packet is received

Definition at line 129 of file lte-test-ipv6-routing.cc.

References ns3::Packet::Copy(), ns3::Ipv6Header::GetNextHeader(), m_clientRxPkts, and ns3::Packet::PeekHeader().

Referenced by DoRun().

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

◆ SentAtClient()

void LteIpv6RoutingTestCase::SentAtClient ( Ptr< const Packet p,
Ptr< Ipv6 ipv6,
uint32_t  interface 
)

sent Packets from client's IPv6 interface.

Parameters
ppacket
ipv6Ipv6 object
interfaceIpv6interface from which the packet is transmitted

Definition at line 118 of file lte-test-ipv6-routing.cc.

References ns3::Packet::Copy(), ns3::Ipv6Header::GetNextHeader(), m_clientTxPkts, and ns3::Packet::PeekHeader().

Referenced by DoRun().

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

◆ TunToPgw()

void LteIpv6RoutingTestCase::TunToPgw ( Ptr< Packet p)

Received Packet at pgw from enb.

Parameters
ppacket

Definition at line 151 of file lte-test-ipv6-routing.cc.

References ns3::Ipv6Header::GetNextHeader(), ns3::Packet::GetUid(), m_pgwUidRxFrmTun, and ns3::Packet::PeekHeader().

Referenced by DoRun().

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

Member Data Documentation

◆ m_clientRxPkts

std::list<Ptr<Packet> > LteIpv6RoutingTestCase::m_clientRxPkts
private

list of received packets at client

Definition at line 105 of file lte-test-ipv6-routing.cc.

Referenced by Checker(), and ReceivedAtClient().

◆ m_clientTxPkts

std::list<Ptr<Packet> > LteIpv6RoutingTestCase::m_clientTxPkts
private

list of sent packets from client

Definition at line 104 of file lte-test-ipv6-routing.cc.

Referenced by Checker(), and SentAtClient().

◆ m_pgwUidRxFrmEnb

std::list<uint64_t> LteIpv6RoutingTestCase::m_pgwUidRxFrmEnb
private

list of uids of packets received at pgw from enb

Definition at line 100 of file lte-test-ipv6-routing.cc.

Referenced by Checker(), and EnbToPgw().

◆ m_pgwUidRxFrmTun

std::list<uint64_t> LteIpv6RoutingTestCase::m_pgwUidRxFrmTun
private

list of uids of packets received at pgw from tunnel net device

Definition at line 102 of file lte-test-ipv6-routing.cc.

Referenced by Checker(), and TunToPgw().

◆ m_remoteHostAddr

Ipv6Address LteIpv6RoutingTestCase::m_remoteHostAddr
private

remote host address

Definition at line 99 of file lte-test-ipv6-routing.cc.

Referenced by DoRun().

◆ m_ueIpIface

Ipv6InterfaceContainer LteIpv6RoutingTestCase::m_ueIpIface
private

IPv6 interface container for ue.

Definition at line 98 of file lte-test-ipv6-routing.cc.

Referenced by DoRun().


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