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

Reply via email to