Discussion:
Loss model in "he-wifi-network.cc"
Sanjay
2018-10-28 07:46:51 UTC
Permalink
Dear All,

Trying to add Loss model "NakagamiPropagationLossModel" and
"RandomPropagationLoss Model", in the he-wifi-network.cc, please find the
attachment of the code.

The throughput its is generating is as below, some of the values of the
throughput in the Loss model is higher than the without loss model.

So, I am not sure whether I am correctly using the loss model, as per my
understanding throughput decreases as the loss model is introduced (Kindly
correct me if my inference is wrong) .

Please help and guide me.


MCS value Channel width GI Throughput without loss model
Nakagami loss model Random Loss model
0 20 MHz 3200 ns 6.62282 Mbit/s 6.62636 Mbit/s 6.62753 Mbit/s
0 20 MHz 1600 ns 7.31996 Mbit/s 7.32585 Mbit/s 7.32467 Mbit/s
0 20 MHz 800 ns 7.72859 Mbit/s 7.72977 Mbit/s 7.7333 Mbit/s
0 40 MHz 3200 ns 13.2445 Mbit/s 13.2468 Mbit/s 13.2551 Mbit/s
0 40 MHz 1600 ns 14.7471 Mbit/s 14.7424 Mbit/s 14.74 Mbit/s
0 40 MHz 800 ns 15.5773 Mbit/s 15.569 Mbit/s 15.5632 Mbit/s
0 80 MHz 3200 ns 27.7984 Mbit/s 27.7949 Mbit/s 27.7914 Mbit/s
0 80 MHz 1600 ns 30.8543 Mbit/s 30.8578 Mbit/s 30.8449 Mbit/s
0 80 MHz 800 ns 32.6101 Mbit/s 32.616 Mbit/s 32.6242 Mbit/s
0 160 MHz 3200 ns 55.558 Mbit/s 55.5662 Mbit/s 55.5969 Mbit/s
0 160 MHz 1600 ns 61.698 Mbit/s 61.7215 Mbit/s 61.6992 Mbit/s
0 160 MHz 800 ns 65.4216 Mbit/s 65.4463 Mbit/s 65.4475 Mbit/s
1 20 MHz 3200 ns 13.3069 Mbit/s 13.3128 Mbit/s 13.3104 Mbit/s
1 20 MHz 1600 ns 14.813 Mbit/s 14.8107 Mbit/s 14.8083 Mbit/s
1 20 MHz 800 ns 15.6421 Mbit/s 15.6479 Mbit/s 15.6397 Mbit/s
1 40 MHz 3200 ns 26.6244 Mbit/s 26.6232 Mbit/s 26.6079 Mbit/s
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Nina
2018-11-22 10:55:15 UTC
Permalink
Hello Sanjay

I am new to ns-3 but have worked with this example as well. I think this
example, as it is, can not show any significant change when introducing
additional PropagationLossModel (I say additional because there is the
default LogDistancePropagationModel) because of the simulation conditions.
Specifically, as for Nakagami loss model - it accounts for signal strength
variations due to multipath fading. Only multipath fading. Since this
example does not have any obstacles, there is no multipath fading. I don't
know how RandomPropagationLoss model calculates loss (how the additional
random loss is added to default loss model) but again - I think because of
the simplicity of the example and small distance you will not see any
change. Try putting your nodes in some surrounding, like a building. And
always choose PropagationLossModel according to simulation conditions (you
can find the description in Model Libraries - Propagation, Wifi, Buildings
Module.

Regarding your note that throughput is 'higher than without loss model' - I
think this is just the randomness of simulation. Like, each iteration will
give slightly different results, I don't think this is due to loss model.

Again, I am new and this just my observation from what I have read and
learned so far.

Kind regards
Nina
Post by Sanjay
Dear All,
Trying to add Loss model "NakagamiPropagationLossModel" and
"RandomPropagationLoss Model", in the he-wifi-network.cc, please find the
attachment of the code.
The throughput its is generating is as below, some of the values of the
throughput in the Loss model is higher than the without loss model.
So, I am not sure whether I am correctly using the loss model, as per my
understanding throughput decreases as the loss model is introduced (Kindly
correct me if my inference is wrong) .
Please help and guide me.
MCS value Channel width GI Throughput without loss model
Nakagami loss model Random Loss model
0 20 MHz 3200 ns 6.62282 Mbit/s 6.62636 Mbit/s 6.62753 Mbit/s
0 20 MHz 1600 ns 7.31996 Mbit/s 7.32585 Mbit/s 7.32467 Mbit/s
0 20 MHz 800 ns 7.72859 Mbit/s 7.72977 Mbit/s 7.7333 Mbit/s
0 40 MHz 3200 ns 13.2445 Mbit/s 13.2468 Mbit/s 13.2551 Mbit/s
0 40 MHz 1600 ns 14.7471 Mbit/s 14.7424 Mbit/s 14.74 Mbit/s
0 40 MHz 800 ns 15.5773 Mbit/s 15.569 Mbit/s 15.5632 Mbit/s
0 80 MHz 3200 ns 27.7984 Mbit/s 27.7949 Mbit/s 27.7914 Mbit/s
0 80 MHz 1600 ns 30.8543 Mbit/s 30.8578 Mbit/s 30.8449 Mbit/s
0 80 MHz 800 ns 32.6101 Mbit/s 32.616 Mbit/s 32.6242 Mbit/s
0 160 MHz 3200 ns 55.558 Mbit/s 55.5662 Mbit/s 55.5969 Mbit/s
0 160 MHz 1600 ns 61.698 Mbit/s 61.7215 Mbit/s 61.6992 Mbit/s
0 160 MHz 800 ns 65.4216 Mbit/s 65.4463 Mbit/s 65.4475 Mbit/s
1 20 MHz 3200 ns 13.3069 Mbit/s 13.3128 Mbit/s 13.3104 Mbit/s
1 20 MHz 1600 ns 14.813 Mbit/s 14.8107 Mbit/s 14.8083 Mbit/s
1 20 MHz 800 ns 15.6421 Mbit/s 15.6479 Mbit/s 15.6397 Mbit/s
1 40 MHz 3200 ns 26.6244 Mbit/s 26.6232 Mbit/s 26.6079 Mbit/s
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Loading...