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

[ns] Traffic generator - pareto /exponential



Hello 
Whenever I use the traffic generators pareto and
exponential, i get a message (null)- invalid packet
type (pareto/exponential    respectively). Do i have
to define the traffic generator. Find below what I
have been inserting used in a wireless environment.

set tcp(0) [new Agent/TCP/Reno]
$ns_ attach-agent $W(1) $sink
$ns_ attach-agent $node_(0) $tcp(0)
$ns_ connect $tcp(0) $sink
set p [new Application/Traffic/Pareto]
$p set packetsize_ 512
$p  set burst_time_ 500ms
$p  set idle_time_ 500ms
$p set rate_ 2m
$p set shape_ 1.5
$p attach-agent $tcp(0)
$ns_ at 0.0 "$p start"




____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie