From: [email protected]
To: [email protected]
Subject: [ns] How to modify the expoo.cc to make packet size in exponential
distribution
Date: Mon, 7 Apr 2014 18:17:28 +0000
Dear users,
I have some problem about getting exponential distribution in packet size and
the packet inter-arrival time
when I modified the expo.cc , I add the ExponentialRandomVariable
but I have no idea where I can make the packetsize and inter-arrival time
become to exponential distribution
Here is my code
class EXPOO_Traffic : public TrafficGenerator
{...protected:ExponentialRandomVariable burstlen_;ExponentialRandomVariable
Offtime_;
//following is my modified partExponentialRandomVariable
expSize_;ExponentialRandomVariable arrivalTime_;...}
I actually dont know where is the exponentialRandomVariable burtlen_ and
Offtime_ work in the orign code(expoo.cc)
I think if I can find that part of code , I can use the same method to make
packet size and inter-arrival time to be exponential distributed
Can someone give me some suggestion?
thanks alot!