On Wed, Aug 25, 2010 at 12:18 AM, Mathieu wrote:
> On Tue, Aug 24, 2010 at 23:12, Chris wrote:
>> That said, (although I suspect it isn't) is it possible to set two
>> channel numbers within the same WifiPhy object?
>
> it is possible but you need to make sure that the senders and
> receivers have the same number or the packets will be silently dropped
> at the receiver side.
I am not sure I got the big picture.
Let's assume that all the variables in the example are valid objects
and that the suffixes 1 and 2 refer to each one of the IBSS.
Specifying this:
phy1.Set ("ChannelNumber", UintegerValue (1));
phy2.Set ("ChannelNumber", UintegerValue (1));
NetDeviceContainer wifiDevices1 = wifi1.Install (phy1, mac1,
wifiNodes1);
NetDeviceContainer wifiDevices2 = wifi2.Install (phy2, mac2,
wifiNodes2);
should instantiate two sets of nodes, sharing the same channel.
If that were the case, I would expect that the overall capacity would
be divided.
Instead, the two sets of nodes are able to fully exploit the channel,
as they were alone.
By way of example, I have run a modified version of samples/wireless/
wifi-adhoc.cc in which:
- a first IBSS has two nodes, one fixed, the other moving away;
- a second IBSS has two nodes, both fixed at a random position, that
create interfering traffic.
And here is the throughput achieved by the first IBSS:
http://imagebin.org/111282
'Same phy' is the case in which both NetDeviceContainers use the same
phy (e.g. 'phy1').
'Diff phy' is the case in which each NetDeviceContainer use a
different phy (just like the code above).
Am I missing something?
Chris