Hi all,

I have a question regarding node placement in flat grid.

As we all know that there are many ways to declare node position in flat
grid like:

1. Using  ~ns/indep-utils/cmu-scen-gen to generate scenarios but it is
specific for mobile nodes.
2. We can declare the node position in TCL script like
   $node(0) set X 12.0
   $node(0) set Y 40.0
   $node(0) set Z 0.0
   But this is not good in case if there are many nodes like 200 to 500
nodes.
3. We can create a loop to declare the position of nodes in our TCL script
like
     #creation of topology for  nodes
     {set k 0} {$k < 10 } {incr k} {
     for {set l 0} {$l < 10} {incr l} {
        $node([expr ($k*10)+$l]) set X $k
        $node([expr ($k*10)+$l]) set Y $l
        $node([expr ($k*10)+$l]) set Z 0
    }
}

But again this will put the nodes in a fixed location on grid, we can also
put a random number but i don't think so that it is a good approach.

4. There are different topology generation available like
http://www.isi.edu/nsnam/ns/ns-topogen.html but again I am not sure that
whether they are hierarchical or flat.

My questions are:

1. Is there any way to generate the random node position (topology) of
WIRELESS STATIC NODES in a grid of let's say 1000 by 1000?
2. Once declared, how do we get those position to get the picture of Node
topology?



Thanks for all those who are giving suggestions.
Regards

-- 
Mubashir Husain Rehmani

M2R Réseaux et Télécommunications
L2S Supélec
Université de Paris Sud XI

Mobile France: 00 33 (0)6 32 00 89 35

Reply via email to