[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] is it possible to dynamically modify queues' parameters?
Maybe like:
Simulator instproc get-link { node1 node2 } {
$self instvar link_
set id1 [$node1 id]
set id2 [$node2 id]
return $link_($id1:$id2)
}
Simulator instproc get-queue { node1 node2 } {
global ns
set l [$ns get-link $node1 $node2]
set q [$l queue]
return $q
}
and then
set q1 [$ns get-queue $n0 $n1]
$q1 set limit_ 100
But I haven't tried it.
[email protected] wrote:
> Hi,
> I have already send an e-mail about that, but I will try again. Maybe someone
> have an answer now.
> So my question is: does someone know if it is possible to dynamically (i.e.
> running time) modify parameters of a queue (like its length) in order to
> simulate a shared buffer space among several queues?
> Or maybe someone knows an other way to simulate shared buffers. If yes,
> please, tell me how.
>
> I would be grateful if someone could answer to me. It would really help me.
> Thank you
> Audrey