- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- node as a database
ns2user
Participant
Does anybody know how to make a node act as a database? As in, I want this database node to store info about other nodes so that other nodes can access this info & send each other messages based on this info
CharlesPandian
Keymaster
If you want to implement it at C++ level ns2 code, then you may use array or structure in the class file corresponding to the node
For example in “node.cc” and “node.h” (if database only). Or you may implement it in the routing agent code itself. (ex : aodv.cc and aodv.h). But, this will require recompilation of ns2.
Even you can do the same thing inside the tcl part of simulation script also. This will require any recompilation of ns2.