[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [ns] different delay at different time
sjdong wrote:
> hi all
> in emulation,I want to give different delay at different time using the
> following:
>
> $ns at $time1 "$ns simplex-link $node0 $node1 100MB $owdelay1 DropTail"
> $ns at $time2 "$ns simplex-link $node0 $node1 100MB $owdelay2 DropTail"
>
> but it's wrong
> i do not know how to correct it?
>
> thx
try something like "$ns simplex-link-op $node0 $node1 setDelay $owdelay1"
setDelay probably doesn't exist, you have to implement it, something like
SimpleLink instproc setDelay {delay} {
$self instvar delay_
$link set delay_ delay
}
in tcl/lib/ns-link.tcl and then recompile ns
Bye
Alex