[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] Wireless + Exponential/Pareto Traffic Generator doubt



 have a case statement in cnu-trace.cc for EXP traffic...

-Vikram

> Hi All,
> I am trying to simulate Exponential Traffic in
> wireless Environment. 
> The relevant code fragment is:
> 
>     set src0  [new Agent/UDP]
>     set sink0 [new Agent/UDP]
>     $ns_ attach-agent $node_(1) $src0
>     $ns_ attach-agent $node_(0) $sink0
>     $ns_ connect $src0 $sink0
> 
>     set expo [new Application/Traffic/Exponential]
>     $expo set packetSize_ 210
>     $expo set burst_time_ 500ms
>     $expo set idle_time_  500ms
>     $expo set rate_ 200k
>     $expo attach-agent $src0
> 
>     $ns_ at 1.0 "$expo start"
> 
> I am getting the following error:
> (null)- invalid packet type (exp).
> I am getting the same error with Pareto as well.
> 
> The same thing works fine if I change the agent to
> CBR...
> 
> Please tell me do I need to make some changes during
> the configuration of the ndoe itself ?
> 
> Regards,
> -Sameer.
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 
> 

-- 

Department of ECE, Rice University | 713 348 3786 (O)| 713 664 5650(H)
WWW: http://www.ece.rice.edu/~kanodia