Nakagami problem

700 views
Skip to first unread message

Gabriele maggio

unread,
Jun 7, 2012, 10:58:05 AM6/7/12
to ns-3-users
hi guys,
I have to realize a comparison between simulations running under ns-3
and simulations running under ns-2 using Nakagami propagation loss
model. Looking at the code of both simulators, ns-3
NakagamiPropagationLossModel is different from ns-2 implementation and
probably for this reason I obtain different results. How can I set
propagation loss model in ns-3 so that it is equal to ns-2 Nakagami
loss model? Do I have to create a chain with
ThreeLogDistancePropagationLossModel?

Thanks, Gabriele

phuchong kheawchaoom

unread,
Jun 8, 2012, 1:54:51 AM6/8/12
to ns-3-...@googlegroups.com
Yes, you have to create a chain with ThreeLogDistancePropagationLossModel or LogDistancePropagationLossModel.
Because,  NakagamiPropagationLossModel is only fast fading which does not include distance loss for slow fading in ns-3.


Regards



--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.


Gabriele maggio

unread,
Jun 8, 2012, 6:04:52 AM6/8/12
to ns-3-users
OK perfect.. but I have another question: from ns2 Nakagami
propagation loss model I can obtain ns3 Nakagami attribute values, but
what about LogDistance (or ThreeLogDistance) attributes? Do I have to
use default values or can I obtain them from ns-2 Nakagami?

Thanks
Gabriele

phuchong kheawchaoom

unread,
Jun 8, 2012, 9:37:54 AM6/8/12
to ns-3-...@googlegroups.com
Honestly, I do not know. You have to look the detail in both ns2 and ns3 then change attribute in ns3 following ns2.

Regards

Ali R

unread,
Jan 22, 2016, 4:23:08 PM1/22/16
to ns-3-users
Hi Gabriele,

Since it is supposed to return the RxPower, I assume they've forgotten to include the Three Log Distance Path Loss part.
You can download the patch here:


-Ali

Konstantinos

unread,
Jan 23, 2016, 8:12:58 AM1/23/16
to ns-3-users
Dear both,

There is no problem with the Nakagami nor it requires any patch.

The Nakagami-m only gives you the FastFading effect which simply vary the RxPower according to a Nakagami distribution.
In order to have also the effect of distance, then you add the Three Log Distance or any other model you want.
NS-3 provides the API for that in the ChannelHelper class.

And with an example:


YansWifiChannelHelper wifiChannel;
wifiChannel
.AddPropagationLoss("ns3::LogDistancePropagationLossModel");
wifiChannel
.AddPropagationLoss("ns3::NakagamiPropagationLossModel");

and you can add any other parameters/attributes to each of the models.

Tommaso Pecorella

unread,
Jan 23, 2016, 9:35:38 AM1/23/16
to ns-3-users
I guess that the "bug" is in the documentation. It should be clear from the docs what's a fast fading (i.e., zero mean) and a distance-based model.
I'd open a specific enhancement request for this point, as it's not clear at all from the docs.

T.
Reply all
Reply to author
Forward
0 new messages