Re: [ns] How to change seed in NS2

2006-04-26 Thread Ghirmay Desta
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

[ns] is "address_" the routing address of a node?

2006-03-30 Thread Ghirmay Desta
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

Re: [ns] Problem running wireless script

2006-03-27 Thread Ghirmay Desta
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 \ "

[ns] changing node address

2006-03-26 Thread Ghirmay Desta
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