[ns] how to get link utilization info
waqar haq
warint06 at gmail.com
Tue Feb 23 11:29:50 PST 2010
hi to all
i have implented a routing algo and i want to get information about how much
the link is utilized
and further more
can anyone tell me how
an you tell me how to get bandwith of a link
i tried the following scheme but its not working
set ns_ [Simulator instance]
set link_ [$ns_ link $node $nbr]
set bw [$link_ bw?]
puts "bandwidh $bw"
and in ns-link i wrote a proc
Link instproc bw? {} {
$self instvar bandwidth_
$link_ set b $bandwidth_
return $b
}
but its not working
More information about the Ns-users
mailing list