FriisPropagationLossModel

213 views
Skip to first unread message

Leticia

unread,
Sep 10, 2012, 7:02:21 PM9/10/12
to ns-3-...@googlegroups.com
Dear all:

I have an important doubt, Im studying the LteHelper and Propagation-loss-model code for Friis Propagation and I saw that this model dont use the frequency of uplink, I dont know if is working properly cause lambda is not set according the frequency of downlink and for uplink and this will affect the performance of the network.
I must have a pathloss for uplink and another one for downlink and for this it must use two different frequencies and indeed two different lambda values.
I will appreciate any help on this matter.

Regards

Fadhil Firyaguna

unread,
Sep 12, 2012, 4:55:33 PM9/12/12
to ns-3-...@googlegroups.com
I would try to instance two different channel helpers in the script, and set up the lambda value for each channel separately. Just a vague idea...

Marco Miozzo

unread,
Sep 13, 2012, 6:07:28 AM9/13/12
to ns-3-...@googlegroups.com
Hi all,

the frequency in LTE module is set according the EARFCN parameter both
for downlink and uplink. More info at the following link:
http://lena.cttc.es/manual/lte-user.html#configuration-of-lte-model-parameters

Regards,
marco.
> --
> You received this message because you are subscribed to the Google Groups
> "ns-3-users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/ns-3-users/-/SP3EW84-1l8J.
>
> 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.

Nicola Baldo

unread,
Sep 13, 2012, 7:04:33 AM9/13/12
to ns-3-...@googlegroups.com
I confirm what reported by Marco. However, this works only for propagation models that support the "Frequency" attribute, which Friis does not support, as reported in bug 1421:
https://www.nsnam.org/bugzilla/show_bug.cgi?id=1421

Needless to say, if someone could fix the problem by preparing a patch for bug 1421, it would be very much appreciated.

Regards,

Nicola

Leticia

unread,
Sep 13, 2012, 4:45:18 PM9/13/12
to ns-3-...@googlegroups.com
Dear all, thank you very much for your kind response!

Nicola: Due to I need to use Friis propagation model I  tried to fix this bug in a very quick way by changing the lte-helper as following:
 (I am not sure if this is enough to set the the lambda value for both channel, uplink and downlink but I think it can work for this propagation model)
Thank you in advanced for your help!
Leticia

See in red the changes!

  NS_LOG_LOGIC ("set the propagation model frequencies");
  double dlFreq = LteSpectrumValueHelper::GetCarrierFrequency (dev->GetDlEarfcn ());
  NS_LOG_LOGIC ("DL freq: " << dlFreq);
  bool dlFreqOk = m_downlinkPathlossModel->SetAttributeFailSafe ("Frequency", DoubleValue (dlFreq));
  if (!dlFreqOk)
    {
      m_downlinkPathlossModel->SetAttribute ("Lambda", DoubleValue (300000000/dlFreq));
      NS_LOG_WARN ("DL propagation model does not have a Frequency attribute");
    }
  double ulFreq = LteSpectrumValueHelper::GetCarrierFrequency (dev->GetUlEarfcn ());
  NS_LOG_LOGIC ("UL freq: " << ulFreq);
  bool ulFreqOk = m_uplinkPathlossModel->SetAttributeFailSafe ("Frequency", DoubleValue (ulFreq));
  if (!ulFreqOk)
    {
      m_uplinkPathlossModel->SetAttribute ("Lambda", DoubleValue (300000000/ulFreq));
      NS_LOG_WARN ("UL propagation model does not have a Frequency attribute");
Reply all
Reply to author
Forward
0 new messages