|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
22 #ifndef THREE_GPP_HTTP_VARIABLES_H
23 #define THREE_GPP_HTTP_VARIABLES_H
25 #include <ns3/object.h>
26 #include <ns3/nstime.h>
27 #include <ns3/random-variable-stream.h>
a unique identifier for an interface.
void DoInitialize(void)
Initialize() implementation.
Ptr< ConstantRandomVariable > m_embeddedObjectGenerationDelayRng
Random variable for determining the delay needed to generate an embedded object (in seconds).
double m_highMtuProbability
High MTU size probability.
Ptr< ExponentialRandomVariable > m_parsingTimeRng
Random variable for determining the length of parsing time (in seconds).
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< ConstantRandomVariable > m_requestSizeRng
Random variable for determining request size (in bytes).
uint32_t m_embeddedObjectSizeMax
Upper bound parameter for m_embeddedObjectSizeRng.
Time GetReadingTime()
Draws a random length of time which is spent by a hypothetical human user (HTTP client) to read a web...
uint32_t m_mainObjectSizeMin
Lower bound parameter for m_mainObjectSizeRng;.
void SetEmbeddedObjectGenerationDelay(Time constant)
Time GetMainObjectGenerationDelay()
Returns the constant length of time needed by an HTTP server to generate a main object.
uint32_t m_numOfEmbeddedObjectsScale
Scale parameter for m_numOfEmbeddedObjectsRng.
void SetParsingTimeMean(Time mean)
void SetNumOfEmbeddedObjectsScale(uint32_t scale)
uint32_t m_lowMtu
Lower MTU size.
Ptr< ExponentialRandomVariable > m_readingTimeRng
Random variable for determining the length of reading time (in seconds).
Ptr< LogNormalRandomVariable > m_mainObjectSizeRng
Random variable for determining main object size (in bytes).
void SetMainObjectSizeMean(uint32_t mean)
void UpdateEmbeddedObjectMuAndSigma(void)
Upon and after object initialization, update random variable Mu and Sigma based on changes to attribu...
void SetEmbeddedObjectSizeMean(uint32_t mean)
ThreeGppHttpVariables()
Create a new instance with default configuration of random distributions.
void UpdateMainObjectMuAndSigma(void)
Upon and after object initialization, update random variable Mu and Sigma based on changes to attribu...
void SetNumOfEmbeddedObjectsShape(double shape)
uint32_t GetRequestSize()
Returns the constant HTTP request size in bytes.
void SetEmbeddedObjectSizeStdDev(uint32_t stdDev)
Ptr< LogNormalRandomVariable > m_embeddedObjectSizeRng
Random variable for determining embedded object size (in bytes).
uint32_t m_highMtu
Higher MTU size.
void SetMainObjectSizeStdDev(uint32_t stdDev)
A base class which provides memory management and object aggregation.
static TypeId GetTypeId()
Returns the object TypeId.
uint32_t m_embeddedObjectSizeMin
Lower bound parameter for m_embeddedObjectSizeRng.
uint32_t m_mainObjectSizeMax
Upper bound parameter for m_mainObjectSizeRng;.
Time GetParsingTime()
Draws a random length of time which simulate the small delay caused by HTTP client looking for any em...
Simulation virtual time values and global simulation resolution.
Ptr< ConstantRandomVariable > m_mainObjectGenerationDelayRng
Random variable for determining the delay needed to generate a main object (in seconds).
uint32_t m_mainObjectSizeStdDev
Standard deviation parameter for m_mainObjectSizeRng;.
Time GetEmbeddedObjectGenerationDelay()
Returns the constant length of time needed by an HTTP server to generate an embedded object.
void SetRequestSize(uint32_t constant)
Container of various random variables to assist in generating web browsing traffic pattern.
void SetNumOfEmbeddedObjectsMax(uint32_t max)
Ptr< ParetoRandomVariable > m_numOfEmbeddedObjectsRng
Random variable for determining the number of embedded objects.
uint32_t GetMainObjectSize()
Draws a random main object size (in bytes) to be sent by an HTTP server.
uint32_t m_embeddedObjectSizeStdDev
Standard deviation parameter for m_embeddedObjectSizeRng.
uint32_t m_embeddedObjectSizeMean
Mean parameter for m_embeddedObjectSizeRng.
uint32_t GetMtuSize()
Draws a random value of maximum transmission unit (MTU) size in bytes.
double max(double x, double y)
void SetReadingTimeMean(Time mean)
void SetMainObjectGenerationDelay(Time constant)
uint32_t m_mainObjectSizeMean
Mean parameter for m_mainObjectSizeRng;.
uint32_t GetNumOfEmbeddedObjects()
Draws a random integer indicating the number of embedded objects in a main object.
uint32_t GetEmbeddedObjectSize()
Draws a random embedded object size (in bytes) to be sent by an HTTP server.
int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model.
Ptr< UniformRandomVariable > m_mtuSizeRng
Random variable for determining MTU size (in bytes).