Skip to contentSkip to conversation

Stable adapters for Ad Hoc networks

B.A.T.M.A.N. Breno Jacinto 4 participants 14 messages Feb 4, 2009 – Feb 10, 2009

lore
Share & tools
lore
#0 lore raw

Hello everyone,

Im running several experiments involving ad hoc networks. Ive
selected some well known-to-be-compatible adapters, such as Edimax (Ralink shipset), Alfa networks (Realtek) and Atheros (madwifi). Atheros is available only as built-in adapter on the equipement or as a PCI board.

So, I'm experiencing some instability regarding the selection of
the BSSID used by all the nodes. I start the network with a single node, then another, then another. Now, for a couple of minutes it works, bu then some nodes start losing sight of each and changing their BSSIDs to a different value (and they should always use the same). I'm really running out of
explanations of why this is happening, because these nodes are all in-range of each other, and should be "pingable" directly. My main suspect is the driver instability, but then I dont know of any other better alternatives. I've tested the following USB adapters:

- Edimax EW-7318USg (rt73 drivers)
- Alfa AWUS036H-11g

And the builtin adapters:

- Atheros chipset AR5007EG

best regards,

Signature · 7 lines
-- 
:: Breno Jacinto ::
:: breno - at - gprt.ufpe.br ::
:: FingerPrint ::
   2F15 8A61 F566 E442 8581
   E3C0 EFF4 E202 74B7 7484
:: Persistir no difícil é a única maneira de torná-lo fácil algum dia.  ::
#1 lore raw

Hey Breno,

sounds like the well known ad-hoc cell splitting problem to me. A common workaround is to fixate the BSSID to some pre-defined value:

iwconfig athX ap 02:CA:FF:EE:BA:BE

hopefully all your drivers support this. :)

best regards,
Simon

Quoted 42 lines · Breno Jacinto

Hello everyone,

Im running several experiments involving ad hoc networks. Ive
selected some well known-to-be-compatible adapters, such as Edimax (Ralink shipset), Alfa networks (Realtek) and Atheros (madwifi). Atheros is available only as built-in adapter on the equipement or as a PCI board.

So, I'm experiencing some instability regarding the selection of
the BSSID used by all the nodes. I start the network with a single node, then another, then another. Now, for a couple of minutes it works, bu then some nodes start losing sight of each and changing their BSSIDs to a different value (and they should always use the same). I'm really running out of
explanations of why this is happening, because these nodes are all in-range of each other, and should be "pingable" directly. My main suspect is the driver instability, but then I dont know of any other better alternatives. I've tested the following USB adapters:

- Edimax EW-7318USg (rt73 drivers)
- Alfa AWUS036H-11g

And the builtin adapters:

- Atheros chipset AR5007EG

best regards,

Signature · 11 lines
-- 
:: Breno Jacinto ::
:: breno - at - gprt.ufpe.br ::
:: FingerPrint ::
   2F15 8A61 F566 E442 8581
   E3C0 EFF4 E202 74B7 7484
:: Persistir no difícil é a única maneira de torná-lo fácil algum dia.  ::
_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://lists.open-mesh.net/mm/listinfo/b.a.t.m.a.n
#2 lore raw

Hello Simon,

Thanks, I was searching a bit on google about that. It's harder to
solve than I thought.

I still wonder if setting up a static BSSID will stop the BSSID
selection algorithm from ocurring. What do you think? Have tested this in practice?

Setting the BSSID manually was only supported by the Atheros
chipset, which runs on my laptop. I'm also working with portable devices, such as OpenMoko Freerunner (which is Atheros too, but I havent checked this) and Nokia N810 (which has a prism chipset). Nokia N810 was really buggy... whenever I tried to put one device on the network, it started to split itself from it.

best regards,

Signature · 11 lines
-- 
:: Breno Jacinto ::
:: breno - at - gprt.ufpe.br ::
:: FingerPrint ::
   2F15 8A61 F566 E442 8581
   E3C0 EFF4 E202 74B7 7484
:: Persistir no difícil é a única maneira de torná-lo fácil algum dia.  ::



2009/2/4 Simon Wunderlich <[email protected]>:
Quoted 70 lines

Hey Breno,

sounds like the well known ad-hoc cell splitting problem to me. A common workaround is to fixate the BSSID to some pre-defined value:

iwconfig athX ap 02:CA:FF:EE:BA:BE

hopefully all your drivers support this. :)

best regards,
Simon

Quoted 34 lines · Breno Jacinto

Hello everyone,

Im running several experiments involving ad hoc networks. Ive
selected some well known-to-be-compatible adapters, such as Edimax (Ralink shipset), Alfa networks (Realtek) and Atheros (madwifi). Atheros is available only as built-in adapter on the equipement or as a PCI board.

So, I'm experiencing some instability regarding the selection of
the BSSID used by all the nodes. I start the network with a single node, then another, then another. Now, for a couple of minutes it works, bu then some nodes start losing sight of each and changing their BSSIDs to a different value (and they should always use the same). I'm really running out of
explanations of why this is happening, because these nodes are all in-range of each other, and should be "pingable" directly. My main suspect is the driver instability, but then I dont know of any other better alternatives. I've tested the following USB adapters:

- Edimax EW-7318USg (rt73 drivers)
- Alfa AWUS036H-11g

And the builtin adapters:

- Atheros chipset AR5007EG

best regards,

--
--
:: Breno Jacinto ::
:: breno - at - gprt.ufpe.br ::
:: FingerPrint ::

Quoted 8 lines
   2F15 8A61 F566 E442 8581
   E3C0 EFF4 E202 74B7 7484

:: Persistir no difícil é a única maneira de torná-lo fácil algum dia. ::
_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://lists.open-mesh.net/mm/listinfo/b.a.t.m.a.n

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJigDrrzg/fFk7axYRAk8QAJ9O76YpSsZ7F4YlfGOCdVMzlgxjqQCghJWF 8Do0FGAC4gG9ASicOnh700g=
=paEZ
-----END PGP SIGNATURE-----

_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://lists.open-mesh.net/mm/listinfo/b.a.t.m.a.n

#3 lore raw

Hi,

Quoted 3 lines

I still wonder if setting up a static BSSID will stop the BSSID
selection algorithm from ocurring. What do you think? Have tested this in practice?

yes, it will deactivate the selection algorithm. We used this hack to get the Freifunk Berlin network stable. We had a real hardware zoo (Atheros, Broadcom, Ralink, etc) that was impossible to control without setting the BSSID.

Regards,
Marek

#4 lore raw

Hello Marek,

Have you managed to set a static BSSID to all those chipsets -
Atheros, Broadcom, Ralink etc? Because up to now, only Atheros made this trick possible.

If I managed to do that with the rt73 chipset that would be enough.
But the driver guys seem to have no documentation stating if this is possible or not, and doing an iwconfig rausb0 ap <BSSID MAC> does not change anything :/.

best regards,

2009/2/5 Marek Lindner <[email protected]>:

Quoted 19 lines

Hi,

Quoted 3 lines

I still wonder if setting up a static BSSID will stop the BSSID
selection algorithm from ocurring. What do you think? Have tested this in practice?

yes, it will deactivate the selection algorithm. We used this hack to get the Freifunk Berlin network stable. We had a real hardware zoo (Atheros, Broadcom, Ralink, etc) that was impossible to control without setting the BSSID.

Regards,
Marek

_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://lists.open-mesh.net/mm/listinfo/b.a.t.m.a.n

Signature · 7 lines
-- 
:: Breno Jacinto ::
:: breno - at - gprt.ufpe.br ::
:: FingerPrint ::
   2F15 8A61 F566 E442 8581
   E3C0 EFF4 E202 74B7 7484
:: Persistir no difícil é a única maneira de torná-lo fácil algum dia.  ::
#5 lore raw

Hi,

Quoted 3 lines

Have you managed to set a static BSSID to all those chipsets -
Atheros, Broadcom, Ralink etc? Because up to now, only Atheros made this trick possible.

thanks to Felix from the OpenWRT project the Atheros driver has that feature (as you know). Broadcom is a much harder cases because the drivers a binary only. We mostly use the famous WRT54G and its derivates for our network. Sven- Ola managed to write patch for that binary driver of the WRT. There also is an open source driver project for the broadcom chips but I'm not sure where it stands.
I never experimented with Ralink myself, so I can't answer that. I'm sure Elektra could jump in here. :-)

Regards,
Marek

#6 lore raw

Hello Marek,

Thank you for replying. I have one final question about this.

2009/2/6 Marek Lindner <[email protected]>:

Quoted 6 lines

thanks to Felix from the OpenWRT project the Atheros driver has that feature (as you know). Broadcom is a much harder cases because the drivers a binary only. We mostly use the famous WRT54G and its derivates for our network. Sven- Ola managed to write patch for that binary driver of the WRT. There also is an open source driver project for the broadcom chips but I'm not sure where it stands.

How about in the laptops / pcs that access the WRT54G, which make
the "infrastructure" of the mesh? What kind of adapters do you use on them?

Quoted 2 lines

I never experimented with Ralink myself, so I can't answer that. I'm sure Elektra could jump in here. :-)

That would be really helpful - I'm trying to contact the rt73
drivers guys for the last week and got no response from them. If anyone could confirm whether these Edimax dongles could set a static BSSID, that would help us decide which equipment to buy for building our ad hoc network test-bed.

Quoted 2 lines

Regards,
Marek

best regards,

Signature · 7 lines
-- 
:: Breno Jacinto ::
:: breno - at - gprt.ufpe.br ::
:: FingerPrint ::
   2F15 8A61 F566 E442 8581
   E3C0 EFF4 E202 74B7 7484
:: Persistir no difícil é a única maneira de torná-lo fácil algum dia.  ::
#7 lore raw

Hi -

I'm waiting for working drivers (particularly USB) for IBSS mode for long time and was putting my hope on Ralink RT73 as well.

The situation is improving with the mac80211 driver development in the Linux kernel. Recently patches went into compat-wireless that allow to fix the IBSSID with the

iwconfig <interface> ap <cell-id>

command - with some drivers, not all.

However the situation is a little more complex than just fixing the IBSSID, because the drivers/firmware have to be convinced not to perform a IBSS-merge every time the TSF timestamp in a received beacon is a little older. Upon a merge the cards may flush their MAC table - this could happen every few miliseconds - like I have observed with Intel ipw4965 driver. Also TSF clock skews can cause race conditions.

So far ath5k and ath9k seem to work - but the only driver I can really recommend is Madwifi with all patches from Openwrt - vanilla Madwifi is *not* working. The patched Madwifi in Openwrt Kamikaze works perfectly (I'm using mesh with Batman exclusively every day and I can suspend/resume my EEE-PC for weeks and I'm always online ;-)

But Madwifi does not support USB...

Best bet for USB is Zydas, I guess.

cu elektra

#8 lore raw

Hello Elektra,

Thanks for the information. At least now I have some background
to work on - I already have several rt73 USB dongles, some notebooks with Atheros, some OpenMokos (which have atheros chipsets) and a few Nokia N810 tablets (which have a prism chipset). Specially the Nokias are actually messing up the network, when I put them together. They just dont seem to figure out how to syncronize to the same BSSID. These devices are all on the same room, in close range.

I read this
http://wiki.villagetelco.org/index.php/Information_about_cell-id_splitting,_stuck_beacons,_and_failed_IBSS_merges!

And they mentioned about some intermediate mode, called
Pseudo-IBSS or AHdemo mode, which allows a device to set a static BSSID and it is supported by some drivers. I suppose we are talking about the same thing here, just not giving any names (?).

When you mentioned your EEE PC, which uses an Atheros chipset,
did you also had to set a static BSSID to the same used in the mesh network you use?

regards,

Signature · 12 lines
-- 
:: Breno Jacinto ::
:: breno - at - gprt.ufpe.br ::
:: FingerPrint ::
   2F15 8A61 F566 E442 8581
   E3C0 EFF4 E202 74B7 7484
:: Persistir no difícil é a única maneira de torná-lo fácil algum dia.  ::




2009/2/7 elektra <[email protected]>:
Quoted 36 lines

Hi -

I'm waiting for working drivers (particularly USB) for IBSS mode for long time and was putting my hope on Ralink RT73 as well.

The situation is improving with the mac80211 driver development in the Linux kernel. Recently patches went into compat-wireless that allow to fix the IBSSID with the

iwconfig <interface> ap <cell-id>

command - with some drivers, not all.

However the situation is a little more complex than just fixing the IBSSID, because the drivers/firmware have to be convinced not to perform a IBSS-merge every time the TSF timestamp in a received beacon is a little older. Upon a merge the cards may flush their MAC table - this could happen every few miliseconds - like I have observed with Intel ipw4965 driver. Also TSF clock skews can cause race conditions.

So far ath5k and ath9k seem to work - but the only driver I can really recommend is Madwifi with all patches from Openwrt - vanilla Madwifi is *not* working. The patched Madwifi in Openwrt Kamikaze works perfectly (I'm using mesh with Batman exclusively every day and I can suspend/resume my EEE-PC for weeks and I'm always online ;-)

But Madwifi does not support USB...

Best bet for USB is Zydas, I guess.

cu elektra
_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://lists.open-mesh.net/mm/listinfo/b.a.t.m.a.n

#9 lore raw

Hi,

Quoted 4 lines

Thanks for the information. At least now I have some background
to work on - I already have several rt73 USB dongles, some notebooks with Atheros, some OpenMokos (which have atheros chipsets) and a few Nokia N810 tablets (which have a prism chipset).

although the Openmoko Freerunner has an Atheros chip inside it does not use the madiwifi driver (this is the AR6001 mobile chip, in case you wonder).

Quoted 4 lines

And they mentioned about some intermediate mode, called
Pseudo-IBSS or AHdemo mode, which allows a device to set a static BSSID and it is supported by some drivers. I suppose we are talking about the same thing here, just not giving any names (?).

AHdemo is not the same as setting the BSSID in ad-hoc mode manually. As mentioned on the page you linked to the AHdemo mode does not send any beacons. Whereas the ad-hoc mode sends beacons with a fixed BSSID. Not sending beacons has certain side effects:
- your network will appear being "invisible" (the normal network manager wont show it)
- you have to manually configure the connection speed and other stuff as the usual autonegotiation is using the beacons for that
- you will have collisions (might lead to decreased performance)
- driver compat problems (only a few drivers support this mode)

Nevertheless, it will fix your cell split problem. :-)

Quoted 3 lines

When you mentioned your EEE PC, which uses an Atheros chipset,
did you also had to set a static BSSID to the same used in the mesh network you use?

I think EEE PC uses the madwifi driver?! If so you can set the BSSID statically.

Regards,
Marek

#10 lore raw

Hi -

some EEE PC models use a Atheros mPCI wireless card (the 701 for example) but my 901 was shipped with a Ralink rt2870 (802.11 abgn) that I replaced with an Atheros abg card ASAP...

Actually I'm using Ahdemo mode in my EEE-PC which works nicely together with other devices with 'normal' IBSS-mode but fixed IBSS-ID - in our local mesh we use Madwifi with OpenWRT patches and Broadcom-based devices (WRT54G/GL/GS, Asus WL500GP) with OpenWRT Whiterussian and Broadcom proprietary driver with fixed IBSS-ID hack (Freifunk Firmware).

Rate adaption with the Ministrel algorithm works well in Ahdemo mode - and you have the possibility to set up a AP VAP on the same interface, too.

Performance is fine. That may be different if you run a Ahdemo-only network in range with other wireless networks - they won't detect collisions, hence performance can suffer.

Cheers,
elektra

#11 lore raw

Hello Marek, Elektra,

Thank you very much for the information.

By the way, I think you guys are involved on that book project
about community wireless networks, hosted at WNDW.net. I'm from Brazil, and I have noticed that the only translation available is to the first edition, but the book seems to be on its thrid edition actually.

I'd be interested to cooperate on the translation of the book, as
I intend to use them on my classes and also I intend to start some community network projects where I live. Do you know who should I contact in order to help on the translation?

regards,

2009/2/8 elektra <[email protected]>:

Quoted 29 lines

Hi -

some EEE PC models use a Atheros mPCI wireless card (the 701 for example) but my 901 was shipped with a Ralink rt2870 (802.11 abgn) that I replaced with an Atheros abg card ASAP...

Actually I'm using Ahdemo mode in my EEE-PC which works nicely together with other devices with 'normal' IBSS-mode but fixed IBSS-ID - in our local mesh we use Madwifi with OpenWRT patches and Broadcom-based devices (WRT54G/GL/GS, Asus WL500GP) with OpenWRT Whiterussian and Broadcom proprietary driver with fixed IBSS-ID hack (Freifunk Firmware).

Rate adaption with the Ministrel algorithm works well in Ahdemo mode - and you have the possibility to set up a AP VAP on the same interface, too.

Performance is fine. That may be different if you run a Ahdemo-only network in range with other wireless networks - they won't detect collisions, hence performance can suffer.

Cheers,
elektra

_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://lists.open-mesh.net/mm/listinfo/b.a.t.m.a.n

Signature · 7 lines
-- 
:: Breno Jacinto ::
:: breno - at - gprt.ufpe.br ::
:: FingerPrint ::
   2F15 8A61 F566 E442 8581
   E3C0 EFF4 E202 74B7 7484
:: Persistir no difícil é a única maneira de torná-lo fácil algum dia.  ::
#12 lore raw

[B.A.T.M.A.N.] WNDW

Hi Breno -

thank you for your interest in supporting WNDW translations. Please keep in mind that this is off-topic for the Batman list. I'd like to redirect you directly to the forums of the WNDW page: http://forums.wndw.net/ The main editor of the English WNDW book and maintainer of the WNDW web site is Rob Flickenger.

Cheers,
elektra

#13 lore raw
In reply to Breno Jacinto

Hi,

Quoted 3 lines

How about in the laptops / pcs that access the WRT54G, which make
the "infrastructure" of the mesh? What kind of adapters do you use on them?

I think Elektra made clear that the driver situation for mobile devices is much worse. We stopped promoting laptops as part of the network. Next to the driver issues we faced different OSes in different versions, firewalls, $security_software, wrongly configured routing daemons, confused ordinary users, etc. Instead we encouraged people to use the routers for meshing and normal managed networks for the laptops.

Regards,
Marek