- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- creating routing agent
hi,
I am trying to create my own protocol based on DVMRP. I did not get the
solution to the previous post . I am giving link for reference–>
http://projectguideline.com/modules.php?name=Forums&file=viewtopic&p=183#183
I figured it out using DDD (debugger) that I am getting the problem due
to the routing agent address which is giving me the “Segmentation fault “
I tried by adding myagent in ns-lib.tcl and ns-agent.tcl but no use!
I am getting the same segmentation fault. ( My code is in the above referred link)
I hope atleast someone may be knowing where I am doin wrong .Can anyone help me to solve my problem!!??
Rupesh
[/b]
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]