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

Re: Attach the same agent on multiple nodes



> From: Lloyd Wood <[email protected]>
> Date: Thu, 05 Nov 1998 11:12:05 GMT

> On Wed, 4 Nov 1998, Shuqian Yan wrote:
> 
> set rcvr [new Agent/LossMonitor]
> $ns attach-agent $n3 $rcvr
> $ns attach-agent $n4 $rcvr
> $ns attach-agent $n5 $rcvr
> 
> 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? 

It doesn't.  It is being used as a generic sink in those multicast
examples, and for ease of coding.  Fewer lines of tcl code to stare at.

Agent/Null would have been a better, more representative candidate.
In general, the standard agents are not written to be hooked up to
multiple separate nodes to do useful useful things.  However,
because agents can find the destination address of the packet and
hence the node that received this packet, it is concievable that a
single agent could do separate useful things.

... might be useful for some meta monitoring purposes ...
afterall, nothing in ns says no :-)


Kannan

--
[email protected]
http://www.isi.edu/~kannan