Hi everyoneI have some queries about exponential and uniform random distribution in ns3 :- What does "mean value" in exponential random distribution mean? is it the same meaning as the (seed) of uniform random distribution in matlab? from my knowledge about seed, it represents a shape of distribution.
- I want to generate packets with random size range from (250-750) bytes. Can I use exponential random distribution or uniform random distribution?
- In case of using exponential random distribution, How can select the minimum range and the mean value of distribution? because I read about this distribution in ns3 and I noticed that just the upper limit can be determined.
- While in case of using uniform random distribution, the minimum and maximum range can be specified but I do not know how can specify the seed of uniform random distribution like the matlab?
Comments inline
On Friday, May 6, 2016 at 12:00:21 PM UTC+1, phdprojec...@gmail.com wrote:Hi everyoneI have some queries about exponential and uniform random distribution in ns3 :- What does "mean value" in exponential random distribution mean? is it the same meaning as the (seed) of uniform random distribution in matlab? from my knowledge about seed, it represents a shape of distribution.Mean: The mean of the values returned by this RNG stream.No, SEED is a different thing both in matlab and NS-3.- I want to generate packets with random size range from (250-750) bytes. Can I use exponential random distribution or uniform random distribution?
Comments inline
On Friday, May 6, 2016 at 12:00:21 PM UTC+1, phdprojec...@gmail.com wrote:Hi everyoneI have some queries about exponential and uniform random distribution in ns3 :- What does "mean value" in exponential random distribution mean? is it the same meaning as the (seed) of uniform random distribution in matlab? from my knowledge about seed, it represents a shape of distribution.Mean: The mean of the values returned by this RNG stream.No, SEED is a different thing both in matlab and NS-3.- I want to generate packets with random size range from (250-750) bytes. Can I use exponential random distribution or uniform random distribution?Yes, you can. The question is SHOULD you use? Using any type of random variable should be backed by a theory/experimental data, i.e. for your traffic does the packet size follow any of these two distributions?
- In case of using exponential random distribution, How can select the minimum range and the mean value of distribution? because I read about this distribution in ns3 and I noticed that just the upper limit can be determined.
Thanks for your reply..Below is my commentsRegads
On Friday, May 6, 2016 at 12:28:02 PM UTC+1, Konstantinos wrote:Comments inline
On Friday, May 6, 2016 at 12:00:21 PM UTC+1, phdprojec...@gmail.com wrote:Hi everyoneI have some queries about exponential and uniform random distribution in ns3 :- What does "mean value" in exponential random distribution mean? is it the same meaning as the (seed) of uniform random distribution in matlab? from my knowledge about seed, it represents a shape of distribution.Mean: The mean of the values returned by this RNG stream.No, SEED is a different thing both in matlab and NS-3.- I want to generate packets with random size range from (250-750) bytes. Can I use exponential random distribution or uniform random distribution?for specifying the the expected time of sending next packet from applications, I use:- some applications use Exponential Random distribution,- some applications use Pareto Random distribution.- others use constant Random distribution.now, I am thinking to use either exponential random distribution or uniform random distribution in specifying the size of generated packets. which one is better? I know the Exponential random distribution is driven from uniform random distribution.
Should I test different values of mean (Exponential Random Distribution) and seed values (Uniform Random distribution) to see the size of generated packets?
m_packetSize = (uint32_t)(x->GetValue()) ;Thanks for your reply..
Sorry for this mistake.- in case of generating fixed packet size (1500) Bytes at bits rate 3Mbits/sec. then the number of generated packets per second is fixed which is equal to (3000000/8)/1500 = 250 packets so constant random distribution with mean (0.004) is used instead of using exponential distribution as below. Right??
Here, if the exponential distribution with mean (250 or any value) could not be used because the distribution will return non periodic (different) interval for scheduling the next packet sending.Ptr<ConstantRandomVariable> x = CreateObject<ConstantRandomVariable>();x->SetAttribute("Constant", DoubleValue(0.004));value = x->GetValue(); // this use in scheduling the time of sending next packet.
-In case of generating (250) packets with different size range (1024-1500)Bytes at bits rate 3Mbits/sec, here I need two random distributions one exponential for packet size and another constant for scheduling the sending of next packet. Both distributions can be configured as below:
// For different packet sizePtr<ExponentialRandomVariable> x = CreateObject<ExponentialRandomVariable>();x->SetAttribute("Mean", DoubleValue(250));x->SetAttribute("Bound", DoubleValue(476));m_packetSize = (uint32_t)(x->GetValue()) + 1024;// For scheduling the sending of next packetPtr<ConstantRandomVariable> x = CreateObject<ConstantRandomVariable>();x->SetAttribute("Constant", DoubleValue(0.004));value = x->GetValue();is that correct?? what about the setting the values of mean?