[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Link Cost
On Sat, 20 Feb 1999, Wee Ching Wi wrote:
> Does anyone know how to change the link cost for any pair of nodes. I know
> there is an instproc cost{ } but not too sure how to use it.
[$ns link $n($node2) $n($node1)] cost $thislinkcost
AFAIK it only works at startup; I haven't been able to change this
successfully dynamically. Anyone?
In November 1998 Kannan wrote:
| You can try invoking "$n0 intf-changed; $n3 intf-changed" after
| changing the link cost. However, since I don't recall ever
| explicitly taking link cost changes into account, it may or may not
| work.
[..]
| Again, setting costs as a function of the link delay definitely
| works (barring unforeseen bugs) when the costs are configured
| at startup; whether it works when the costs are changed during
| simulation execution is a question.
L.
<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>