OpenWrt Forum Archive

Topic: WDS question

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi. Let's say that I have several (let's say 5) repeaters in WDS mode. Every repeater is in range of other ones. How will the repeating behave? What about radio noise and speed decrease? I understand that WDS means that "what comes in goes out". Is it right? Is the repeating "inteligent" and routes the packets to it's destination somehow instead of just repeating and hoping that it eventually reaches it's target?

I never tryed it with OpenWrt and Lots of AP's but with Hyperwrt
you can remove: wl0_mode=ap, wl0_mode=sta, wl0_mode=wet etc
don't break that bridge
then run wl0_mode=wds

WRT54G-1[BR0][WDS]<--------------->[WDS][BR0]WRT54G-2

do you know what I mean ?

(Last edited by wirelessjoe on 22 Jun 2005, 20:32)

wl0_mode=wds does not seem to be in the documentation, interesting. However I have no problem making it work, I'm just asking how WDS works when using several repeaters, what's the speed penalty and so on. I have to cover quite large area for public usage and I'd like to know if it's possible to do it using WDS.

please don't miss understand me because I used Hyperwrt for this, (I do use OpenWrt for Other things)

yes I tried this with Hyperwrt Firmware, WDS-WPA-PSK with AES encryption big_smile

[ anything and everything, download, upload, voip-(vonage)(asterisk), firewall, qos, mass-mess] ha everything over WDS
my connections are not bad, I feel its very fast, (I mean Transfer 228.795 MB took 110-sec over WDS link)
2 WRTs configure as WDS node, they don't accept any other wireless client (but you may configure them as AP too - if you have wireless clients) all my pc's on Ethernet LAN -

Note: I think  you should not configure same WRT as AP and WDS node (cause then things start to slow down) now we can buy more Linksys box and put them as AP and connect them to WDS nodes with RJ45 cable

NOW you want to know how to do it: from here all the credits to "Traveller" and I am using Linksys V3.0 so I remove all afterburner stuff

I posted the following to Linksysinfo a while back.  I'm currently using it between 2 GS'es.  Note that "gmode 6" doesn't seem to be used to control afterburner anymore, in the most recent Linksys-firmware / drivers.  They switched to "afterburner_override" for that.


Here's the posting:

I just setup a WPA-PSK AES-encrypted WDS point to point-link between 2 v1.0 WRT54GS's, running HyperWRT_2.1b1_GS. It's actually pretty straightforward, if you're familiar with the inner workings of the units. BTW: WDS only halves throughput if you use an AP with 1 radio, like the WRT54G(S), on the far end of a WDS-link to connect clients which need to talk to something on the other side of that WDS-link. The radio will have to repeat all data in that case. If you only connect to the LAN-ports on both sides, WDS is about as fast as regular AP -> client. I'm currently pulling around 20 Mbit/sec over a distance of around 2 KM with this setup, using external directional antenna's.


Here's my setup:

LAN <---> WRT54GS 1 <----WDS----> WRT54GS 2 <---> LAN

Start out by factory-defaulting and configuring basic IP on both units. Also configure wireless for the desired channel and SSID. Make sure you select "G-only" wireless mode. Enable WPA-PSK, choose AES for encryption and select a strong pass-phrase. I always change the "Group Key Renewal"-interval to 600 seconds. Under "Advanced Wireless", you could tweak antenna and power-settings. It's best to keep the wireless settings identical on both units. Once everything works, you can backup your settings and start playing with them. Locking the transmission-rate to the highest possible value sometimes improves throughput. Under "Administration -> Management" you could turn off UPnP, enable HTTPS and "Wireless Access Web".

One of the first things you need to know to set up WDS, is the MAC-address of the wireless interface for all units participating. This can be found in the web-interface, under "Status -> Wireless".

Let's assume:

WRT54GS 1: 00:0F:66:11:11:11
WRT54GS 2: 00:0F:66:22:22:22

These are the settings I will use in my example below:

SSID: Test
WPA PSK: SuperSecret

And now for the good stuff. Let's start by configuring WRT54GS 1:

Under "Administration -> Management", click the "Firewall"-button and paste the following into the window, then click "Save" at the bottom:

-----------------------------------------------------
# Some NVRAM presets.
nvram set wl_mode=wds
nvram set wl0_mode=wds
nvram set wl_lazywds=0
nvram set wl0_lazywds=0
nvram set wl_afterburner=off
nvram set wl0_afterburner=off
nvram set wl_afterburner_override=0
nvram set wl0_afterburner_override=0
nvram set wl_wds=00:0F:66:22:22:22
nvram set wl0_wds=00:0F:66:22:22:22

# No lazywds.
wl lazywds 0
-----------------------------------------------------

Now close the "Firewall Script"-window and, still under "Administration -> Management", click the "Startup"-button. Paste the following into the window and click "Save" at the bottom:

-----------------------------------------------------
# Authenticate WPA-PSK encrypted WDS-interfaces.
nas4not lan wds0.2 up auto aes psk 'SuperSecret' 'Test'
-----------------------------------------------------


That's it for WRT54GS 1. The config for WRT54GS 2 is identical, except for the MAC-address for WDS. Each unit uses the other unit's MAC-address. For clarity, here it is:

Under "Administration -> Management", click the "Firewall"-button and paste the following into the window, then click "Save" at the bottom:

-----------------------------------------------------
# Some NVRAM presets.
nvram set wl_mode=wds
nvram set wl0_mode=wds
nvram set wl_lazywds=0
nvram set wl0_lazywds=0
nvram set wl_afterburner=off
nvram set wl0_afterburner=off
nvram set wl_afterburner_override=0
nvram set wl0_afterburner_override=0
nvram set wl_wds=00:0F:66:11:11:11
nvram set wl0_wds=00:0F:66:11:11:11

# No lazywds.
wl lazywds 0
-----------------------------------------------------

Now close the "Firewall Script"-window and, still under "Administration -> Management", click the "Startup"-button. Paste the following into the window and click "Save" at the bottom:

-----------------------------------------------------
# Authenticate WPA-PSK encrypted WDS-interfaces.
nas4not lan wds0.2 up auto aes psk 'SuperSecret' 'Test'
-----------------------------------------------------


That's it. Reboot both units and they should start talking to eachother. Some notes about the configuration above:

This is a WDS-only configuration. All AP-functionality is disabled. The units won't accept clients and won't even send out any beacons, as far as I can tell. It's identical to the WAP54G "bridge-mode". If you need to connect clients, change the first 2 NVRAM-parameters in the example above to:

nvram set wl_mode=ap
nvram set wl0_mode=ap


The latest wireless drivers and NAS allow for some pretty neat tricks. cool You can setup multiple WPA-PSK encrypted WDS-links and use a different encryption, lol pass-phrase and SSID for any of the WDS-links and AP-mode, for example. I won't go into too much details at the moment, but if you use the above configuration in AP-mode, with clients, you should be able to change the "Wireless Security"-parameters in the web-interface to anything you want, as long as it's WPA. The clients will use those settings and the WDS-link will use the settings you pasted into to "Startup"-window as the `nas4not' command-line.

Good luck and for anyone who tries, please post any results and questions.



Grtz,

Traveller / WirelessJoe

(Last edited by wirelessjoe on 22 Jun 2005, 20:27)

tosuja, I'm not sure your question was answered, so let me give it a try.  I've heard that WDS networks are indeed plagued by slowness, because when a node broadcasts X to all nodes in its area, when they all hear it, they re-broadcast it again.  so all these secondary nodes have wasted the amount of time it takes to send/receive X twice.  now this second node's neighbors hear the message, and again rebroadcast it, and have wasted just as much time on the same message as the 2nd-teir nodes.  At this point, some nodes will have heard the message twice maybe.  This wastes bandwidth/time again, of course, because if there's data going through the airwaves, you can't talk and have to wait.

contrast this with Olsr.  nodes sense their neighbors and tell other nodes who they can contact.  After just a few seconds, every node in the mesh can see a route to every other node in the mesh.  messages are only broadcast to the node that can take the messages closer to its destination, and not broadcast needlessly everywhere just to make sure every corner heard it.

check out http://doctormojo.com/wrt54g/ to see how I implemented a similar situation, and the topology map at the bottom (that is _not_ currently being auto-generated) but _was_ last night.

check out http://meshcube.org/meshwiki/OlsrTopologyVisualization to see another auto-generated topo map.  Everybody on that map can route to everybody else on that map, and there would be no 'wasted' bandwidth persay.

hope this helps and is not too far off-topic!

(Last edited by mrmoj on 26 Jun 2005, 00:00)

tosuja wrote:

Hi. Let's say that I have several (let's say 5) repeaters in WDS mode. Every repeater is in range of other ones. How will the repeating behave? What about radio noise and speed decrease? I understand that WDS means that "what comes in goes out". Is it right? Is the repeating "inteligent" and routes the packets to it's destination somehow instead of just repeating and hoping that it eventually reaches it's target?

*sigh* ok, in WDS there is a point-to-point link configured for every AP you want to talk to.  Those linke are then added to a software bridge... and if you have multiple links, you NEED spanning tree running on it.   The spanning tree protocol will determine a root bridge and a path, then all packets will traverse the spanning tree via WDS links.

So, depending on how you're set up it could actually end up bouncing off all 5 routers, or you could only hit one or two...  personally I've configured mine with brouting to ROUTE over the wds links (ospf) so it will use the best path but you still have to have them all added to the bridge so that nas can configure them

Sam

again I ddin't do this yet

what if we forget about bridge and WDS, break all interfaces apart, then use as real router, then do nat firewalling etc

I know its more work

wirelessjoe wrote:

again I ddin't do this yet

what if we forget about bridge and WDS, break all interfaces apart, then use as real router, then do nat firewalling etc

I know its more work

just don't try to run WPA on it then, that won't work...

Thanks Sbingner

sbingner wrote:

*sigh* ok, in WDS there is a point-to-point link configured for every AP you want to talk to.  Those linke are then added to a software bridge... and if you have multiple links, you NEED spanning tree running on it.   The spanning tree protocol will determine a root bridge and a path, then all packets will traverse the spanning tree via WDS links.

So, depending on how you're set up it could actually end up bouncing off all 5 routers, or you could only hit one or two...  personally I've configured mine with brouting to ROUTE over the wds links (ospf) so it will use the best path but you still have to have them all added to the bridge so that nas can configure them
Sam

I was commanded to test 10 Linksyses in WDS mode and of course only possibility was to use STP. Final throughput was 8Mb/s which is enough for my purposes.

The discussion might have continued from here.