[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: link BW
Look at the tcl/lib/ns-link.tcl: SimpleLink::init.
SimpleLink has an instvar link_, which in its turn has instvars delay_
and bandwidth_.
So, if $sl is your SimpleLink (by default simplex link is a simple
link), then
[$sl set link_] set delay_
should do the trick.
Shuqian Yan <[email protected]> writes:
> Hello,
>
> Happy New Year to all!
>
> I have a question about link BW. If I configure a simplex link with
> certain bandwidth_ and delay_, and I want to access the BW and delay state
> variables somewhere in the middle of my tcl file, what is the right tcl
> syntax to do this? Is there any method for this? When I read the ns
> manual, there is a method to configure link cost($link cost cost-value)
> and return the cost of the link ($link cost?) but what about access to the
> link BW and delay state variables?
>
> tks,
>
> shuqian