ns3::SatTrafficHelper Class Reference

Creates pre-defined trafics. More...

#include "satellite-traffic-helper.h"

+ Inheritance diagram for ns3::SatTrafficHelper:
+ Collaboration diagram for ns3::SatTrafficHelper:

Classes

struct  CustomTrafficInfo_s
 Struct for info on last custom trafic created. More...
 

Public Types

enum  TrafficDirection_t { RTN_LINK , FWD_LINK }
 
enum  TrafficType_t {
  LORA_PERIODIC , LORA_CBR , CBR , ONOFF ,
  HTTP , NRTV , POISSON , VOIP ,
  CUSTOM
}
 List of available traffics. More...
 
enum  TransportLayerProtocol_t { UDP , TCP }
 
enum  VoipCodec_t {
  G_711_1 , G_711_2 , G_723_1 , G_729_2 ,
  G_729_3
}
 

Public Member Functions

 SatTrafficHelper ()
 Default constructor. More...
 
 SatTrafficHelper (Ptr< SatHelper > satHelper, Ptr< SatStatsHelperContainer > satStatsHelperContainer)
 Create a base SatTrafficHelper for creating customized traffics. More...
 
virtual ~SatTrafficHelper ()
 Destructor for SatTrafficHelper. More...
 
void AddCbrTraffic (TrafficDirection_t direction, TransportLayerProtocol_t protocol, Time interval, uint32_t packetSize, NodeContainer gwUsers, NodeContainer utUsers, Time startTime, Time stopTime, Time startDelay)
 Add a new CBR traffic between chosen GWs and UTs. More...
 
void AddCbrTraffic (TrafficDirection_t direction, TransportLayerProtocol_t protocol, Time interval, uint32_t packetSize, NodeContainer gwUsers, NodeContainer utUsers, Time startTime, Time stopTime, Time startDelay, double percentage)
 Add a new CBR traffic between chosen GWs and UTs. More...
 
void AddCustomTraffic (TrafficDirection_t direction, std::string interval, uint32_t packetSize, NodeContainer gwUsers, NodeContainer utUsers, Time startTime, Time stopTime, Time startDelay)
 Add a new CBR traffic between chosen GWs and UTs that can be customized. More...
 
void AddHttpTraffic (TrafficDirection_t direction, NodeContainer gwUsers, NodeContainer utUsers, Time startTime, Time stopTime, Time startDelay)
 Add a new TCP/HTTP traffic between chosen GWs and UTs. More...
 
void AddHttpTraffic (TrafficDirection_t direction, NodeContainer gwUsers, NodeContainer utUsers, Time startTime, Time stopTime, Time startDelay, double percentage)
 Add a new TCP/HTTP traffic between chosen GWs and UTs. More...
 
void AddLoraCbrTraffic (Time interval, uint32_t packetSize, NodeContainer gwUsers, NodeContainer utUsers, Time startTime, Time stopTime, Time startDelay)
 Add Lora CBR traffic between chosen GWs and UTs. More...
 
void AddLoraCbrTraffic (Time interval, uint32_t packetSize, NodeContainer gwUsers, NodeContainer utUsers, Time startTime, Time stopTime, Time startDelay, double percentage)
 Add Lora CBR traffic between chosen GWs and UTs. More...
 
void AddLoraPeriodicTraffic (Time interval, uint32_t packetSize, NodeContainer uts, Time startTime, Time stopTime, Time startDelay)
 Add Lora periodic traffic between chosen GWs and UTs. More...
 
void AddLoraPeriodicTraffic (Time interval, uint32_t packetSize, NodeContainer uts, Time startTime, Time stopTime, Time startDelay, double percentage)
 Add Lora periodic traffic between chosen GWs and UTs. More...
 
void AddNrtvTraffic (TrafficDirection_t direction, NodeContainer gwUsers, NodeContainer utUsers, Time startTime, Time stopTime, Time startDelay)
 Add a new TCP/NRTV traffic between chosen GWs and UTs. More...
 
void AddNrtvTraffic (TrafficDirection_t direction, NodeContainer gwUsers, NodeContainer utUsers, Time startTime, Time stopTime, Time startDelay, double percentage)
 Add a new TCP/NRTV traffic between chosen GWs and UTs. More...
 
void AddOnOffTraffic (TrafficDirection_t direction, TransportLayerProtocol_t protocol, DataRate dataRate, uint32_t packetSize, NodeContainer gwUsers, NodeContainer utUsers, std::string onTimePattern, std::string offTimePattern, Time startTime, Time stopTime, Time startDelay)
 Add a new ONOFF traffic between chosen GWs and UTs. More...
 
void AddOnOffTraffic (TrafficDirection_t direction, TransportLayerProtocol_t protocol, DataRate dataRate, uint32_t packetSize, NodeContainer gwUsers, NodeContainer utUsers, std::string onTimePattern, std::string offTimePattern, Time startTime, Time stopTime, Time startDelay, double percentage)
 Add a new ONOFF traffic between chosen GWs and UTs. More...
 
void AddPoissonTraffic (TrafficDirection_t direction, Time onTime, Time offTimeExpMean, DataRate rate, uint32_t packetSize, NodeContainer gwUsers, NodeContainer utUsers, Time startTime, Time stopTime, Time startDelay)
 Add a new Poisson traffic between chosen GWs and UTs. More...
 
void AddPoissonTraffic (TrafficDirection_t direction, Time onTime, Time offTimeExpMean, DataRate rate, uint32_t packetSize, NodeContainer gwUsers, NodeContainer utUsers, Time startTime, Time stopTime, Time startDelay, double percentage)
 Add a new Poisson traffic between chosen GWs and UTs. More...
 
void AddVoipTraffic (TrafficDirection_t direction, VoipCodec_t codec, NodeContainer gwUsers, NodeContainer utUsers, Time startTime, Time stopTime, Time startDelay)
 Add a new Poisson traffic between chosen GWs and UTs. More...
 
void AddVoipTraffic (TrafficDirection_t direction, VoipCodec_t codec, NodeContainer gwUsers, NodeContainer utUsers, Time startTime, Time stopTime, Time startDelay, double percentage)
 Add a new Poisson traffic between chosen GWs and UTs. More...
 
void ChangeCustomTraffic (Time delay, std::string interval, uint32_t packetSize)
 Change the parameters of the last custom traffic created. More...
 
TypeId GetInstanceTypeId (void) const
 Get the type ID of object instance. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 Get the type ID. More...
 

Private Member Functions

bool HasSinkInstalled (Ptr< Node > node, uint16_t port)
 Check if node has a PacketSink installed at certain port. More...
 
void UpdateAttribute (Ptr< CbrApplication > application, std::string interval, uint32_t packetSize)
 Update the chosen attribute of a custom traffic. More...
 

Private Attributes

bool m_enableDefaultStatistics
 
CustomTrafficInfo_s m_last_custom_application
 
Ptr< SatHelperm_satHelper
 
Ptr< SatStatsHelperContainerm_satStatsHelperContainer
 

Detailed Description

Creates pre-defined trafics.

Definition at line 46 of file satellite-traffic-helper.h.

Member Enumeration Documentation

◆ TrafficDirection_t

Enumerator
RTN_LINK 
FWD_LINK 

Definition at line 65 of file satellite-traffic-helper.h.

◆ TrafficType_t

List of available traffics.

Enumerator
LORA_PERIODIC 
LORA_CBR 
CBR 
ONOFF 
HTTP 
NRTV 
POISSON 
VOIP 
CUSTOM 

Definition at line 52 of file satellite-traffic-helper.h.

◆ TransportLayerProtocol_t

Enumerator
UDP 
TCP 

Definition at line 71 of file satellite-traffic-helper.h.

◆ VoipCodec_t

Enumerator
G_711_1 
G_711_2 
G_723_1 
G_729_2 
G_729_3 

Definition at line 77 of file satellite-traffic-helper.h.

Constructor & Destructor Documentation

◆ SatTrafficHelper() [1/2]

ns3::SatTrafficHelper::SatTrafficHelper ( )

Default constructor.

Not used.

Definition at line 324 of file satellite-traffic-helper.cc.

◆ SatTrafficHelper() [2/2]

ns3::SatTrafficHelper::SatTrafficHelper ( Ptr< SatHelper satHelper,
Ptr< SatStatsHelperContainer satStatsHelperContainer 
)

Create a base SatTrafficHelper for creating customized traffics.

Definition at line 331 of file satellite-traffic-helper.cc.

References ns3::SatTrafficHelper::CustomTrafficInfo_s::created, and m_last_custom_application.

◆ ~SatTrafficHelper()

virtual ns3::SatTrafficHelper::~SatTrafficHelper ( )
inlinevirtual

Destructor for SatTrafficHelper.

Definition at line 112 of file satellite-traffic-helper.h.

Member Function Documentation

◆ AddCbrTraffic() [1/2]

void ns3::SatTrafficHelper::AddCbrTraffic ( TrafficDirection_t  direction,
TransportLayerProtocol_t  protocol,
Time  interval,
uint32_t  packetSize,
NodeContainer  gwUsers,
NodeContainer  utUsers,
Time  startTime,
Time  stopTime,
Time  startDelay 
)

Add a new CBR traffic between chosen GWs and UTs.

Parameters
directionDirection of traffic
protocolTransport layer protocol
intervalWait time between transmission of two packets
packetSizePacket size in bytes
gwUsersThe Gateway Users
utUsersThe UT Users
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user

Definition at line 495 of file satellite-traffic-helper.cc.

References FWD_LINK, HasSinkInstalled(), m_enableDefaultStatistics, m_satHelper, m_satStatsHelperContainer, ns3::SatStatsHelper::OUTPUT_SCALAR_FILE, ns3::SatStatsHelper::OUTPUT_SCATTER_FILE, RTN_LINK, and TCP.

Referenced by AddCbrTraffic().

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

◆ AddCbrTraffic() [2/2]

void ns3::SatTrafficHelper::AddCbrTraffic ( TrafficDirection_t  direction,
TransportLayerProtocol_t  protocol,
Time  interval,
uint32_t  packetSize,
NodeContainer  gwUsers,
NodeContainer  utUsers,
Time  startTime,
Time  stopTime,
Time  startDelay,
double  percentage 
)

Add a new CBR traffic between chosen GWs and UTs.

Parameters
directionDirection of traffic
protocolTransport layer protocol
intervalWait time between transmission of two packets
packetSizePacket size in bytes
gwUsersThe Gateway Users
utUsersThe UT Users
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user
percentagePercentage of UT users having the traffic installed

Definition at line 673 of file satellite-traffic-helper.cc.

References AddCbrTraffic().

+ Here is the call graph for this function:

◆ AddCustomTraffic()

void ns3::SatTrafficHelper::AddCustomTraffic ( TrafficDirection_t  direction,
std::string  interval,
uint32_t  packetSize,
NodeContainer  gwUsers,
NodeContainer  utUsers,
Time  startTime,
Time  stopTime,
Time  startDelay 
)

Add a new CBR traffic between chosen GWs and UTs that can be customized.

Parameters
directionDirection of traffic
intervalInitial wait time between transmission of two packets
packetSizePacket size in bytes
gwUsersThe Gateway Users
utUsersThe UT Users
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user

Definition at line 1825 of file satellite-traffic-helper.cc.

References ns3::SatTrafficHelper::CustomTrafficInfo_s::application, ns3::SatTrafficHelper::CustomTrafficInfo_s::created, FWD_LINK, HasSinkInstalled(), m_enableDefaultStatistics, m_last_custom_application, m_satHelper, m_satStatsHelperContainer, ns3::SatStatsHelper::OUTPUT_SCALAR_FILE, ns3::SatStatsHelper::OUTPUT_SCATTER_FILE, RTN_LINK, ns3::SatTrafficHelper::CustomTrafficInfo_s::start, and ns3::SatTrafficHelper::CustomTrafficInfo_s::stop.

+ Here is the call graph for this function:

◆ AddHttpTraffic() [1/2]

void ns3::SatTrafficHelper::AddHttpTraffic ( TrafficDirection_t  direction,
NodeContainer  gwUsers,
NodeContainer  utUsers,
Time  startTime,
Time  stopTime,
Time  startDelay 
)

Add a new TCP/HTTP traffic between chosen GWs and UTs.

Parameters
directionDirection of traffic
gwUsersThe Gateway Users
utUsersThe UT Users
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user

Definition at line 935 of file satellite-traffic-helper.cc.

References FWD_LINK, m_enableDefaultStatistics, m_satStatsHelperContainer, ns3::SatStatsHelper::OUTPUT_SCALAR_FILE, ns3::SatStatsHelper::OUTPUT_SCATTER_FILE, and RTN_LINK.

Referenced by AddHttpTraffic().

+ Here is the caller graph for this function:

◆ AddHttpTraffic() [2/2]

void ns3::SatTrafficHelper::AddHttpTraffic ( TrafficDirection_t  direction,
NodeContainer  gwUsers,
NodeContainer  utUsers,
Time  startTime,
Time  stopTime,
Time  startDelay,
double  percentage 
)

Add a new TCP/HTTP traffic between chosen GWs and UTs.

Parameters
directionDirection of traffic
gwUsersThe Gateway Users
utUsersThe UT Users
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user
percentagePercentage of UT users having the traffic installed

Definition at line 1100 of file satellite-traffic-helper.cc.

References AddHttpTraffic().

+ Here is the call graph for this function:

◆ AddLoraCbrTraffic() [1/2]

void ns3::SatTrafficHelper::AddLoraCbrTraffic ( Time  interval,
uint32_t  packetSize,
NodeContainer  gwUsers,
NodeContainer  utUsers,
Time  startTime,
Time  stopTime,
Time  startDelay 
)

Add Lora CBR traffic between chosen GWs and UTs.

Parameters
intervalWait time between transmission of two packets
packetSizePacket size in bytes
gwUsersThe Gateway Users
utUsersThe UT Users
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user

Definition at line 408 of file satellite-traffic-helper.cc.

References HasSinkInstalled(), and m_satHelper.

Referenced by AddLoraCbrTraffic().

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

◆ AddLoraCbrTraffic() [2/2]

void ns3::SatTrafficHelper::AddLoraCbrTraffic ( Time  interval,
uint32_t  packetSize,
NodeContainer  gwUsers,
NodeContainer  utUsers,
Time  startTime,
Time  stopTime,
Time  startDelay,
double  percentage 
)

Add Lora CBR traffic between chosen GWs and UTs.

Parameters
intervalWait time between transmission of two packets
packetSizePacket size in bytes
gwUsersThe Gateway Users
utUsersThe UT Users
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user
percentagePercentage of UT users having the traffic installed

Definition at line 462 of file satellite-traffic-helper.cc.

References AddLoraCbrTraffic().

+ Here is the call graph for this function:

◆ AddLoraPeriodicTraffic() [1/2]

void ns3::SatTrafficHelper::AddLoraPeriodicTraffic ( Time  interval,
uint32_t  packetSize,
NodeContainer  uts,
Time  startTime,
Time  stopTime,
Time  startDelay 
)

Add Lora periodic traffic between chosen GWs and UTs.

Parameters
intervalWait time between transmission of two packets
packetSizePacket size in bytes
utsThe User Terminals
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user

Definition at line 341 of file satellite-traffic-helper.cc.

Referenced by AddLoraPeriodicTraffic().

+ Here is the caller graph for this function:

◆ AddLoraPeriodicTraffic() [2/2]

void ns3::SatTrafficHelper::AddLoraPeriodicTraffic ( Time  interval,
uint32_t  packetSize,
NodeContainer  uts,
Time  startTime,
Time  stopTime,
Time  startDelay,
double  percentage 
)

Add Lora periodic traffic between chosen GWs and UTs.

Parameters
intervalWait time between transmission of two packets
packetSizePacket size in bytes
utsThe User Terminals
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user
percentagePercentage of UT users having the traffic installed

Definition at line 382 of file satellite-traffic-helper.cc.

References AddLoraPeriodicTraffic().

+ Here is the call graph for this function:

◆ AddNrtvTraffic() [1/2]

void ns3::SatTrafficHelper::AddNrtvTraffic ( TrafficDirection_t  direction,
NodeContainer  gwUsers,
NodeContainer  utUsers,
Time  startTime,
Time  stopTime,
Time  startDelay 
)

Add a new TCP/NRTV traffic between chosen GWs and UTs.

Parameters
directionDirection of traffic
gwUsersThe Gateway Users
utUsersThe UT Users
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user

Definition at line 1125 of file satellite-traffic-helper.cc.

References FWD_LINK, m_enableDefaultStatistics, m_satStatsHelperContainer, ns3::SatStatsHelper::OUTPUT_SCALAR_FILE, ns3::SatStatsHelper::OUTPUT_SCATTER_FILE, and RTN_LINK.

Referenced by AddNrtvTraffic().

+ Here is the caller graph for this function:

◆ AddNrtvTraffic() [2/2]

void ns3::SatTrafficHelper::AddNrtvTraffic ( TrafficDirection_t  direction,
NodeContainer  gwUsers,
NodeContainer  utUsers,
Time  startTime,
Time  stopTime,
Time  startDelay,
double  percentage 
)

Add a new TCP/NRTV traffic between chosen GWs and UTs.

Parameters
directionDirection of traffic
gwUsersThe Gateway Users
utUsersThe UT Users
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user
percentagePercentage of UT users having the traffic installed

Definition at line 1272 of file satellite-traffic-helper.cc.

References AddNrtvTraffic().

+ Here is the call graph for this function:

◆ AddOnOffTraffic() [1/2]

void ns3::SatTrafficHelper::AddOnOffTraffic ( TrafficDirection_t  direction,
TransportLayerProtocol_t  protocol,
DataRate  dataRate,
uint32_t  packetSize,
NodeContainer  gwUsers,
NodeContainer  utUsers,
std::string  onTimePattern,
std::string  offTimePattern,
Time  startTime,
Time  stopTime,
Time  startDelay 
)

Add a new ONOFF traffic between chosen GWs and UTs.

Parameters
directionDirection of traffic
protocolTransport layer protocol
dataRateData rate in ON state
packetSizePacket size in bytes
gwUsersThe Gateway Users
utUsersThe UT Users
onTimePatternPattern for ON state duration
offTimePatternPattern for OFF state duration
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user

Definition at line 710 of file satellite-traffic-helper.cc.

References FWD_LINK, HasSinkInstalled(), ns3::SatOnOffHelper::Install(), m_enableDefaultStatistics, m_satHelper, m_satStatsHelperContainer, ns3::SatStatsHelper::OUTPUT_SCALAR_FILE, ns3::SatStatsHelper::OUTPUT_SCATTER_FILE, RTN_LINK, ns3::SatOnOffHelper::SetAttribute(), and TCP.

Referenced by AddOnOffTraffic().

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

◆ AddOnOffTraffic() [2/2]

void ns3::SatTrafficHelper::AddOnOffTraffic ( TrafficDirection_t  direction,
TransportLayerProtocol_t  protocol,
DataRate  dataRate,
uint32_t  packetSize,
NodeContainer  gwUsers,
NodeContainer  utUsers,
std::string  onTimePattern,
std::string  offTimePattern,
Time  startTime,
Time  stopTime,
Time  startDelay,
double  percentage 
)

Add a new ONOFF traffic between chosen GWs and UTs.

Parameters
directionDirection of traffic
protocolTransport layer protocol
dataRateData rate in ON state
packetSizePacket size in bytes
gwUsersThe Gateway Users
utUsersThe UT Users
onTimePatternPattern for ON state duration
offTimePatternPattern for OFF state duration
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user
percentagePercentage of UT users having the traffic installed

Definition at line 894 of file satellite-traffic-helper.cc.

References AddOnOffTraffic().

+ Here is the call graph for this function:

◆ AddPoissonTraffic() [1/2]

void ns3::SatTrafficHelper::AddPoissonTraffic ( TrafficDirection_t  direction,
Time  onTime,
Time  offTimeExpMean,
DataRate  rate,
uint32_t  packetSize,
NodeContainer  gwUsers,
NodeContainer  utUsers,
Time  startTime,
Time  stopTime,
Time  startDelay 
)

Add a new Poisson traffic between chosen GWs and UTs.

Parameters
directionDirection of traffic
onTimeOn time duration in seconds
offTimeExpMeanOff time mean in seconds. The off time follows an exponential law of mean offTimeExpMean
rateThe rate with the unit
packetSizePacket size in bytes
gwUsersThe Gateway Users
utUsersThe UT Users
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user

Definition at line 1297 of file satellite-traffic-helper.cc.

References FWD_LINK, HasSinkInstalled(), ns3::SatOnOffHelper::Install(), m_enableDefaultStatistics, m_satHelper, m_satStatsHelperContainer, ns3::SatStatsHelper::OUTPUT_SCALAR_FILE, ns3::SatStatsHelper::OUTPUT_SCATTER_FILE, RTN_LINK, and ns3::SatOnOffHelper::SetAttribute().

Referenced by AddPoissonTraffic().

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

◆ AddPoissonTraffic() [2/2]

void ns3::SatTrafficHelper::AddPoissonTraffic ( TrafficDirection_t  direction,
Time  onTime,
Time  offTimeExpMean,
DataRate  rate,
uint32_t  packetSize,
NodeContainer  gwUsers,
NodeContainer  utUsers,
Time  startTime,
Time  stopTime,
Time  startDelay,
double  percentage 
)

Add a new Poisson traffic between chosen GWs and UTs.

Parameters
directionDirection of traffic
onTimeOn time duration in seconds
offTimeExpMeanOff time mean in seconds. The off time follows an exponential law of mean offTimeExpMean
rateThe rate with the unit
packetSizePacket size in bytes
gwUsersThe Gateway Users
utUsersThe UT Users
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user
percentagePercentage of UT users having the traffic installed

Definition at line 1496 of file satellite-traffic-helper.cc.

References AddPoissonTraffic().

+ Here is the call graph for this function:

◆ AddVoipTraffic() [1/2]

void ns3::SatTrafficHelper::AddVoipTraffic ( TrafficDirection_t  direction,
VoipCodec_t  codec,
NodeContainer  gwUsers,
NodeContainer  utUsers,
Time  startTime,
Time  stopTime,
Time  startDelay 
)

Add a new Poisson traffic between chosen GWs and UTs.

Parameters
directionDirection of traffic
codecthe Codec used
gwUsersThe Gateway Users
utUsersThe UT Users
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user

Definition at line 1535 of file satellite-traffic-helper.cc.

References FWD_LINK, G_711_1, G_711_2, G_723_1, G_729_2, G_729_3, HasSinkInstalled(), ns3::SatOnOffHelper::Install(), m_enableDefaultStatistics, m_satHelper, m_satStatsHelperContainer, ns3::SatStatsHelper::OUTPUT_SCALAR_FILE, ns3::SatStatsHelper::OUTPUT_SCATTER_FILE, RTN_LINK, and ns3::SatOnOffHelper::SetAttribute().

Referenced by AddVoipTraffic().

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

◆ AddVoipTraffic() [2/2]

void ns3::SatTrafficHelper::AddVoipTraffic ( TrafficDirection_t  direction,
VoipCodec_t  codec,
NodeContainer  gwUsers,
NodeContainer  utUsers,
Time  startTime,
Time  stopTime,
Time  startDelay,
double  percentage 
)

Add a new Poisson traffic between chosen GWs and UTs.

Parameters
directionDirection of traffic
codecthe Codec used
gwUsersThe Gateway Users
utUsersThe UT Users
startTimeApplication Start time
stopTimeApplication stop time
startDelayapplication start delay between each user
percentagePercentage of UT users having the traffic installed

Definition at line 1798 of file satellite-traffic-helper.cc.

References AddVoipTraffic().

+ Here is the call graph for this function:

◆ ChangeCustomTraffic()

void ns3::SatTrafficHelper::ChangeCustomTraffic ( Time  delay,
std::string  interval,
uint32_t  packetSize 
)

Change the parameters of the last custom traffic created.

Parameters
delayDelay after traffic launch to apply the changes
intervalNew wait time between transmission of two packets
packetSizeNew packet size in bytes

Definition at line 2016 of file satellite-traffic-helper.cc.

References ns3::SatTrafficHelper::CustomTrafficInfo_s::application, ns3::SatTrafficHelper::CustomTrafficInfo_s::created, m_last_custom_application, ns3::SatTrafficHelper::CustomTrafficInfo_s::start, ns3::SatTrafficHelper::CustomTrafficInfo_s::stop, and UpdateAttribute().

+ Here is the call graph for this function:

◆ GetInstanceTypeId()

TypeId ns3::SatTrafficHelper::GetInstanceTypeId ( void  ) const

Get the type ID of object instance.

Returns
the TypeId of object instance

Definition at line 317 of file satellite-traffic-helper.cc.

References GetTypeId().

+ Here is the call graph for this function:

◆ GetTypeId()

TypeId ns3::SatTrafficHelper::GetTypeId ( void  )
static

Get the type ID.

Returns
the object TypeId

Definition at line 302 of file satellite-traffic-helper.cc.

References m_enableDefaultStatistics.

Referenced by GetInstanceTypeId().

+ Here is the caller graph for this function:

◆ HasSinkInstalled()

bool ns3::SatTrafficHelper::HasSinkInstalled ( Ptr< Node >  node,
uint16_t  port 
)
private

Check if node has a PacketSink installed at certain port.

Definition at line 2055 of file satellite-traffic-helper.cc.

Referenced by AddCbrTraffic(), AddCustomTraffic(), AddLoraCbrTraffic(), AddOnOffTraffic(), AddPoissonTraffic(), and AddVoipTraffic().

+ Here is the caller graph for this function:

◆ UpdateAttribute()

void ns3::SatTrafficHelper::UpdateAttribute ( Ptr< CbrApplication >  application,
std::string  interval,
uint32_t  packetSize 
)
private

Update the chosen attribute of a custom traffic.

Parameters
applicationThe CBR application to update
intervalThe new interval
packetSizethe new packet size

Definition at line 2044 of file satellite-traffic-helper.cc.

Referenced by ChangeCustomTraffic().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_enableDefaultStatistics

bool ns3::SatTrafficHelper::m_enableDefaultStatistics
private

◆ m_last_custom_application

CustomTrafficInfo_s ns3::SatTrafficHelper::m_last_custom_application
private

◆ m_satHelper

Ptr<SatHelper> ns3::SatTrafficHelper::m_satHelper
private

◆ m_satStatsHelperContainer

Ptr<SatStatsHelperContainer> ns3::SatTrafficHelper::m_satStatsHelperContainer
private

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