A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
anonymous_namespace{tgax-video-traffic-test-suite.cc} Namespace Reference

Functions

uint32_t ConvertContextToNodeId (const std::string &context)
 Get the node ID from the context string.
uint32_t GetAverageframeSize (double frameSizeBytesScale, double frameSizeBytesShape)
 Get the expected average frame size.
bool IsMulticast (TgaxVideoTraffic::TrafficModelClassIdentifier model)
 Get whether a model applies to multicast video traffic.
std::string ModelToString (TgaxVideoTraffic::TrafficModelClassIdentifier model)
 Get the string from the traffic model enum.

Variables

const auto simulationTime {Seconds(20)}
 The simulation time.

Function Documentation

◆ ConvertContextToNodeId()

uint32_t anonymous_namespace{tgax-video-traffic-test-suite.cc}::ConvertContextToNodeId ( const std::string & context)

Get the node ID from the context string.

Parameters
contextthe context string
Returns
the corresponding node ID

Definition at line 53 of file tgax-video-traffic-test-suite.cc.

Referenced by TgaxVideoTrafficTestCase::ReceiveRx().

Here is the caller graph for this function:

◆ GetAverageframeSize()

uint32_t anonymous_namespace{tgax-video-traffic-test-suite.cc}::GetAverageframeSize ( double frameSizeBytesScale,
double frameSizeBytesShape )

Get the expected average frame size.

Parameters
frameSizeBytesScalethe scale of the Weibull distribution used to generate random frame sizes
frameSizeBytesShapethe shape of the Weibull distribution used to generate random frame sizes
Returns
the expected average frame size

Definition at line 104 of file tgax-video-traffic-test-suite.cc.

References ns3::CreateObject(), and ns3::WeibullRandomVariable::GetMean().

Referenced by TgaxVideoTrafficTestCase::DoRun().

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

◆ IsMulticast()

bool anonymous_namespace{tgax-video-traffic-test-suite.cc}::IsMulticast ( TgaxVideoTraffic::TrafficModelClassIdentifier model)

Get whether a model applies to multicast video traffic.

Parameters
modelthe traffic model
Returns
true if the model is for multicast, false otherwise

Definition at line 118 of file tgax-video-traffic-test-suite.cc.

References ns3::TgaxVideoTraffic::MULTICAST_VIDEO_1, and ns3::TgaxVideoTraffic::MULTICAST_VIDEO_2.

Referenced by TgaxVideoTrafficTestCase::TgaxVideoTrafficTestCase(), and TgaxVideoTrafficTestCase::DoSetup().

Here is the caller graph for this function:

◆ ModelToString()

std::string anonymous_namespace{tgax-video-traffic-test-suite.cc}::ModelToString ( TgaxVideoTraffic::TrafficModelClassIdentifier model)

Get the string from the traffic model enum.

Parameters
modelthe traffic model enum
Returns
the corresponding string

Definition at line 67 of file tgax-video-traffic-test-suite.cc.

References ns3::TgaxVideoTraffic::BUFFERED_VIDEO_1, ns3::TgaxVideoTraffic::BUFFERED_VIDEO_2, ns3::TgaxVideoTraffic::BUFFERED_VIDEO_3, ns3::TgaxVideoTraffic::BUFFERED_VIDEO_4, ns3::TgaxVideoTraffic::BUFFERED_VIDEO_5, ns3::TgaxVideoTraffic::BUFFERED_VIDEO_6, ns3::TgaxVideoTraffic::CUSTOM, ns3::TgaxVideoTraffic::MULTICAST_VIDEO_1, and ns3::TgaxVideoTraffic::MULTICAST_VIDEO_2.

Referenced by TgaxVideoTrafficTestCase::TgaxVideoTrafficTestCase().

Here is the caller graph for this function:

Variable Documentation

◆ simulationTime

const auto anonymous_namespace{tgax-video-traffic-test-suite.cc}::simulationTime {Seconds(20)}

The simulation time.

Definition at line 124 of file tgax-video-traffic-test-suite.cc.

Referenced by TgaxVideoTrafficTestCase::DoRun(), and TgaxVideoTrafficTestCase::DoSetup().