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

Re: Attach the same agent on multiple nodes



On Wed, 4 Nov 1998, Shuqian Yan wrote:

> In the ../tcl/ex/newmcast/mcast2.tcl example, the rcvr[new
> Agent/LossMonitor] is attached to mutliple nodes at the same time (n3, n4,
> and n5), how does a single agent support multiple nodes? Can anyone give a
> explaination on this?

[..]

set rcvr [new Agent/LossMonitor]
$ns attach-agent $n3 $rcvr
$ns attach-agent $n4 $rcvr
$ns attach-agent $n5 $rcvr
 
$ns at 0.2 "$n3 join-group $rcvr 0x8002"
$ns at 0.4 "$n4 join-group $rcvr 0x8002"
$ns at 0.6 "$n3 leave-group $rcvr 0x8002"
$ns at 0.7 "$n5 join-group $rcvr 0x8002"
$ns at 0.8 "$n3 join-group $rcvr 0x8002"

[..]

It _does_ look extremely odd, but at least it's only a LossMonitor,
not a traffic source.  Still, how does it monitor multiple nodes at
once? 

Is this sort of thing safe practice? What are the pros/cons
(memory saving)? Which agent types can be safely used for this?

thanks,

L.

<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>