satellite-arq-test.cc File Reference

Automatic Repeat reQuest test suite. More...

#include "../model/satellite-generic-stream-encapsulator-arq.h"
#include "../model/satellite-queue.h"
#include "../model/satellite-return-link-encapsulator-arq.h"
#include "../utils/satellite-env-variables.h"
#include "ns3/callback.h"
#include "ns3/config.h"
#include "ns3/log.h"
#include "ns3/packet.h"
#include "ns3/ptr.h"
#include "ns3/random-variable-stream.h"
#include "ns3/singleton.h"
#include "ns3/test.h"
#include <vector>
+ Include dependency graph for satellite-arq-test.cc:

Go to the source code of this file.

Classes

class  SatArqTestSuite
 Test suite for ARQ. More...
 
class  SatFwdArqTestCase
 FWD link ARQ test case. More...
 
class  SatRtnArqTestCase
 RTN link ARQ test case. More...
 

Variables

static SatArqTestSuite satArqTestSuite
 

Detailed Description

Automatic Repeat reQuest test suite.

Test suite holds two test cases:

  • RTN link ARQ
  • FWD link ARQ

The test case generates m_numPackets packets and buffers them to RLE/GSE queue. The test case generates random sized Tx opportunities at a specified semi-random interval to RLE/GSE. The packets shall be received by the RLE/GSE receiver at a configured probability (m_packetErrorProbability). The RLE/GSE receiver generates ACKs for received packets which are also having a configurable error probability (m_ackErrorProbability). The test ends after a configurable amount of generated Tx opportunities (m_numTxOpportunities).

Expected result: the test case shall have at maximum of configurable HL packet error probability (m_errorProbabilityThreshold).

Definition in file satellite-arq-test.cc.

Variable Documentation

◆ satArqTestSuite

SatArqTestSuite satArqTestSuite
static

Definition at line 704 of file satellite-arq-test.cc.