Hi Nadine, One way to reduce the number of neighbors is to reduce the average node density. For example, you have a network of 100 nodes, then you can control the number of nodes, let's say each node can have 10 neighbors or each node can have 20 neighbors. To achieve this, you can vary the grid size and random placement of nodes in the grid.
Second this is that, have you declared the node location in your tcl script or load any coordinate file for the nodes? If you won't do this, ns2 will consider that each and every node is the neighbor of each other. So, consider this also. Regards Mubashir Husain Rehmani Lip6, UPMC, Paris, France http://www-npa.lip6.fr/~rehmani/ 2009/1/29 Nadine Chen <nadine...@yahoo.fr> > > Hi all, > As you know, we can detect neighboring nodes, by sending and > receiving hello messages like what is done in AODV example.But when I did > this, I noticed that each node has a very large number of neighbors, so I > want to limit this number by reducing the neighboring radius, but I didn't > know where can I modify it? > Please , if any one has an idea to limit automatically this radius, or any > other method to reduce the number of neighbours tell me how ? > Thank you very much for your help > > > > > -- Mubashir Husain Rehmani