hey hi to all

can 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

thnks in advance

Reply via email to