[ns] radius and node position

Sutep Tongngam tongsut at iit.edu
Tue May 18 16:11:19 PDT 2004


distance should be calculated as (x1-x2)^2 + (y1-y2)^2 ,so called Euclidian.
sutep.

----- Original Message -----
From: Xavier Marchador <XAVIERMM3 at telefonica.net>
Date: Tuesday, May 18, 2004 2:47 pm
Subject: [ns] radius and node position

> 
> Hello ,
> 
> I'm trying to set an ad-hoc aodv wireless environment with only 4 
> nodes. The grid topology is 500 x 700 and the nodes are located 
> like this:
> 
>                   node 2              node 3             
>                   (10,20,0)            (15,20,0)
> 
> node 1                                                            
> node 4
> (5,5,0)                                                            
> (20,5,0)
> 
> all nodes radius is set to 40 but I can't get a direct path from 
> node 1 to 4. The packet is sent to node 2 and then to node 3 until 
> it gets node 4, but if set the radius to 500 it arrives directly 
> to node 4. Why does it happen? if the distance from node 1 to 4 is 
> x=20-5=15, so with a radius of 40 it should be able to get to 
> node4, shouldn't it? Does it have anything to do with the topo size?
> 
> Thank you for your help
> 
> Xavi
> 



More information about the Ns-users mailing list