[ns] Token Bucket question
artamangr at swissinfo.org
artamangr at swissinfo.org
Thu Nov 4 06:06:23 PST 2004
Hi!
I am wondering, is it possible to use a single a single token bucket filter
for an aggregated stream of traffic at a particular node, for which stream
i cannot know beforehand the flows that create it?
For a single flow related to a UDP/TCP agent (let's say the name of the
agent is FlowAgent) at node n0 the relevant command to assign a TBF object
with name tbf is:
$ns attach-tbf-agent $n0 $FlowAgent $tbf
It is possible to assign the same TBF object to another flow (with agent
FlowAgentII) by using
$ns attach-tbf-agent $n0 $FlowAgent $tbf
and so on...
But what if i dont know the number of flows a priori? I checked and ns wont
accept creating the FlowAgent as an array and simply use:
$ns attach-tbf-agent $n0 $FlowAgent $tbf, to include all possible flows that
might contribute to that stream during a simulation.
Also i cannot just use:
$ns attach-tbf-agent $n0 $tbf, it asks for a specific agent to be used.
Is there any workaround for this?Am i using the wrong command?
Arta forever!
_______________________________________________________________________
Dreaming of a Swiss Account? Get it here: http://freemail.swissinfo.org
More information about the Ns-users
mailing list