[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] RLM test script





Hi,


in test-rlm script,


#
# build a new source (by allocating a new address) and
# place it at node $nn.  start it up at random time
#
Topology instproc place_source { nn when } {
 #XXX
 global rates
 $self instvar node ns id addrs caddrs

 incr id
 set caddrs($id) [Node allocaddr]
 set addrs($id) {}
 foreach r $rates {
  lappend addrs($id) [Node allocaddr]
 }

 $ns build_source_set s$id $rates $addrs($id) 1 $node($nn) $when

 return $id
}



the call for build_source_ set    uses the constant value 1 for the
source,   what if we want to add another source, this will cause
all the sources to have the same flow id  which may cause confusion at
the receivers
Am i right ??



Thanks


Ashraf