Hi maline nadine,
I have had same problem too. I solved it this way. For
every iteration, I seeded the defaultRNG with the
random number generated in previous iteration. I hope
this will help. Here is the implementation.
#for generating random integer b/n min and max
set nextseed 0.0
p
I have added the following code in the OTcl
implementation of Node.
Node instproc set-address addr {
$self instvar address_
set address_ $addr
}
During simulation I am using it to change the address
of a node. Eventhough the node address is getting
changed to new value, the nod
Hi Alexandra,
It seems that ns is trying to execute "-topoInstance"
as a command while it is actually one of the node
configuration parameters. I want you to look carefully
how you are loading the node configuration parameters.
Most likely the end of the line prior to the
"-topoInstance $topo \ "
I am working on address autocofiguration for MANETs. I
have created an agent. During simulation new nodes are
able to send ADDRESS_REQUEST messages and receive
ADDRESS_OFFER messages. But once after they change
their address, they are not able to receive packets
destined to their new address. How