Return Link Encapsulation (RLE) test case implementation. More...
Public Member Functions | |
SatRleTestCase () | |
virtual | ~SatRleTestCase () |
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... | |
Return Link Encapsulation (RLE) test case implementation.
Expected results
Definition at line 56 of file satellite-rle-test.cc.
SatRleTestCase::SatRleTestCase | ( | ) |
Definition at line 84 of file satellite-rle-test.cc.
|
virtual |
Definition at line 89 of file satellite-rle-test.cc.
|
privatevirtual |
Create TxOpportunities for RLE 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 94 of file satellite-rle-test.cc.
References m_rcvdPacketSizes, m_sentPacketSizes, and Receive().
void SatRleTestCase::Receive | ( | Ptr< Packet > | p, |
Mac48Address | source, | ||
Mac48Address | dest | ||
) |
Receive packet and check that it is of correct size.
p | Ptr to packet |
source | Source MAC address |
dest | Destination 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 152 of file satellite-rle-test.cc.
References m_rcvdPacketSizes, and m_sentPacketSizes.
Referenced by DoRun().
|
private |
Received packet sizes.
Definition at line 81 of file satellite-rle-test.cc.
|
private |
Sent packet sizes.
Definition at line 76 of file satellite-rle-test.cc.