TCP Bulk Send over wifi not working

120 views
Skip to first unread message

M.S. krishna deepak

unread,
Jan 27, 2015, 2:29:01 PM1/27/15
to ns-3-...@googlegroups.com
Hi,

I am trying to modify the TCP bulk send example to work over wifi with just 2 nodes. 

But for some reason no packets are being sent or received. 

Someone please help me out of this

Thank You,
Krishna Deepak
wireless-tcp-bulk-send.cc

Konstantinos

unread,
Jan 27, 2015, 3:22:12 PM1/27/15
to ns-3-...@googlegroups.com
Hi,

Please check your code more carefully.
You have:
BulkSendHelper source ("ns3::TcpSocketFactory", InetSocketAddress (i1.GetAddress (0), port));  
ApplicationContainer sourceApps = source.Install (stas.Get (0));


You install the source on the STA and the remote address is i1.GetAddress(0), which from your code is installed on the wifiContainer, 

M.S. krishna deepak

unread,
Jan 28, 2015, 12:00:44 AM1/28/15
to ns-3-...@googlegroups.com
Hi,

Thanks for the input. Even after changing it, no packets are being sent.

Could you please explain what to give as a parameter to BulkSendHelper, SinkHelper. 

M.S. krishna deepak

unread,
Jan 28, 2015, 12:26:26 AM1/28/15
to ns-3-...@googlegroups.com
This is the modified code
wireless-tcp-bulk-send.cc

M.S. krishna deepak

unread,
Jan 28, 2015, 3:09:41 PM1/28/15
to ns-3-...@googlegroups.com
Could someone help me find the mistake in it? Or is there some other way to generate bulk traffic?

Thank You,
Deepak
On Wednesday, January 28, 2015 at 10:56:26 AM UTC+5:30, M.S. krishna deepak wrote:
This is the modified code

Konstantinos

unread,
Jan 28, 2015, 3:39:59 PM1/28/15
to ns-3-...@googlegroups.com
Hi,

The problem is in the order you wrote your code that instead of creating a STA and a AP, it created two AP devices.

 NqosWifiMacHelper wifiMacHelper = NqosWifiMacHelper::Default ();
Ssid ssid = Ssid ("ns-3-ssid");
wifiMacHelper
.SetType ("ns3::StaWifiMac", "Ssid", SsidValue (ssid), "ActiveProbing", BooleanValue (false));
WifiHelper wifiHelper = WifiHelper::Default ();
wifiMacHelper
.SetType ("ns3::ApWifiMac", "Ssid", SsidValue (ssid));
NetDeviceContainer apContainer = wifiHelper.Install(wifiPhyHelper, wifiMacHelper, ap);
NetDeviceContainer wifiContainer = wifiHelper.Install(wifiPhyHelper, wifiMacHelper, stas);

This is your code. You have created the wifiMacHelper and set its type to STA .
Then instead of installing it to the STA devices, you reconfigure its type to AP and install it to both AP and STA nodes.
The fact that you have named a node STA, does not make it STA...

I will leave the solution to you.
Reply all
Reply to author
Forward
0 new messages