-1

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.

4

1 回答 1

0

为了模拟节点的能量,示例tcl/ex/wireless-newnode-energy.tcl

此外,要查看在模拟期间更改节点能量的可用命令,请参见mac/wireless-phy.cc方法中的源文件int WirelessPhy::command(int argc, const char*const* argv)

要在 ns2 中实现自己的路由协议,请阅读这篇文章

我没有完全理解关于树结构和偏转的部分。

于 2013-02-27T10:50:07.123 回答