Scenario LTE and WiFi

279 views
Skip to first unread message

Nakai Lucini

unread,
Jul 17, 2014, 12:03:35 AM7/17/14
to ns-3-...@googlegroups.com
Hi all,

I'm running a scenario with 4 nodes that have both the LTE and the WiFi interfaces. I would like to understand why when I start the applications on the WiFi interfaces (2 pairs communicating via WiFi ad-hoc) sharing the same channel, I get a strange value of throughput, because it seems that one of the two applications after some seconds stop to send data. Here is the Flowmonitor output:
********************** Flow Monitor **********************
Flow ID: 1 Src Addr 12.1.1.2 Dst Addr 12.1.1.1
Tx Packets = 40001
Rx Packets = 39142
Throughput: 59.807 Mbps
Flow ID: 2 Src Addr 15.1.1.2 Dst Addr 15.1.1.1
Tx Packets = 30001
Rx Packets = 3690
Throughput: 20.9007 Mbps
**********************************************************

We can see that the receiver of the second application receive only a few packets. The two application have the same datarate. There is also another problem with the application, because if I change the datarate or the start and stop of the applications when i run the code I get the (agreement.m_inactivityEvent.IsRunning ()) error. I know that there is a bug about that in Bugzilla (I think the 388), but in this case I'm not starting the 2 applications at the same time.

Does anyone know what I'm doing wrong please? Here attached you can find the simple code.

Thank you,


Nakai
wifi+lte.cc

Tommaso Pecorella

unread,
Jul 17, 2014, 5:23:25 AM7/17/14
to ns-3-...@googlegroups.com
Hi,

have you checked your assumptions ?
I don't see in the code any check that the applications are not sending or receiving data anymore. The output may as well comes from a high packet error rate, or a congestion.
Try using WIreshark and looking at the packet drops. It is all described more than enough in the forum and in the manual.

About the second thing ou mention (the possible bug), please post a script outlining the bug. We need to reproduce it to fix it.

Thanks,

T.

Nakai Lucini

unread,
Jul 17, 2014, 5:38:40 AM7/17/14
to ns-3-...@googlegroups.com
Hi Tommaso, 

Thank you for the answer. Yes I checked this and I can see that after some seconds the node receiving from the second applications stops receiving data. The strange thing is that if I run the exactly same script but without the double interface (LTE + WiFi) it works fine and I don't have any problem. Sure, I will post a script that reproduce this problem.


Nakai

Tommaso Pecorella

unread,
Jul 17, 2014, 8:33:51 AM7/17/14
to ns-3-...@googlegroups.com, Daniel Lertpratchya
Hi,

it seems, indeed, a bug. I'd ask Daniel to take a look at it.
By the way, LTE doesn't do anything in this simulation. I tried to disable it and the bug is still there.

Cheers,

T.

PS: please upgrade your ns-3 to the latest version. I spent 1h trying to figure out why no packets was received, and I discovered you was using a forbidden OfdmRate.
OfdmRate135MbpsBW40MHz can not be used with AdHoc mode.

Nakai Lucini

unread,
Jul 17, 2014, 11:53:30 AM7/17/14
to ns-3-...@googlegroups.com
Hi,

Thank you for the informations and I'm sorry for the wasted time.
- Upgrading to the 3.20 will help me with the problem of the inactivityEvent or with the OfdmRate for the Ad Hoc mode?
- Which are also the available OfdmRate for the Ad Hoc mode, because I'm trying some different values but I always get the problem of inactivityEvent.
- Here I attached you the same code, without the lte interfaces on the nodes, and the results is really different and I get what I think I should get.

********************** Flow Monitor **********************
Flow ID: 1 Src Addr 10.1.3.2 Dst Addr 10.1.3.1
Tx Packets = 220012
Rx Packets = 22235
Throughput: 61.1106 Mbps
Flow ID: 2 Src Addr 20.1.3.2 Dst Addr 20.1.3.1
Tx Packets = 180010
Rx Packets = 14955
Throughput: 49.4105 Mbps
**********************************************************


Thank you for the help,


Nakai
ht-wifi-network.cc

Nakai Lucini

unread,
Jul 17, 2014, 1:24:05 PM7/17/14
to ns-3-...@googlegroups.com
Hi Tommaso,

It seems that the problem is in the 11n standard, because running the same script (wifi+lte.cc) using the 11g standard it works fine. 


Nakai

Tommaso Pecorella

unread,
Jul 17, 2014, 1:36:36 PM7/17/14
to ns-3-...@googlegroups.com
Hi,

upgrading to ns-3.20 will "fix" the OfdmRate for the Ad Hoc mode. It will not help with InactivityEvent.
I am not sure what are the available OfdmRate for the Ad Hoc mode. Check the source code. 
Some are listed in examples/wireless/wifi-adhoc.cc 

About the bug, cutting off the LTE interfaces will just make it disappear. So for using 802.11g. No matter if it hides, the bug is there and have to be killed.
In the meantime, you can use 802.11g if this is ok for you.

Cheers,

T.

Daniel Lertpratchya

unread,
Jul 17, 2014, 6:11:34 PM7/17/14
to Tommaso Pecorella, ns-3-...@googlegroups.com
Hi,

I may have missed this conversation earlier so I have no context of what's going on.  I will be happy to take a look at it.

-Daniel

Daniel

unread,
Jul 20, 2014, 1:35:01 PM7/20/14
to ns-3-...@googlegroups.com, tomm...@gmail.com
Hi,

I got the following error when I tried to run wifi+lte.cc

../scratch/wifi+lte.cc:15:10: fatal error: 'ns3/lenaWifi1.h' file not found
#include "ns3/lenaWifi1.h"

On Thursday, July 17, 2014 3:11:34 PM UTC-7, Daniel wrote:
Hi,

I may have missed this conversation earlier so I have no context of what's going on.  I will be happy to take a look at it.

-Daniel

Tommaso Pecorella

unread,
Jul 20, 2014, 1:46:52 PM7/20/14
to ns-3-...@googlegroups.com, tomm...@gmail.com
Right, it seems superfluous. Just comment it out.

T

Nakai Lucini

unread,
Jul 20, 2014, 10:37:22 PM7/20/14
to ns-3-...@googlegroups.com
Hi Daniel,

Just delete it, is useless for this script.


Nakai

APS

unread,
Jan 9, 2015, 6:13:08 AM1/9/15
to ns-3-...@googlegroups.com
Hi Nakai,

I know what u r going to do with this, Can u plz post the final code which device discovery is done by enb, I need a lot. Plz help me

Thanks,
Ananth

Manmeet Khurana

unread,
Mar 22, 2015, 6:51:02 PM3/22/15
to ns-3-...@googlegroups.com
Hi Nakai,

We are trying to do a project in NS3 of Integration of Wi-Fi and LTE. We are only a beginner in NS3. I just tried running your both codes, i.e "wifi+lte.cc" and "ht-wifi-network.cc" using command "./waf --run scratch/wifi+lte". But we got the following error :-

" Build failed
 -> task in 'wifi+lte' failed (exit status 1):
    {task 140067640422928: cxx wifi+lte.cc -> wifi+lte.cc.2.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-pthread', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-I.', '-I..', '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-I/usr/include/python2.7', '-I/usr/include/x86_64-linux-gnu/python2.7', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DNDEBUG', '-D_FORTIFY_SOURCE=2', '../scratch/wifi+lte.cc', '-c', '-o', 'scratch/wifi+lte.cc.2.o'] "
 
Can you please help us with the error?

Thanks.
Reply all
Reply to author
Forward
0 new messages