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

Re: [ns] get the bandwidth of link



There are some code in ~ns/tcl/lib/ns-link.tcl, which may be helpful:

# Debo
Link instproc id {}     { $self set id_ }
Link instproc setid { x } { $self set id_ $x }
Link instproc bw {} { $self set bandwidth_ }

I guess you can try something like:
$your_link bw 

Hope it helps,
-chen

On Mon, 7 Jan 2002, yenhung hu wrote:

> Dear NS Users:
> Does anyone now how to return the bandwidth of a link in tcl script? Thanks, 
> I appreciate.
> Yenhung Hu
> 

-- 
Xuan Chen
USC/ISI