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

[ns] agent in a node



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?
where do I need to specify the port and address of the
agent? Who calls "create-aodv-agent"?

The agent part in ns-manual doesn't seem to give a
very clear instruction about what to do.

And what is more: how do I deal with the interaction
between the AODV agent and my agent? I mean, after the
AODV agent reeives RREP, how does it trigger the
action in my defined agent?

Thanks,


bo sun


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com