12.07.2015 Views

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 18Radio Propag<strong>at</strong>ion ModelsThis chapter describes the radio propag<strong>at</strong>ion models implemented in <strong>ns</strong>. <strong>The</strong>se models are used to predict the received signalpower of each packet. At the physical layer of each wireless node, there is a receiving threshold. When a packet is received,if its signal power is below the receiving threshold, it is marked as error <strong>and</strong> dropped by the MAC layer.Up to now there are three propag<strong>at</strong>ion models in <strong>ns</strong>, which are the free space model 1 , two-ray ground reflection model 2<strong>and</strong> the shadowing model 3 . <strong>The</strong>ir implement<strong>at</strong>ion can be found in ~<strong>ns</strong>/propag<strong>at</strong>ion.{cc,h}, ~<strong>ns</strong>/tworayground.{cc,h} <strong>and</strong>~<strong>ns</strong>/shadowing.{cc,h}. This document<strong>at</strong>ion reflects the APIs in <strong>ns</strong>-2.1b7.18.1 Free space model<strong>The</strong> free space propag<strong>at</strong>ion model assumes the ideal propag<strong>at</strong>ion condition th<strong>at</strong> there is only one clear line-of-sight p<strong>at</strong>hbetween the tra<strong>ns</strong>mitter <strong>and</strong> receiver. H. T. Friis presented the following equ<strong>at</strong>ion to calcul<strong>at</strong>e the received signal power infree space <strong>at</strong> distance d from the tra<strong>ns</strong>mitter [12].P r (d) = P tG t G r λ 2(4π) 2 d 2 L(18.1)where P t is the tra<strong>ns</strong>mitted signal power. G t <strong>and</strong> G r are the antenna gai<strong>ns</strong> of the tra<strong>ns</strong>mitter <strong>and</strong> the receiver respectively.L(L ≥ 1) is the system loss, <strong>and</strong> λ is the wavelength. It is common to select G t = G r = 1 <strong>and</strong> L = 1 in <strong>ns</strong> simul<strong>at</strong>io<strong>ns</strong>.<strong>The</strong> free space model basically represents the communic<strong>at</strong>ion range as a circle around the tra<strong>ns</strong>mitter. If a receiver is withinthe circle, it receives all packets. Otherwise, it loses all packets<strong>The</strong> OTcl interface for utilizing a propag<strong>at</strong>ion model is the node-config comm<strong>and</strong>. One way to use it here is$<strong>ns</strong>_ node-config -propType Propag<strong>at</strong>ion/FreeSpaceAnother way is1 Based on the code contributed to <strong>ns</strong> from the CMU Monarch project.2 Contributed to <strong>ns</strong> from the CMU Monarch project.3 Implemented in <strong>ns</strong> by Wei Ye <strong>at</strong> USC/ISI187

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!