SatGseTestCase Class Reference

Generic Stream Encapsulation (GSE) test case implementation. More...

+ Inheritance diagram for SatGseTestCase:
+ Collaboration diagram for SatGseTestCase:

Public Member Functions

 SatGseTestCase ()
 
virtual ~SatGseTestCase ()
 
void Receive (Ptr< Packet > p, Mac48Address source, Mac48Address dest)
 Receive packet and check that it is of correct size. More...
 

Private Member Functions

virtual void DoRun (void)
 

Private Attributes

std::vector< uint32_t > m_rcvdPacketSizes
 Received packet sizes. More...
 
std::vector< uint32_t > m_sentPacketSizes
 Sent packet sizes. More...
 

Detailed Description

Generic Stream Encapsulation (GSE) test case implementation.

Expected results

  • 100 packets of random size (in bytes) are generated and enqued to GSE
  • NotifyTxOpportunity is called with random size (in bytes) until all the packets have been dequed from GSE. GSE performs encapsulation, fragmentation and packing if needed.
  • Packets are forwarded to the receive functionality of GSE, where they are reassembled
  • The same amount of packets have to be received as were transmitted
  • The packet sizes of each enqued HL packet has to be the same as the received (reassembled) packet

Definition at line 55 of file satellite-gse-test.cc.

Constructor & Destructor Documentation

◆ SatGseTestCase()

SatGseTestCase::SatGseTestCase ( )

Definition at line 83 of file satellite-gse-test.cc.

◆ ~SatGseTestCase()

SatGseTestCase::~SatGseTestCase ( )
virtual

Definition at line 88 of file satellite-gse-test.cc.

Member Function Documentation

◆ DoRun()

void SatGseTestCase::DoRun ( void  )
privatevirtual

Create TxOpportunities for Gse and call receive method to do decapsuling, defragmentation and reassembly.

Test that the amount of sent packets is the same as the amount of received packets.

Definition at line 93 of file satellite-gse-test.cc.

References m_rcvdPacketSizes, m_sentPacketSizes, and Receive().

+ Here is the call graph for this function:

◆ Receive()

void SatGseTestCase::Receive ( Ptr< Packet >  p,
Mac48Address  source,
Mac48Address  dest 
)

Receive packet and check that it is of correct size.

Parameters
pPtr to packet
sourceSource MAC address
destDestination MAC address

Test the sent packet size is the same as the received packet size. This tests the encapsulation, fragmentation and packing functionality as well as reassembly.

Definition at line 163 of file satellite-gse-test.cc.

References m_rcvdPacketSizes, and m_sentPacketSizes.

Referenced by DoRun().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_rcvdPacketSizes

std::vector<uint32_t> SatGseTestCase::m_rcvdPacketSizes
private

Received packet sizes.

Definition at line 80 of file satellite-gse-test.cc.

Referenced by DoRun(), and Receive().

◆ m_sentPacketSizes

std::vector<uint32_t> SatGseTestCase::m_sentPacketSizes
private

Sent packet sizes.

Definition at line 75 of file satellite-gse-test.cc.

Referenced by DoRun(), and Receive().


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