More and more about NS-2

To set different initial energy to every node

# set initial energy for first node
$ns node-config -initialEnergy 50
set node_(0) [$ns node]

# set initial energy for second node
$ns node-config -initialEnergy 100
set node_(1) [$ns node]

# set initial energy for third node
$ns node-config -initialEnergy 70
set node_(2) [$ns node]

and similarly for more nodes...

1 comments:

hi my dear friend
i have many question in ns.


1) how i can simulate a webserver (how code or command or class & objects?)

2) how i can install gnuplot?
- how i can show the output analyze file, in gnuplot? (how code or command?)

3) if i use SCTP Protocol&Agent,how should i do? (how code or command?)


very thanks...
please help me
helot_of_god@yahoo.com

Post a Comment