how to construct tree in ns2 and how to write routing protocol in ns2? clustered nodes to be arranged in tree structure and code for deflection routing in ns2. I also need to know how to increase the energy of a node and how to make a node inactive.
Asked
Active
Viewed 1,176 times
-1
-
Please read [this article](http://mattgemmell.com/2008/12/08/what-have-you-tried/) so that your future questions better fit Stack Overflow – user000001 Feb 27 '13 at 10:55
1 Answers
0
For simulating the energy of nodes the example in tcl/ex/wireless-newnode-energy.tcl
Also, to see the available command for changing the energy of a node during simulation, see see source files in mac/wireless-phy.cc
, method int WirelessPhy::command(int argc, const char*const* argv)
To implement your own routing protocol in ns2, read this article
I did not fully understand the part about the tree structure and the deflection.

user000001
- 32,226
- 12
- 81
- 108