- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- adding new agent
Dear all
I provide new method for computing rtt. Now I want to add new TCP Agent like vegas, reno etc to the tcp directory in ns2.27. I copy the vegas.ccp and change it’s content to my desired agent and then save it with different name. after that I add it to tcp.h, ns-compact.tcl, ns-default.tcl and Makefile.in.
After all, I configure and make the ns2.27 directory and there is no error. But when I want to use this agent in tcl program. It doesn’t know the agent and give me the error.
I will be very thankful, If anyone can help me.
Regards
A simple and crude technique 😆 of implementing any kind of new agent in ns2 is using searching for keywords in entire ns2 directory structure.
For example, if you want to implement a protocol similar to AODV, then search for suitable keyword like “aodv” in entire ns2 directory structure 💡 and find the files containing code for “AODV”. After understanding those files, then clone entire file (aodv.cc, aodv.h etc.,) and rename them according to new protocol or add suitable things in some of the files (like commonpacket.h, tracetrace.cc etc)
Once I used the same technique to clone AODV to implement a new improved version of AODV protocol (it almost consumed a week 🙄 to make the new protocol to run correctly.