[ns] agent in a node

Ya Xu yaxu@ISI.EDU
Sat, 13 Oct 2001 11:18:58 -0700 (PDT)



On Fri, 12 Oct 2001, boo sunn wrote:

> hi:
> 
> I am trying to add an agent to a node, the function of
> the agent is to do something when the AODV agent of
> the node receives RREP. 
> 
> I looked at the AODV agent:
> 
> Simulator instproc create-aodv-agent { node } {
>         #  Create AODV routing agent
>         set ragent [new Agent/AODV [$node id]]
>         $self at 0.0 "$ragent start"     ;# start
> BEACON/HELLO Messages
>         $node set ragent_ $ragent
>         return $ragent
> }
> 
> what is the initialization procedure of AODV agent?

Check the C++ part of AODV agent

> where do I need to specify the port and address of the
> agent? Who calls "create-aodv-agent"?

the port is fixed. Check the ns doc.

check ns-lib.tcl to find who calls create-aodv-agent.


-Ya