wifi adhoc multi-link scenario needed - URGENT

222 views
Skip to first unread message

lito

unread,
Oct 25, 2010, 3:20:15 PM10/25/10
to ns-3-users
Hello,
I would like to know how can I create a topology of an adhoc network
with more than one links using 802.11a.
For example many nodes sending traffic to the same sink or the other
way round.
Moreover, I need to calculate not only the overall throughput of the
network, but the per link throughput as well.
Does anybody have any clue?

I am really frustrated with ns3 as I am really new and I need to do
this in the next couple of days... :(
Thanx a lot
Lito

Lalith Suresh

unread,
Oct 26, 2010, 3:23:14 AM10/26/10
to ns-3-...@googlegroups.com
Hello,

On Mon, Oct 25, 2010 at 8:20 PM, lito <litok...@hotmail.com> wrote:
Hello,
I would like to know how can I create a topology of an adhoc network
with more than one links using 802.11a.

Have you looked at examples/wireless/wifi-simple-adhoc-grid.cc?
 
For example many nodes sending traffic to the same sink or the other
way round.

You can simply tune the above example to your needs.
 
Moreover, I need to calculate not only the overall throughput of the
network, but the per link throughput as well.

The flow monitor might help.
 
Does anybody have any clue?

I am really frustrated with ns3 as I am really new and I need to do
this in the next couple of days... :(

Maybe you should have a look at the tutorial as well.
 
 
Thanx a lot
Lito

--
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.




--
Lalith Suresh
Department of Computer Science and Engineering
Instituto Superior Técnico
www.lalith.in

lito

unread,
Oct 26, 2010, 5:24:51 AM10/26/10
to ns-3-users
Thnx, but I have already done that and didn't work and that's why I
posted here.

On Oct 26, 8:23 am, Lalith Suresh <suresh.lal...@gmail.com> wrote:
> Hello,
>
> On Mon, Oct 25, 2010 at 8:20 PM, lito <litokri...@hotmail.com> wrote:
> > Hello,
> > I would like to know how can I create a topology of an adhoc network
> > with more than one links using 802.11a.
>
> Have you looked at examples/wireless/wifi-simple-adhoc-grid.cc?

This is exactly what I want to do but it does not work correctly after
I add more than one links. In order to add more links I have added a
for loop in the file starting before creating the sockets and ending
after the scheduling of the generator function. In there I change the
sender and the receiver for every link. The problem is that no matter
the distance or the rate used the throughput I calculated was the same
every time which does not seem correct. I also saw that despite the
fact that packets were generated from all senders, packets from nodes
4 and 5 for example were never received by the sink node no matter the
distance or the rate between them. So something is obviously not
working there well.
Does anyone have a clue why?

Thnx again

>
> > For example many nodes sending traffic to the same sink or the other
> > way round.
>
> You can simply tune the above example to your needs.
>
> > Moreover, I need to calculate not only the overall throughput of the
> > network, but the per link throughput as well.
>
> The flow monitor might help.
>
> > Does anybody have any clue?
> > I am really frustrated with ns3 as I am really new and I need to do
> > this in the next couple of days... :(
>
> Maybe you should have a look at the tutorial as well.
>
>
>
> Thanx a lot
>
> > Lito
>
> > --
> > 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<ns-3-users%2Bunsubscribe@googlegrou ps.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/ns-3-users?hl=en.
>
> --
> Lalith Suresh
> Department of Computer Science and Engineering
> *Instituto Superior Técnico*www.lalith.in

vishal kajjam

unread,
Oct 26, 2010, 5:46:19 AM10/26/10
to ns-3-...@googlegroups.com
Hi Lito

I am simulating a multihop adhoc chain network. Even I am facing a similar problem. The thing that I observed is that for default phy and channel if the distance between adjacent nodes is greater than 55 m there is a loss of packets otherwise for anything between 0 and 55 the throughput remains the same. 

Also if I add any other propagation loss model to the channel, the packets dont seem to get across. I think this is a bug.

Vishal

To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.

lito

unread,
Oct 26, 2010, 7:36:22 AM10/26/10
to ns-3-users
I have used various distances 25-325 m in a multilink scenario where
node 0 sends packets to nodes 1-8. In this case only the first, fifth
and sixth links have throughput >0 and this is no matter the distance
I assign.

In the case that 8 different nodes send to the same sink then only the
first link has positive throughput.

In my scenario I have kept the original settings of file wifi-simple-
adhoc-grid.cc where,
YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();
wifiPhy.Set ("RxGain", DoubleValue (-10) );
wifiPhy.SetPcapDataLinkType
(YansWifiPhyHelper::DLT_IEEE802_11_RADIO);

YansWifiChannelHelper wifiChannel ;
wifiChannel.SetPropagationDelay
("ns3::ConstantSpeedPropagationDelayModel");
wifiChannel.AddPropagationLoss ("ns3::FriisPropagationLossModel");
wifiPhy.SetChannel (wifiChannel.Create ());

NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();
wifi.SetStandard (WIFI_PHY_STANDARD_80211a);
wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
"DataMode",StringValue(phyMode), "ControlMode",StringValue(phyMode));

Lito

vishal kajjam

unread,
Oct 26, 2010, 7:44:53 AM10/26/10
to ns-3-...@googlegroups.com
Comment these 2 lines:

wifiChannel.SetPropagationDela("ns3::ConstantSpeedPropagationDelayModel");

wifiChannel.AddPropagationLoss ("ns3::FriisPropagationLossModel");

I think you should be able to transfer data.

Vishal

To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.

lito

unread,
Oct 26, 2010, 8:04:12 AM10/26/10
to ns-3-users
I did change that:
YansWifiChannelHelper wifiChannel = YansWifiChannelHelper::Default
();;
// YansWifiChannelHelper wifiChannel;
// wifiChannel.SetPropagationDelay
("ns3::ConstantSpeedPropagationDelayModel");
// wifiChannel.AddPropagationLoss ("ns3::FriisPropagationLossModel");

and still this is what I get the following:
Testing from node 0 to 1 packets 3840 with grid distance 325
modes[7] : OfdmRate6Mbps
Testing from node 0 to 2 packets 3840 with grid distance 50
modes[2] : OfdmRate36Mbps
Testing from node 0 to 3 packets 3840 with grid distance 75
modes[2] : OfdmRate36Mbps
Testing from node 0 to 4 packets 3840 with grid distance 100
modes[3] : OfdmRate24Mbps
Testing from node 0 to 5 packets 3840 with grid distance 150
modes[4] : OfdmRate18Mbps
Testing from node 0 to 6 packets 3840 with grid distance 200
modes[5] : OfdmRate12Mbps
Testing from node 0 to 7 packets 3840 with grid distance 239
modes[6] : OfdmRate9Mbps
Testing from node 0 to 8 packets 3840 with grid distance 25
modes[0] : OfdmRate54Mbps
1 link -0Mbps
2 link -0Mbps
3 link -0Mbps
4 link -0Mbps
5 link -0Mbps
6 link -0Mbps
7 link -0Mbps
8 link -0Mbps

do you think it would be useful to upload the .cc file here?
Lito

lito

unread,
Oct 26, 2010, 11:21:45 AM10/26/10
to ns-3-users
I also get different results by just changing the nodes used and not
the distance between sender-receiver like that
(1)
Testing from node 21 to 8 packets 7680 with grid distance 25
modes[0] : OfdmRate54Mbps
Testing from node 22 to 8 packets 7680 with grid distance 50
modes[2] : OfdmRate36Mbps
Testing from node 23 to 8 packets 7680 with grid distance 75
modes[2] : OfdmRate36Mbps
Testing from node 24 to 8 packets 7680 with grid distance 100
modes[3] : OfdmRate24Mbps
1 link -0Mbps
2 link -0Mbps
3 link -0Mbps
4 link -0Mbps

(2)
Testing from node 11 to 8 packets 7680 with grid distance 25
modes[0] : OfdmRate54Mbps
Testing from node 12 to 8 packets 7680 with grid distance 50
modes[2] : OfdmRate36Mbps
Testing from node 13 to 8 packets 7680 with grid distance 75
modes[2] : OfdmRate36Mbps
Testing from node 14 to 8 packets 7680 with grid distance 100
modes[3] : OfdmRate24Mbps
1 link 21.9343Mbps
2 link -0Mbps
3 link -0Mbps
4 link -0Mbps

the actual code can be found here http://homepages.inf.ed.ac.uk/s0972763/assignCa_b.cc
it is only a draft so excuse my not very well presented code

Does anybody have any idea on that?
Thnx
Lito

Mihal Brumbulli

unread,
Oct 26, 2010, 3:17:27 PM10/26/10
to ns-3-users
Hi

Your problem probably lies in the scheduling time for sending the
packets.
If you introduced a loop as you stated and didn't change the start
time (default 30s)
for sending packets, all of your nodes will start sending at the same
time.
With all these packets the RcvBufSize can be reached and all other
packets are droped.
So basically you have to think it carefully how you want to schedule
in time the sending
of all the packages.
You can get this behaviour even when you try to send from one src
to one dest more than 131 packets (1000 bytes each) at the same time.

Hope it helps.
> the actual code can be found herehttp://homepages.inf.ed.ac.uk/s0972763/assignCa_b.cc

lito

unread,
Oct 28, 2010, 9:04:24 AM10/28/10
to ns-3-users
I have tried many different starting times for each link but still no
change in the result...

rumi bhandari

unread,
Sep 27, 2024, 9:55:20 AM9/27/24
to ns-3-users

did u get any final output??
Reply all
Reply to author
Forward
0 new messages