Viewing 0 reply threads
You must be logged in to reply to this topic.
As far as my understanding, the following lines Will not make the agent to behave as a routing agent. I hope still the default routing protocol DV will take care of routing.
set a0 [new Agent/MyAgentOtcl]
$ns attach-agent $n0 $a0
set a1 [new Agent/MyAgentOtcl]
$ns attach-agent $n1 $a1
So while you are sending something via your agent, then the default routing agent will only receive the packet and try to forward it. But while receiving this new packet type, it will not find the port/slot for dispatching the paket. So it can not forward this packet and will end up with the error
Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl)
It means that there should be a handler for your packet.
Generally while writing a new routing protocol (MANET) , there may be some necessary modifications required in some files like tcl/lib/ns-lib.tcl and some files under /common directory.
See the following link for installing a MANET routing agent called NOAH
http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/
Kindly post your reply if I am wrong or while you find a solution.
[/code]
You must be logged in to reply to this topic.
Discuss Through WhatsApp