ns3::SatGwHelper Class Reference

Creates needed objects for GW nodes like SatGeoNetDevice objects. More...

#include "satellite-gw-helper.h"

+ Inheritance diagram for ns3::SatGwHelper:
+ Collaboration diagram for ns3::SatGwHelper:

Classes

struct  RandomAccessSettings_s
 Random access setting options. More...
 

Public Member Functions

 SatGwHelper ()
 Default constructor. More...
 
 SatGwHelper (SatTypedefs::CarrierBandwidthConverter_t carrierBandwidthConverter, uint32_t fwdLinkCarrierCount, Ptr< SatSuperframeSeq > seq, SatMac::ReadCtrlMsgCallback readCb, SatMac::ReserveCtrlMsgCallback reserveCb, SatMac::SendCtrlMsgCallback sendCb, RandomAccessSettings_s randomAccessSettings)
 Create a SatGwHelper to make life easier when creating Satellite point to point network connections. More...
 
virtual ~SatGwHelper ()
 
void EnableCreationTraces (Ptr< OutputStreamWrapper > stream, CallbackBase &cb)
 Enables creation traces to be written in given file. More...
 
Ptr< SatBbFrameConfGetBbFrameConf () const
 Get BB frame configuration. More...
 
TypeId GetInstanceTypeId (void) const
 
void Initialize (Ptr< SatLinkResultsRtn > lrRcs2, Ptr< SatLinkResultsFwd > lrFwd, SatEnums::DvbVersion_t dvbVersion, bool useScpc)
 
NetDeviceContainer InstallDvb (NodeContainer c, uint32_t gwId, uint32_t satId, uint32_t beamId, Ptr< SatChannel > fCh, Ptr< SatChannel > rCh, Ptr< SatNcc > ncc, Ptr< SatLowerLayerServiceConf > llsConf, SatEnums::RegenerationMode_t forwardLinkRegenerationMode, SatEnums::RegenerationMode_t returnLinkRegenerationMode)
 
Ptr< NetDevice > InstallDvb (Ptr< Node > n, uint32_t gwId, uint32_t satId, uint32_t beamId, Ptr< SatChannel > fCh, Ptr< SatChannel > rCh, Ptr< SatNcc > ncc, Ptr< SatLowerLayerServiceConf > llsConf, SatEnums::RegenerationMode_t forwardLinkRegenerationMode, SatEnums::RegenerationMode_t returnLinkRegenerationMode)
 
NetDeviceContainer InstallLora (NodeContainer c, uint32_t gwId, uint32_t satId, uint32_t beamId, Ptr< SatChannel > fCh, Ptr< SatChannel > rCh, Ptr< SatNcc > ncc, Ptr< SatLowerLayerServiceConf > llsConf, SatEnums::RegenerationMode_t forwardLinkRegenerationMode, SatEnums::RegenerationMode_t returnLinkRegenerationMode)
 
Ptr< NetDevice > InstallLora (Ptr< Node > n, uint32_t gwId, uint32_t satId, uint32_t beamId, Ptr< SatChannel > fCh, Ptr< SatChannel > rCh, Ptr< SatNcc > ncc, Ptr< SatLowerLayerServiceConf > llsConf, SatEnums::RegenerationMode_t forwardLinkRegenerationMode, SatEnums::RegenerationMode_t returnLinkRegenerationMode)
 
void SetChannelAttribute (std::string name, const AttributeValue &value)
 Set an attribute value to be propagated to each Channel created by the helper. More...
 
void SetDeviceAttribute (std::string name, const AttributeValue &value)
 Set an attribute value to be propagated to each NetDevice created by the helper. More...
 
void SetPhyAttribute (std::string name, const AttributeValue &value)
 Set an attribute value to be propagated to each Phy created by the helper. More...
 

Static Public Member Functions

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

Private Attributes

Ptr< SatBbFrameConfm_bbFrameConf
 
SatTypedefs::CarrierBandwidthConverter_t m_carrierBandwidthConverter
 
ObjectFactory m_channelFactory
 
TracedCallback< std::string > m_creationTrace
 Trace callback for creation traces. More...
 
double m_daConstantErrorRate
 
SatPhy::InterferenceModel m_daInterferenceModel
 
ObjectFactory m_deviceFactory
 
bool m_enableChannelEstimationError
 Enable channel estimation error modeling at forward link receiver (= UT). More...
 
SatPhy::ErrorModel m_errorModel
 
SatEnums::FwdSchedulingAlgorithm_t m_fwdSchedulingAlgorithm
 The forward link algorithm used. More...
 
Ptr< SatLinkResultsm_linkResults
 
RandomAccessSettings_s m_raSettings
 The used random access model settings. More...
 
SatMac::ReadCtrlMsgCallback m_readCtrlCb
 
SatMac::ReserveCtrlMsgCallback m_reserveCtrlCb
 
uint32_t m_rtnLinkCarrierCount
 
SatMac::SendCtrlMsgCallback m_sendCtrlCb
 
Ptr< SatSuperframeSeqm_superframeSeq
 
double m_symbolRate
 

Detailed Description

Creates needed objects for GW nodes like SatGeoNetDevice objects.

Handles needed configuration for the GW nodes.

Definition at line 50 of file satellite-gw-helper.h.

Constructor & Destructor Documentation

◆ SatGwHelper() [1/2]

ns3::SatGwHelper::SatGwHelper ( )

Default constructor.

Definition at line 138 of file satellite-gw-helper.cc.

◆ SatGwHelper() [2/2]

ns3::SatGwHelper::SatGwHelper ( SatTypedefs::CarrierBandwidthConverter_t  carrierBandwidthConverter,
uint32_t  fwdLinkCarrierCount,
Ptr< SatSuperframeSeq seq,
SatMac::ReadCtrlMsgCallback  readCb,
SatMac::ReserveCtrlMsgCallback  reserveCb,
SatMac::SendCtrlMsgCallback  sendCb,
RandomAccessSettings_s  randomAccessSettings 
)

Create a SatGwHelper to make life easier when creating Satellite point to point network connections.

Definition at line 151 of file satellite-gw-helper.cc.

References m_channelFactory, and m_deviceFactory.

◆ ~SatGwHelper()

virtual ns3::SatGwHelper::~SatGwHelper ( )
inlinevirtual

Definition at line 88 of file satellite-gw-helper.h.

Member Function Documentation

◆ EnableCreationTraces()

void ns3::SatGwHelper::EnableCreationTraces ( Ptr< OutputStreamWrapper >  stream,
CallbackBase &  cb 
)

Enables creation traces to be written in given file.

Parameters
streamstream for creation trace outputs
cbcallback to connect traces

Definition at line 697 of file satellite-gw-helper.cc.

◆ GetBbFrameConf()

Ptr< SatBbFrameConf > ns3::SatGwHelper::GetBbFrameConf ( ) const

Get BB frame configuration.

Returns
BB frame configuration create by helper.

Definition at line 224 of file satellite-gw-helper.cc.

References m_bbFrameConf.

◆ GetInstanceTypeId()

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

Definition at line 133 of file satellite-gw-helper.cc.

References GetTypeId().

+ Here is the call graph for this function:

◆ GetTypeId()

◆ Initialize()

◆ InstallDvb() [1/2]

NetDeviceContainer ns3::SatGwHelper::InstallDvb ( NodeContainer  c,
uint32_t  gwId,
uint32_t  satId,
uint32_t  beamId,
Ptr< SatChannel fCh,
Ptr< SatChannel rCh,
Ptr< SatNcc ncc,
Ptr< SatLowerLayerServiceConf llsConf,
SatEnums::RegenerationMode_t  forwardLinkRegenerationMode,
SatEnums::RegenerationMode_t  returnLinkRegenerationMode 
)
Parameters
ca set of nodes
gwIdid of the gw
satIdid of the satellite
beamIdid of the beam
fChforward channel
rChreturn channel
nccNCC (Network Control Center)
forwardLinkRegenerationModeThe regeneration mode on forward link
returnLinkRegenerationModeThe regeneration mode on return link

This method creates a ns3::SatChannel with the attributes configured by SatGwHelper::SetChannelAttribute, then, for each node in the input container, we create a ns3::SatNetDevice with the requested attributes, a queue for this ns3::SatNetDevice, and associate the resulting ns3::SatNetDevice with the ns3::Node and ns3::SatChannel.

Definition at line 256 of file satellite-gw-helper.cc.

◆ InstallDvb() [2/2]

Ptr< NetDevice > ns3::SatGwHelper::InstallDvb ( Ptr< Node >  n,
uint32_t  gwId,
uint32_t  satId,
uint32_t  beamId,
Ptr< SatChannel fCh,
Ptr< SatChannel rCh,
Ptr< SatNcc ncc,
Ptr< SatLowerLayerServiceConf llsConf,
SatEnums::RegenerationMode_t  forwardLinkRegenerationMode,
SatEnums::RegenerationMode_t  returnLinkRegenerationMode 
)
Parameters
nnode
gwIdid of the gw
satIdid of the satellite
beamIdid of the beam
fChforward channel
rChreturn channel
nccNCC (Network Control Center)
forwardLinkRegenerationModeThe regeneration mode on forward link
returnLinkRegenerationModeThe regeneration mode on return link

Saves you from having to construct a temporary NodeContainer.

Channel estimation errors

Definition at line 289 of file satellite-gw-helper.cc.

References ns3::SatEnums::CONTROL_FID, ns3::SatNcc::DoRandomAccessDynamicLoadControl(), ns3::SatEnums::DVB_GW, ns3::SatEnums::EFFECTIVE_BANDWIDTH, ns3::SatEnums::FORWARD_FEEDER_CH, ns3::SatLlc::GetSchedulingContexts(), ns3::logonCallbackHelper(), m_bbFrameConf, ns3::SatPhy::CreateParam_t::m_beamId, m_carrierBandwidthConverter, m_daConstantErrorRate, m_daInterferenceModel, ns3::SatPhy::CreateParam_t::m_device, m_deviceFactory, m_enableChannelEstimationError, m_errorModel, m_fwdSchedulingAlgorithm, m_linkResults, ns3::SatGwHelper::RandomAccessSettings_s::m_raCollisionModel, ns3::SatGwHelper::RandomAccessSettings_s::m_raConstantErrorRate, ns3::SatGwHelper::RandomAccessSettings_s::m_raInterferenceEliminationModel, ns3::SatGwHelper::RandomAccessSettings_s::m_raInterferenceModel, ns3::SatGwHelper::RandomAccessSettings_s::m_randomAccessModel, m_raSettings, m_readCtrlCb, m_reserveCtrlCb, m_rtnLinkCarrierCount, ns3::SatPhy::CreateParam_t::m_rxCh, ns3::SatPhy::CreateParam_t::m_satId, m_sendCtrlCb, ns3::SatPhy::CreateParam_t::m_standard, m_superframeSeq, ns3::SatPhy::CreateParam_t::m_txCh, ns3::SatNcc::MoveUtBetweenBeams(), ns3::SatEnums::NO_TIME_SLICING, ns3::SatGwLlc::NotifyTxOpportunity(), ns3::SatEnums::NT_GW, ns3::SatNetDevice::Receive(), ns3::SatLlc::Receive(), ns3::SatGwMac::Receive(), ns3::SatNcc::ReceiveControlBurst(), ns3::SatEnums::REGENERATION_PHY, ns3::SatNcc::RemoveUt(), ns3::SatNetDevice::SendControlMsg(), ns3::SatPhy::SendPdu(), ns3::SatAddressE2ETag::SIZE, ns3::SatConstVariables::SUPERFRAME_SEQUENCE, ns3::SatEnums::TIME_SLICING, ns3::SatEnums::TRANSPARENT, ns3::SatNcc::UtCnoUpdated(), and ns3::SatNcc::UtCrReceived().

+ Here is the call graph for this function:

◆ InstallLora() [1/2]

NetDeviceContainer ns3::SatGwHelper::InstallLora ( NodeContainer  c,
uint32_t  gwId,
uint32_t  satId,
uint32_t  beamId,
Ptr< SatChannel fCh,
Ptr< SatChannel rCh,
Ptr< SatNcc ncc,
Ptr< SatLowerLayerServiceConf llsConf,
SatEnums::RegenerationMode_t  forwardLinkRegenerationMode,
SatEnums::RegenerationMode_t  returnLinkRegenerationMode 
)
Parameters
ca set of nodes
gwIdid of the gw
satIdid of the satellite
beamIdid of the beam
fChforward channel
rChreturn channel
nccNCC (Network Control Center)
forwardLinkRegenerationModeThe regeneration mode on forward link
returnLinkRegenerationModeThe regeneration mode on return link

This method creates a ns3::SatChannel with the attributes configured by SatGwHelper::SetChannelAttribute, then, for each node in the input container, we create a ns3::SatLorawanNetDevice with the requested attributes, a queue for this ns3::SatLorawanNetDevice, and associate the resulting ns3::SatLorawanNetDevice with the ns3::Node and ns3::SatChannel.

Definition at line 523 of file satellite-gw-helper.cc.

◆ InstallLora() [2/2]

Ptr< NetDevice > ns3::SatGwHelper::InstallLora ( Ptr< Node >  n,
uint32_t  gwId,
uint32_t  satId,
uint32_t  beamId,
Ptr< SatChannel fCh,
Ptr< SatChannel rCh,
Ptr< SatNcc ncc,
Ptr< SatLowerLayerServiceConf llsConf,
SatEnums::RegenerationMode_t  forwardLinkRegenerationMode,
SatEnums::RegenerationMode_t  returnLinkRegenerationMode 
)
Parameters
nnode
gwIdid of the gw
satIdid of the satellite
beamIdid of the beam
fChforward channel
rChreturn channel
nccNCC (Network Control Center)
forwardLinkRegenerationModeThe regeneration mode on forward link
returnLinkRegenerationModeThe regeneration mode on return link

Saves you from having to construct a temporary NodeContainer.

Channel estimation errors

Definition at line 556 of file satellite-gw-helper.cc.

References ns3::SatNcc::DoRandomAccessDynamicLoadControl(), ns3::SatEnums::LORA_GW, ns3::SatPhy::CreateParam_t::m_beamId, m_carrierBandwidthConverter, m_daConstantErrorRate, m_daInterferenceModel, ns3::SatPhy::CreateParam_t::m_device, m_deviceFactory, m_enableChannelEstimationError, m_errorModel, m_linkResults, ns3::SatGwHelper::RandomAccessSettings_s::m_raCollisionModel, ns3::SatGwHelper::RandomAccessSettings_s::m_raConstantErrorRate, ns3::SatGwHelper::RandomAccessSettings_s::m_raInterferenceEliminationModel, ns3::SatGwHelper::RandomAccessSettings_s::m_raInterferenceModel, ns3::SatGwHelper::RandomAccessSettings_s::m_randomAccessModel, m_raSettings, m_rtnLinkCarrierCount, ns3::SatPhy::CreateParam_t::m_rxCh, ns3::SatPhy::CreateParam_t::m_satId, ns3::SatPhy::CreateParam_t::m_standard, m_superframeSeq, ns3::SatPhy::CreateParam_t::m_txCh, ns3::SatEnums::NT_GW, ns3::LorawanMac::Receive(), ns3::SatEnums::REGENERATION_PHY, ns3::SatLoraConf::SetConf(), ns3::SatConstVariables::SUPERFRAME_SEQUENCE, ns3::SatEnums::TRANSPARENT, and ns3::SatNcc::UtCnoUpdated().

+ Here is the call graph for this function:

◆ SetChannelAttribute()

void ns3::SatGwHelper::SetChannelAttribute ( std::string  name,
const AttributeValue &  value 
)

Set an attribute value to be propagated to each Channel created by the helper.

Parameters
namethe name of the attribute to set
valuethe value of the attribute to set

Set these attribute on each ns3::SatChannel created by SatGwHelper::Install

Definition at line 240 of file satellite-gw-helper.cc.

References m_channelFactory.

◆ SetDeviceAttribute()

void ns3::SatGwHelper::SetDeviceAttribute ( std::string  name,
const AttributeValue &  value 
)

Set an attribute value to be propagated to each NetDevice created by the helper.

Parameters
namethe name of the attribute to set
valuethe value of the attribute to set

Set these attributes on each ns3::SatNetDevice created by SatGwHelper::Install

Definition at line 232 of file satellite-gw-helper.cc.

References m_deviceFactory.

◆ SetPhyAttribute()

void ns3::SatGwHelper::SetPhyAttribute ( std::string  name,
const AttributeValue &  value 
)

Set an attribute value to be propagated to each Phy created by the helper.

Parameters
namethe name of the attribute to set
valuethe value of the attribute to set

Set these attributes on each ns3::SatNetDevice created by SatGwHelper::Install

Definition at line 248 of file satellite-gw-helper.cc.

Member Data Documentation

◆ m_bbFrameConf

Ptr<SatBbFrameConf> ns3::SatGwHelper::m_bbFrameConf
private

Definition at line 264 of file satellite-gw-helper.h.

Referenced by GetBbFrameConf(), Initialize(), and InstallDvb().

◆ m_carrierBandwidthConverter

SatTypedefs::CarrierBandwidthConverter_t ns3::SatGwHelper::m_carrierBandwidthConverter
private

Definition at line 260 of file satellite-gw-helper.h.

Referenced by Initialize(), InstallDvb(), and InstallLora().

◆ m_channelFactory

ObjectFactory ns3::SatGwHelper::m_channelFactory
private

Definition at line 271 of file satellite-gw-helper.h.

Referenced by SatGwHelper(), and SetChannelAttribute().

◆ m_creationTrace

TracedCallback<std::string> ns3::SatGwHelper::m_creationTrace
private

Trace callback for creation traces.

Definition at line 299 of file satellite-gw-helper.h.

Referenced by GetTypeId().

◆ m_daConstantErrorRate

double ns3::SatGwHelper::m_daConstantErrorRate
private

Definition at line 287 of file satellite-gw-helper.h.

Referenced by GetTypeId(), InstallDvb(), and InstallLora().

◆ m_daInterferenceModel

SatPhy::InterferenceModel ns3::SatGwHelper::m_daInterferenceModel
private

Definition at line 277 of file satellite-gw-helper.h.

Referenced by GetTypeId(), InstallDvb(), and InstallLora().

◆ m_deviceFactory

ObjectFactory ns3::SatGwHelper::m_deviceFactory
private

Definition at line 272 of file satellite-gw-helper.h.

Referenced by SatGwHelper(), InstallDvb(), InstallLora(), and SetDeviceAttribute().

◆ m_enableChannelEstimationError

bool ns3::SatGwHelper::m_enableChannelEstimationError
private

Enable channel estimation error modeling at forward link receiver (= UT).

Definition at line 307 of file satellite-gw-helper.h.

Referenced by GetTypeId(), InstallDvb(), and InstallLora().

◆ m_errorModel

SatPhy::ErrorModel ns3::SatGwHelper::m_errorModel
private

Definition at line 282 of file satellite-gw-helper.h.

Referenced by GetTypeId(), Initialize(), InstallDvb(), and InstallLora().

◆ m_fwdSchedulingAlgorithm

SatEnums::FwdSchedulingAlgorithm_t ns3::SatGwHelper::m_fwdSchedulingAlgorithm
private

The forward link algorithm used.

Definition at line 317 of file satellite-gw-helper.h.

Referenced by GetTypeId(), Initialize(), and InstallDvb().

◆ m_linkResults

Ptr<SatLinkResults> ns3::SatGwHelper::m_linkResults
private

Definition at line 294 of file satellite-gw-helper.h.

Referenced by Initialize(), InstallDvb(), and InstallLora().

◆ m_raSettings

RandomAccessSettings_s ns3::SatGwHelper::m_raSettings
private

The used random access model settings.

Definition at line 312 of file satellite-gw-helper.h.

Referenced by InstallDvb(), and InstallLora().

◆ m_readCtrlCb

SatMac::ReadCtrlMsgCallback ns3::SatGwHelper::m_readCtrlCb
private

Definition at line 267 of file satellite-gw-helper.h.

Referenced by InstallDvb().

◆ m_reserveCtrlCb

SatMac::ReserveCtrlMsgCallback ns3::SatGwHelper::m_reserveCtrlCb
private

Definition at line 268 of file satellite-gw-helper.h.

Referenced by InstallDvb().

◆ m_rtnLinkCarrierCount

uint32_t ns3::SatGwHelper::m_rtnLinkCarrierCount
private

Definition at line 261 of file satellite-gw-helper.h.

Referenced by InstallDvb(), and InstallLora().

◆ m_sendCtrlCb

SatMac::SendCtrlMsgCallback ns3::SatGwHelper::m_sendCtrlCb
private

Definition at line 269 of file satellite-gw-helper.h.

Referenced by InstallDvb().

◆ m_superframeSeq

Ptr<SatSuperframeSeq> ns3::SatGwHelper::m_superframeSeq
private

Definition at line 262 of file satellite-gw-helper.h.

Referenced by InstallDvb(), and InstallLora().

◆ m_symbolRate

double ns3::SatGwHelper::m_symbolRate
private

Definition at line 301 of file satellite-gw-helper.h.

Referenced by Initialize().


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