On Mon, 2007-11-12 at 22:14 -0800, Tara Arezoumand wrote:
> Thanks a lot , 
> But 2 question :
> 1- for simulation of it, is there distance function that measures
> distance between 2 nodes in ns?
Yes, you can at least use the X_ and Y_ coordinates of the mobile nodes
to find the difference between them and calculate distance. Note that Z_
is useless, as ns simulation is only 2 dimentional. You can see how to
access these in the ns documentation. Just search in the mannual. 
> 2- which parts or files compute "throughput , packet loss and delay "
> in wireless simulations?
Throughput: u can use "loss monitor" this section
"http://www.isi.edu/nsnam/ns/tutorial/index.html"; from marc greis's
tutorial should give you a clue.
The rest, (packet loss and delay): u can at least can calculate them by
analysing the trace file using some script language like "awk, perl...".
For these, u need to understand a little bit about the trace file
pattern. 

Good luck,
Kamil H. Suleiman
http://crg.ee.uct.ac.za/~kamil/


>  
> Regards
> 
> "Kamil H. Suleiman" <[EMAIL PROTECTED]> wrote:
>         Hello Tara,
>         To the best of my knowledge, once a node is inside a hearing
>         range, we
>         don't see the difference say between 20 and 30 meters from the
>         BS.
>         Probably some contributed module might be able to simulate the
>         fading
>         effect.
>         Best,
>         Kamil
>         
>         On Mon, 2007-11-12 at 00:55 -0800, Tara Arezoumand wrote:
>         > Hi Dear All 
>         > 
>         > I simulated a wireless network , with a BS and three MS ...
>         > I want to get MS throughput changes on become near or
>         distant to BS..
>         > Is there any function in ns that has designed it ? if not
>         please advise me..
>         > 
>         > hope to any help...
>         > Thanks
>         > Tara
>         > 
>         > __________________________________________________
>         > Do You Yahoo!?
>         > Tired of spam? Yahoo! Mail has the best spam protection
>         around 
>         > http://mail.yahoo.com 
>         
> 
> 
> 
> 
> ______________________________________________________________________
> Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See
> how.

Reply via email to