[ns] Attaching routing agent to nodes
Erik Kline
e.a.kline at gmail.com
Sat Jun 10 18:38:03 PDT 2006
Dear NS-users,
I have created a new routing protocol that is almost completely in
C++. The routing protocol is designed for WIRED routing and has all
the basic properties (recv, command, forward_data, etc...). The
problem I'm having is trying to determine how to attach my routing
agent to my nodes. I can attach the agent using:
$node attach-agent [new Agent/Proto ...] 255
but when I build applications and agents, they do not use my routing
agent to route packets. (Probably still using default static
routing). So, I'm trying to figure out what TCL code I need to add to
make it such that my routing agent becomes the routing agent for the
nodes.
I have also tried adding TCL extensions similar to that of DV but I
continuously get errors. For example, after telling the rtObject to
add my protocol, I want to run a few protocol commands. I have set me
protocol to an object rtproto but when I run the command:
$rtproto cmd <command-name> <args>
I get an error even though the error message is unclear, something like this:
(_o46 cmd line 1)
invoked from within
"$rtproto cmd address [$node node-addr]"
even though I'm 100% sure the command I ask for is excepted in my
command function. Any help would be appreciated.
More information about the Ns-users
mailing list