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.

set prop [new Propag<strong>at</strong>ion/FreeSpace]$<strong>ns</strong>_ node-config -propI<strong>ns</strong>tance $prop18.2 Two-ray ground reflection modelA single line-of-sight p<strong>at</strong>h between two mobile nodes is seldom the only mea<strong>ns</strong> of prop<strong>at</strong>ion. <strong>The</strong> two-ray ground reflectionmodel co<strong>ns</strong>iders both the direct p<strong>at</strong>h <strong>and</strong> a ground reflection p<strong>at</strong>h. It is shown [29] th<strong>at</strong> this model gives more accur<strong>at</strong>eprediction <strong>at</strong> a long distance than the free space model. <strong>The</strong> received power <strong>at</strong> distance d is predicted byP r (d) = P tG t G r h t 2 h r2d 4 L(18.2)where h t <strong>and</strong> h r are the heights of the tra<strong>ns</strong>mit <strong>and</strong> receive antennas respectively. Note th<strong>at</strong> the original equ<strong>at</strong>ion in [29]assumes L = 1. To be co<strong>ns</strong>istent with the free space model, L is added here.<strong>The</strong> above equ<strong>at</strong>ion shows a faster power loss than Eqn. (18.1) as distance increases. However, <strong>The</strong> two-ray model does notgive a good result for a short distance due to the oscill<strong>at</strong>ion caused by the co<strong>ns</strong>tructive <strong>and</strong> destructive combin<strong>at</strong>ion of the tworays. I<strong>ns</strong>tead, the free space model is still used when d is small.<strong>The</strong>refore, a cross-over distance d c is calcul<strong>at</strong>ed in this model. When d < d c , Eqn. (18.1) is used. When d > d c , Eqn. (18.2)is used. At the cross-over distance, Eq<strong>ns</strong>. (18.1) <strong>and</strong> (18.2) give the same result. So d c can be calcul<strong>at</strong>ed asd c = (4πh t h r )/λ (18.3)Similarly, the OTcl interface for utilizing the two-ray ground reflection model is as follows.$<strong>ns</strong>_ node-config -propType Propag<strong>at</strong>ion/TwoRayGroundAltern<strong>at</strong>ively, the user can useset prop [new Propag<strong>at</strong>ion/TwoRayGround]$<strong>ns</strong>_ node-config -propI<strong>ns</strong>tance $prop18.3 Shadowing model18.3.1 Backgroud<strong>The</strong> free space model <strong>and</strong> the two-ray model predict the received power as a deterministic function of distance. <strong>The</strong>y bothrepresent the communic<strong>at</strong>ion range as an ideal circle. In reality, the received power <strong>at</strong> certain distance is a r<strong>and</strong>om variabledue to multip<strong>at</strong>h propag<strong>at</strong>ion effects, which is also known as fading effects. In fact, the above two models predicts the meanreceived power <strong>at</strong> distance d. A more general <strong>and</strong> widely-used model is called the shadowing model [29].188

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

Saved successfully!

Ooh no, something went wrong!