On Fri, 27 Feb 2009 19:40:02 -0800 (PST), "davidr (at) insane (dot)
net (dot) au" <davidr@insane.net.au> wrote:
>One of our clients is an accommodation complex. They want to provide
>internet access to all their tenants and unfortunately due to the
>layout of the buildings it was not cost effective to run wired cables.
>As a result we went for a wireless solution.
Well, you didn't do everything wrong, but you came close.
I suggest you reconsider. The advantages of a wired backhaul are
substantial over WDS or other forms of mesh network. You only need a
cable or fiber to each access point, not each apartment. I'll cover
some of the other advantages as blunder along.
>There are 4 groups of buildings in total. The administration building
>and 3 complexes with units in them. They are spread out over a
>reasonable amount of distance. Each complex has two physical
>buildings. The buildings are all brick and are two storey.
Time for a short rant. Please supply numbers instead of vague
descriptions. How many buildings total? How high are the buildings.
What are the distances involved in meters? Where in or on the
buildings are the access points located? On the roof? Any coax
cable? If so, what types and how long? How high off the roof? How
are you entering each apartment with RF? Through the windows? How
much bandwidth do you have to the ISP? How many active users per AP?
Please try to be more specific and supply numbers. Extra credit for
hardware URL's so I don't have to Google for them.
While I'm busy ranting, in the future, please describe the problem
you're having first, then supply the details. It keeps everything in
context and is much easier to assemble an organized reply.
>We ended up going with 4x Netgear WG302v2's, using 21db waveguide's
>and 1watt amplifiers.
Problem #1. Too big an antenna and too much xmit power. The problem
with 11dBi omnidirection antennas is that they have a very narrow
vertical radiation angle. My guess is a -3dB beamwidth of about 5
degrees. If the antennas are perfectly vertical (yet another
difficulty), then you will have wonderful coverage of the rooftops and
possibly the upper floors. However, the lower floors may not get much
RF.
Problem #2. The 1 watt amplifiers create what I call an "alligator".
An alligator is an animal with a big mouth and small ears. Your
access point has a big mouth (1 watt) but the same size ears as the
average user client radio. However, the client radios only have
perhaps 40mw of xmit output or about 4% of the power output of your
amplified access points. The client have no problem hearing the
access point. However, the access point can't hear the client due to
the clients low xmit power. Working the numbers, your access points
have 5 times the tx range of the clients tx range.
All you're doing is generating interference with the 1 watt amplifier.
Remove it. Your usable client range will be about the same, and your
self-interference problems will be somewhat reduced.
>This was at the recommendation of a colleague of ours.
Well, at least you have a suitable scapegoat.
>The units were setup in peer to multi-peer configuration with
>the AP at the administration building being the main AP, where a
>server running freeRADIUS and an internet connection exists.
Problem #3. RADIUS authentication is UDP, not TCP. There's no
guaranteed delivery mechanism. If a single packet is lost, it's gone
forever and is not resent. RADIUS *ASSUMES* a reliable connection
between the access point and the RADIUS server. By running it over
the least reliable backhaul possible, you're just asking for login and
authentication failures.
However, it can be made to work reliably. One way is to run the
RADIUS authentication through a VPN tunnel. The tunnel will provide
the reliable delivery. There are only a few bytes going through the
tunnel so speed is not an issue. I'm not sure if it can be done with
WG302v2 access points (because I'm too lazy to read the docs). I
managed to get a flaky wireless point of sale system working fairly
well using the VPN trick. The application was so brain damaged that
the loss of only a single packet, would hang the server application.
Also, I used PPTP and DD-WRT.
>The APs were configured with WDS,
Problem #4. WDS has its place, but not outdoors. It's basically a
mesh network with all its issues but none of the reliability offered
by custom routing auto protocols, self healing, roaming, and such. WDS
is about as crude a mesh network as could be build. WDS and mesh also
force your system to put everyone on one channel. Think of it this
way.... There are 3 non-overlapping channels (1,8,11). If you had a
wired backhaul, you could put each access point on one of these 3
channels, and effectively have 3 times the over the air bandwidth, or
1/3 the mutual interference. I suggest you download and read
carefully channel layout section of the Intel Hotspot Guide archived
at:
<http://802.11junk.com/jeffl/crud/Intel%20HotSpot%20Guide.pdf>
Ummm... don't tell Intel where you found it.
WDS and mesh also creates over the air traffic constipation. Since
everything comes to one point (main router to ISP), most of the over
the air traffic will be through one of the WDS AP's. That means for
every packet from a client, another packet will need to be forwarded
to the main router over the same "airspace" and on the same RF
frequency. That cuts the available maximum bandwidth in half. Add a
few retransmissions and the "airspace" will be full of extra junk
instead of useful traffic.
What you should have done before deploying this abomination is put
everything in one large room, turn everything on, and make a few
thruput, latency, reliability, packet loss, and retrans rate
measurements. If it can't work inside a single room, with no outside
interference, it isn't going to work when installed on a rooftop. It
only gets worse when you move from the office to the roof, mostly due
to interference from other systems.
That brings up the problem of interference. Have you done a site
survey of the area looking for tenants that have their own systems?
I'm sure there is a huge number of existing systems in the apartment
complex. All of them could create interference. There are also other
sources of 2.4GHz junk. See:
<http://wireless.navas.us/wiki/Wi-Fi#Interference>
<http://www.cisco.com/en/US/prod/collateral/wireless/ps9391/ps9393/ps9394/prod_white_paper0900aecd807395a9_ns736_Networking_ Solutions_White_Paper.html>
I suggest you take known and potential interference problems rather
seriously. It only takes one leaky microwave oven to shut down the
entire neighborhood. How many microwave ovens are in the complex?
>having three SSIDs and VLANs. A
>silent SSID for the management vlan, an open security SSID for the
>guest VLAN which has a single website that provides the users with the
>information on configuring their computers and a WPA2 Enterprise
>secured SSID for the internet VLAN.
Problem #5. Too complexicated. The system management application
probably doesn't need a VLAN and also probably assumes that it's going
to be run over a reliable wired network, not a packet lost infested
wireless link. The guest VLAN is nice, but the same thing can be done
with a simple splash page prior to authentication. See NoCatSplash:
<http://www.dd-wrt.com/wiki/index.php?title=NoCatSplash>
Ignore the rubbish about it not working in the final version. That
was fixed long ago.
By management, I assume your using SNMP. What monitoring applications
are you using? I'm just curious.
>Users authenticate using WPA2/802.11x authentication against the
>RADIUS server using a username and password.
Good plan, but because RADIUS is UDP, you're going to have problems
due to packet loss.
Perhaps an example from an existing system might be useful. See:
<http://pdos.csail.mit.edu/roofnet/doku.php?id=interesting>
These are some "observations" from the MIT Roofnet mesh network
project (which commercially morphed into Meraki). Note the extremely
high packet loss (delivery probability). Can your system survive a
consistent 50% packet loss at 1Mbits/sec?
Actually, you can easily test it with just a PC, two ethernet cards,
and a floppy disk. See:
<http://info.iet.unipi.it/~luigi/ip_dummynet/>
I use this tool to simulate and generate line impairments and to
simulate and throttle a 100baseT ethernet link, so that it looks like
a T1 or other telco line.
<http://www.scalabledesign.com/articles/dummynet.html>
>Aside from the complications imposed in configuring Windows based
>computers with dot1x, we got the system up and running, however we
>started experiencing randomly timed packet loss.
Up and running where? In a controlled environment where you can
monitor performance and isolate problems, or installed immediately in
the apartment complex?
>We attempted
>adjusting the radio power levels in a hope to eradicate this problem
>(thinking it was radio overlap) but to no avail.
Rip the amplifiers out of the system. They're causing more trouble
than they're worth. They also probably cost more than the access
points. However, they won't eliminate interference problems,
especially mutual and self interference.
>When the packet loss occurs, the APs drop out and have to re-
>authenticate against the primary access point, which in turn causes
>connection to the RADIUS server to fail and boots all users off.
Hmmm... that doesn't sound like a wireless problem. I'm guessing,
but methinks there may be some timeouts that are adjustable on the
RADIUS server. You also seem to have a configuration problem. I'm
not 100.0% sure, but as I recall, once you login and authenticate with
the RADIUS server, there's no further traffic between the access point
and the server until it's time to renew the encryption key. You have
to be disconnected about a hour for that to become a problem. I
haven't tried it recently, but I do recall rebooting the RADIUS server
and being rather surprised that none of the clients went comatose.
I'll double check if I have time (in a few daze).
>We have since gone back and attempted to configure the system in
>purely repeater mode, but this resulted in more users being unable to
>stay connected for an extended period of time.
Think of repeater mode as WDS without the static routes. Every access
point that can hear a client will repeat the traffic. If all 4 of
your AP's can hear a client, you now have 4 extra packets flying
through the air.
>We have tried taking
>out the AP of the building in the middle, so there are only 3 radios
>in total, this helped a little, except that a section of the complex
>does not get a strong enough signal to connect now.
I suggest you forget about omni antennas for illuminating the outside
of a building. I use sector antennas which have a small vertical
radiation angle, but a wide (90-160 degree) horizontal angle. This is
perfect for illuminating a long but not very high building from a
distance.
<http://www.superpass.com>
<http://802.11junk.com/jeffl/antennas/AMOS-7/index.html> (12.5dBi)
<http://802.11junk.com/jeffl/antennas/AMOS-5/index.html> (14dBi)
The catch is that as long as you remain committed to using WDS or
mesh, you cannot use a directional antenna.
>We have setup monitoring to measure latency and packet loss,
How? What tools? What numerical results? How bad?
>in an
>attempt to try and determine any set pattern for the problem, however
>all we have found is that it is mostly random - occuring any time
>throughout the day, but much worse in the evening when most tenants
>are attempting to use the system.
No, in the evening is when they use their microwave ovens and home
cordless phones.
>When this problem occurs, the radios event logs report "tx queue
>stuck" just before they bomb out.
Well, that might be a problem with the WG302v2 radios. That means
that the access point is trying to flush its TX buffer, but there's so
much interference that it can't hear the ACK's from the client radios.
It's suppose to give up, flush the queue, and complain to the source.
Instead, it's dropping the connection. I'm not sure exactly what's
going on but it doesn't seem normal. Sniff with WireShark and maybe
it's something easy.
>Unfortunately there is no way to hard wire each AP together without an
>expensive outlay in fibre optics.
Every apartment complex I've seen has CATV and telco services between
buildings to/from a utility room. I've run 10baseT over telco twisted
pair. There are also several systems for running data over CATV coax.
If desperate, you could consider power line networking, but I wouldn't
do that in a shared environment.
>It has also been suggested (by the
>colleague who helped us in the first place) that we may need to setup
>additional APs in the 5ghz spectrum to handle the link between the
>admin building and each complex, and run each of the existing radio's
>on a separate channel and SSID, to avoid overlap.
Yep. That would solve exactly two of the aforementioned problems.
However, it would not solve the potential reliability problems caused
by the use of UDP by RADIUS. Think of it in terms of reliability and
fade margin. See SOM table at:
<http://wireless.navas.us/wiki/Wi-Fi#Link_Calculations>
If your rooftop links have a fade margin of about 30dB, you'll have
99.9% reliability and 8.8 hours of downtime per year. That's not very
good and you'll see random failures. You won't get that level of
reliably if you run 4 wireless 5.7GHz bridges, all on the same
frequency, to central access point. It would need to be individual
point to point links, with 4 antennas and radios at the central AP.
That's ugly. Otherwise, you're only improving a few things, solving a
few problems, and ignoring the cause (packet loss). Try to find out
why you're seeing packet loss. It might be something easy like
relocating the antennas, more AP's, or a mix of 5.7GHz, coax, fiber,
and CAT5 backhauls.
>Although this would most likely work - it seems like a massive over
>complication and defeats the purpose of WDS to begin with.
"Make everything as simple as possible, but not simpler"
Albert Einstein.
You might want to ponder if you've made things a bit too simple.
>We've struggled to find any really good information on this type of
>setup so any help would be greatly appreciated.
Check out the mailing lists and forums for wireless ISP (WISP).
<http://www.isp-wireless.com>
In effect, you're acting as an ISP. Everything is exactly the same as
a wired line ISP except you have the added enjoyment of dealing with a
totally unreliable delivery mechanism.
>The client is
>extremely frustrated as their tenants are not getting a fast, reliable
>connection and we need to find a solution for them soon.
90 minutes to write this mess. I need a lower overhead "hobby".
--
Jeff Liebermann
jeffl@cruzio.com
150 Felker St #D
http://www.LearnByDestroying.com
Santa Cruz CA 95060
http://802.11junk.com
Skype: JeffLiebermann AE6KS 831-336-2558