Sunday, January 13, 2013

Aligning a P2P Wi-Fi bridge link

I was recently called out to investigate a Wi-Fi bridge link that was being accused of being the culprit of a myriad of network problems.

Upon arrival on site, I noticed that the main site’s Wi-Fi bridge was sitting on channel 161, and that channel was overpopulated since there were two access points in the building, both on channel 161.  I moved the building’s access points to the UNII-1 band, and changed the bridge’s channel  to help alleviate some of the congestion since there was another access point on that channel across the street.  These three screenshots are  before I made any changes:

Note that the bridge is capable of achieving a 54 mb/s data rate, however only 3% of all the packets are traveling at that rate – and 92% of them are data packets.  The busiest data rate is the lowest data rate – with 72% of the traffic at that rate.  Hmmm….

Also, a quick screenshot as a baseline..

 

After coming up with a channel/power plan, I made the necessary changes.  The following three screenshots are post channel plan change.  I saw immediate improvement after my change.  The first screenshot is of the devices now on their newly assigned channels.

With the bridge’s new channel assignment, there is far less noise in the environment and the SNR increases.  This allows the bridge to negotiate a higher data rate.  On channel 153, the bridges are now able to send 78% of the data at 18 mb/s.  A dramatic increase over what I saw when sharing the same channel with other 802.11 devices.

 

Now that we have some of the low hanging fruit taken care of, it is time to check the out the line of site between the two dish antennas that are making this 2.79 mile Wi-Fi link.

When I did the calculations for this link, I discovered this link should easily handle 54 mb/s since it is less than three miles and it is using high gain antennas.   But it wasn’t, and here I am… (onsite)

I went up on the roof to take a look and here is what I found:

 

Physically, everything looked good.  But distance from the ground was only 16 feet.  The calculations from two online calculators both agreed these antennas should be ~35 feet above the ground.  Now to take a look at what the antenna sees:

I have centered the antenna’s “target” in this picture.  There is a “V” between those two trees you see in the middle, and a little white speck centered in the V.  That’s our target!  As you can see, we don’t have a clear line of site, which means the antenna does not either.

Fortunately the Electricians came to the rescue with an extension of ten feet.  After the extension had been fabricated, a bucket truck was used to move the antenna up ten feet.

Here’s the antenna’s new view:

Now that’s more like it.  The target is the white blur you see in the middle of this view.  There’s nothing we can do about the metal electrical pole in the middle, which I am told was not there when the link was initially designed.

Now what?  Well, we moved it up, but dishes are not easy to align because they don’t come with any type of sight, and when you are standing behind one (or sitting in the bucket of a bucket truck 30 feet above the ground) you can’t really see what you are doing.

We decided to use the RSSI port on the Cisco bridge to align it.  The first thing you need to do is identify the BNC connector on the unit, which is #2 on the graphic below.

And in “real life”…

Next, you’ll need a length of RG-6 or other 75 ohm coaxial cable with a BNC connector on it.  I bought my raw cable at Home Depot and the BNC cable at Radio Shack.  I stripped both ends with my coaxial cable stripper (I just happen to have one of those) and screwed one end into the BNC connector.  The other end I left raw – that’s the end I connected to my multimeter.  When I was at Radio Shack, I also bought a pair of alligator clips for my test leads – see photo of meter below.  These little gems allow you to clip the meter’s probes to the coaxial wire – connect the red to the center conductor, and the black to the shield.  It is a lot easier than trying to hold the test lead directly to the conductor – especially if you are by yourself.  For a myriad of reasons, I do not recommend doing this alone. 

Connect the BNC cable to the port and measure the voltage with a multimeter.  I snagged this little multimeter at Home Depot for twenty bucks on the same trip when hunting the RG-6.  The other things are in my toolkit – a pair of radios for communicating with someone at the other end of the link, a flexible mirror, and some rubber tape.  The rubber tape is used for weatherproofing cables and connectors, and the mirror for reflecting light.  It sometimes works, sometimes doesn’t.  Don’t try  it at night… it won’t work.  A road flare, on the other hand…

With the connector on the bridge, simply connect the meter and read the voltage using the vdc scale.   I measured the voltage before we raised the antenna so we would have a baseline, and it was .78 vdc.

With the antenna now raised, we simply moved the antenna back and forth, from left to right and then up and down until we reached the highest voltage we could achieve.  We did read 1.43 vdc once, and then tried to find that again but could not and finally settled with 1.35 vdc.  I was happy with that and we decided that we should lock it down and be done with it.

I am also going to mention the length of the coaxial cable.  You may be tempted to use/purchase a short piece of cable.  If you are up in a bucket truck and someone else is there, it is nice to be able to have someone call out the voltage levels to you while you do the antenna adjustment.  A long cable is your friend sometimes.  It isn’t expensive or heavy, so why not get 10 feet or more.  You’ll thank me later.

For those of you who are curious, here’s what the scale looks like when trying to align a Wi-Fi link:

 

We went from somewhere around -70 dBm (we were at .78 vdc) to approximate -55 dBm.  In my book, that is phenomenal.  We gained at least 10 dB – those of you who are knowledgeable in RF math know what that means!

I will also mention there is another way to align the antennas if you don’t have a meter, etc.  I have not done it this way, however I will include the directions here anyway.  I clipped this information from the hardware installation guide.

“Aligning the Antenna Using LED Indications” (from the Cisco manual)

 

You can align the integrated antenna using LEDs after the bridge successfully associates with a remote  bridge. In the installation mode before association to another bridge, the Install LED blinks amber. If the bridge associates to a root bridge, the Install LED turns continuous amber. If the bridge does not associate to a root bridge in the first 60 seconds, the Install LED blinks green to indicate beacons are being transmitted and the bridge is waiting for another non-root bridge to associate. After association, the Install LED turns into continuous green and the Ethernet, status, and radio LEDs then display signal strength as shown below.  When using LEDs to maximize the signal, adjust the antenna until as many LEDs as possible are turned on and the rest are blinking as fast as possible.

 

Here’s the equivalent scale to the RSSI voltage method.

This is a real world example of what the LEDs look like on the back of the bridge.  As you can probably guess,  trying to watch these LEDs and aim an external antenna might be a challenge in the afternoon sun.

 

Now the antenna has been raised and aligned, I want to see what the traffic looks like with a protocol analyzer.  Looks 98% of the traffic is traversing the Wi-Fi link at 54 mb/s.

I confirmed with a console connection to each bridge that the signal is now in the -55 dBm range, just as the bridge RSSI voltage table depicted.  The SNR was now in the 35-40 dB, much higher than earlier reports of it being in the 10-15 dB range.

What a difference ten feet makes!  Mission successful…

One of my lessons learned on this expedition was the fact that I forgot to grab some screenshots of the console output BEFORE I did my work.  I have a protocol analysis of what it looked like before I started, however I don’t have any CLI.  I would love to have a “before and after” – I’ll just have to settle for that screenshot above.  Next time I won’t forget.

BTW, thanks to all who helped me out with blogging.  I appreciate all the input.  You know who you are.

 

 

 

 

Monday, June 25, 2012

So, you want to do an outdoor WLAN site survey with AirMagnet Survey & Microsoft MapPoint software.  You will need to have MapPoint installed on your machine – I installed Microsoft MapPoint North America 2010 for my configuration.

First, you’ll need a GPS receiver.  I found the following GPS devices have been tested to work with AirMagnet Survey:

1. DeLorme Earthmate GPS LT-20
2. DeLorme Earthmate GPS LT-40
3. Garmin eTrex
4. Garmin eTrex Legend
5. Garmin GPS 18 Deluxe (Use with GPSGate conversion software)
6. Magellan eXplorist XL
7. Magellan eXplorist 500
8. Pharos iGPS-180

When I first started out on this project, I did not have a GPS receiver.  I simply browsed eBay and searched the list I provided above.  I wanted a USB flavored receiver, so I chose the DeLorme Earthmate GPS LT-20.  It came with software, which immediately made its way into the recycle bin.  It cost less than 20 bucks with shipping.

I went through the standard installation of any USB device.  I plugged it into my laptop and let it go out and download the drivers and install them.  It shows up here as the USB Human Interface Device:


You’ll also need serial emulator software.  I went online and downloaded the DeLorme Serial Emulator version 1.09, and installed it.  The file I downloaded and installed was named “InstallSerialEmulator.exe”



Next, configure the serial emulation software with the following parameters: 4800, 8/N/1, no flow control.  You should see a little satellite dish icon on the bottom right of your screen.  Right click it, select ports, and as you can see here, I am using Com 2.  Don’t be fooled into thinking you are to select NMEA.  I was, and it did not work.  I finally stumbled into using my Com 2 port, and using the “Raw” setting. 

When you select the port, only use ports 1 – 9.  Don’t use any others!


To test the serial emulation softwarae, I used Tera Term.  I started Tera Term, chose Com 2, and then went to Setup à Serial Port and set it up with the same parameters I used with the serial emulation software.



At first, I did not see any data scrolling by.  Even though when I right click on the serial emulator software and it shows that Auto-Start is checked, I had to click start.

When I clicked OK, I started to see data scroll past me.  Now I know my GPS is working properly.  I will also state that during the making of this document, I went back and forth quite a few times, taking screenshots and I ended up rebooting this machine to get it working.  Your mileage may vary.


Now you are ready to configure AirMagnet Survey Pro and start your survey.

Step 1. Create a new project, name it, select the directory and select the GPS option and click next.


Next you will import the map from MapPoint.  You will have to be connected to the Internet when you set your project up, so do it from somewhere with connectivity.  Iif you are not connected to the Internet, this is the message you will recieve when you choose MapPoint from the Import Outdoor Street/Campus Map:




Choose MapPoint from the Import Outdoor Street/Campus Map (GPS) Image


Microsoft MapPoint will automatically start, and bring up a window for you to zoom in and select the outdoor area you are going to survey.  Zoom in to the area that you want and press OK.






You’ll see the GPS coordinates of the top left and bottom right of the box you selected as your survey area.  Click next.

I’m going to choose an outdoor residential area.  Notice how it sets my propagation assessment to 300 feet.  I set my power to 30 milliwatts since I am guessing that is the output power of most access points in the neighborhood. Click Next, and then click Finish.


Before you can start surveying, you need to configure AirMagnet Survey to that it knows about your GPS receiver.  From Survey mode, select File > Configure > Settings. Check the “Enable GPS port” box.  Then click on the Configure button and configure the Com port – I am using Com 2 for my configuration.  When complete, click OK twice.


You should test to make sure your GPS is configured correctly in AirMagnet Survey.  Select the “Tools” tab from the bottom right portion of the toolbar on the bottom of your survey.  Click on the GPS Information tab, and you should see GPS coordinates.  If you do not see anything, your AirMagnet Survey application is not seeing your GPS receiver.  The first time I used the GPS receiver I did not see anything, and I needed to go back and set up my com ports correctly.

I went outdoors, waited for my GPS receiver to get a fix, and then walked down the street.  I walked down one side of the street, down a little path at the end, and then back on the other side of the street.  I would estimate the survey was accurate most of the time, and when it wasn’t, it was about 20 feet away from where I was really standing.  Pretty good if you ask me.

One thing to note – I did lose my GPS fix when I was under some very large Oak trees.  If you think you might lose reception, keep an eye on your screen.  You may see a message like this:


Overall, I’m pretty happy with AirMagnet’s GPS functionality.  It all went together relatively quickly and painlessly.  Remember to configure your serial emulation properly and you’ll do fine.

For those of you who are wondering what the final product looks like, here it is:




































Thursday, June 14, 2012

Is evaluating every device on your WLAN necessary? Yes!

I was recently tasked with assisting in the wireless configuration of an evaluation/demo unit that was going to be on-site for a few days. The device was a portable x-ray machine with a remote plate that communicates with the portable unit.

After assisting with the configuration of the portable unit, I inquired as to how the remote plate communicates with the portable. I was told it had an 802.11n bridge built in and that is how it communicated. Since I could not access the configuration of the portable or the plate, I used my protocol and spectrum analyzer to see how it was communicating.

As soon as the main unit was turned on, I noticed an access point on channel five.  The technicians ran a test of the portable x-ray and the remote plate for me and this is what I saw when the unit took the picture and transferred it over the “bridge link”.





As the saying goes, the packets never lie. Here are a few screen captures from my protocol analyzer.







From all the evidence here, knowing those packets never lie, is this configuration really a bridge?  I discovered that it is not a bridge - it is really an access point and the panel is a client.

Is the channel set up properly? No. It is set to channel 5, which is not a best practice in the 2.4 GHz range.

What is your opinion of the Channel Bonding?   I do not believe in channel bonding in the 2.4 GHz range.

Would you allow this device in your environment?

For those of you like me who always want to know what’s under the hood – here’s what I found:


Sunday, June 10, 2012

AirMagnet Applications - Internet connection not found error

I recently had an issue with my Fluke AirMagnet toolset that I would like to share.

I was going to do a site survey Friday afternoon. I had not used my survey laptop in several months when I pulled it out of the survey kit that morning, and decided now would be a good time put the latest versions of WiFi Analyzer and Survey Pro on it.

I downloaded the latest builds and licenses and installed both packages, and copied the licenses into the appropriate folder.  I tested both builds – I fired up WiFi Analyzer and it worked just fine with my Orinoco 8494 USB adapter; I opened the last project in Survey Pro and it worked as expected.  I did not use control panel à Add or Remove Programs first, however.  I just ran the executables.

I put my laptop back into my kit and went out to the site several hours later.  The site did not have any internet access when I arrived.  I got everything ready to do the work I was going to do and tried to start my AirMagnet Survey software.  I was surprised when I received this message:


Needless to say I was not amused.  I then tried my AirMagnet WiFi Analyzer, and got the same exact message:


Now I was doubly not amused.  I packed everything back up and went back to the office.  When I arrived, I booted up my laptop and both software packages worked – presumably because I was back on the network.

I then turned off my Wi-Fi adapter and tried to start Wi-Fi Analyzer.  Within milliseconds, I got the same error as before when launching the application.  I'll spare you the jpeg this time.

I called on a few WLAN Engineer friends and we all agreed that this was not something Fluke was doing on purpose, and it must be something on my machine.  To prove this point, several of my friends tried their machines (with similar builds) while not connected to a network and their applications started without issue.

I decided to start over.  I went to the Control Panel à Add or Remove Programs, and removed both apps and reinstalled them.  I got the same results as before – when on the network, my apps started, and when not on the network, they would not start.

I let the machine rest (and me) overnight, and in the morning I reached out to my friends again for sympathy, sanity checks, and advice.  One friend in particular (THANK YOU JH!!!) stated that she has always had to not only remove the software via the Control Panel, but to also nuke the C:\Program Files\AirMagnet Inc\AirMagnet Laptop folder after removing the software.

Since I had nothing else to lose, I went to the Control Panel à Add or Remove Programs, and removed both apps, then blew away the folders and then reinstalled the applications.  Problem solved, lesson learned.  Many thanks go out to everyone who offered up suggestions!




Saturday, June 9, 2012

Client issues when upgrading to 802.11n

We recently had an issue with an 802.11n upgrade that I would like to share.  Setting the scene – Cisco controllers recently upgraded to 7.0.220.0, HT enabled, with a building full of Cisco Aironet 1130 AG series access points.
A conference area was then refreshed with Cisco 3502i series access points.  Reports started to come in that laptops were locking up when clients roaming to the conference area from other parts of the building where the 1130 series access points are located.  Laptops are company issued HP 6930p series.
Below you will find details on the laptop models, OSes, and driver versions that were tested and their results.  You will also see the different testing scenarios and their results below that.  However, to summarize:

The only laptop that was able to reproduce the lockup issue was a 6930p running Windows XP with a 5300 AGN wireless adapter using 12.0.0.82 driver.  6930p running 12.4.4.5 and 14.3.2.1 drivers worked without an issue. 

After updating  the drivers to 14.3.2.1 (driver install package reads 14.3.1.1 but after installing it reports the driver as 14.3.2.1).  Feedback from those laptop customers it appears to have resolved their lockup issues.

Please don’t stop reading now.  Scroll all the way to the bottom and take a look at the testing scenarios!



Models tested
  • 6930p - Intel 5300 AGN - 12.0.0.82 - (XP) (14.3.2.1.)
    • Device connected to 3502 AP worked fine for approximately 1.5 hours
    • After roaming with laptop, it locked up and had to power cycle to recover
    • With AP connected to 3502, shutting down 3502 which would force client to roam to another AP
      1. Client wireless adapter locked up, but OS was still functioning  sluggishly.
      2. Had to power cycle laptop to recover
    • Updated driver to 14.3.2.1 and tested the same scenarios above and client worked in all cases.

  • 6930p - Intel 5300 AGN - 12.4.4.5 – (XP)
    • No issues, functioned properly
  • 8460p - Intel 6205 advanced N - 14.0.2.2 - (Win7)
    • No issues, functioned properly
  • 8460p - Intel 6205 advanced N - 14.0.1.2 - (XP)
    • No issues, functioned properly
  • 6910p - Intel 4965 AGN - 12.2.0.11 - (XP)
    • No issues, functioned properly
  • 6930p - Intel 5300 AGN - 12.4.0.21 - (XP)
    • No issues, functioned properly
  • 8440p - Intel 6200 advanced AGN - 14.0.1.2 - (XP)
    • No issues, functioned properly
  • 8460p - Intel 6205 advanced N - 15.1.1.1 - (XP)
    • No issues, functioned properly
  • 6930p - Intel 5300 AGN - 12.4.1.4 - (Win7)
    • No issues, functioned properly
  • 6910p - Intel 4965 AG - 13.0.0.107 - (Win7)
    • No issues, functioned properly



Testing scenarios
·         Client using 802.11g only
o    Unable to test this as the laptop that had the problem would not honor the adapter settings when disabling 802.11n mode and setting radio to 802.11g only (still connected at 802.11an)
o    This happened with the 12.0.0.82 and 14.3.2.1 drivers
o    Interesting thing is with the 6930p that has 12.4.4.5 drivers, it would properly honor the settings of disabling 802.11n and connecting at 802.11g only
·         Client using 802.11a only
o    Unable to test this as the laptop that had the problem would not honor the adapter settings when disabling 802.11n mode and setting radio to 802.11a only (still connected at 802.11an)
o    This happened with the 12.0.0.82 and 14.3.2.1 drivers
o    Again - interesting thing is with the 6930p that has 12.4.4.5 drivers, it would properly honor the settings of disabling 802.11n and connecting at 802.11a only
·         Client using 802.11an
o    Of all the laptop models and OSes tried, only the 6930p with 12.0.0.82 driver locked up.  All others worked fine.
o    6930p with 12.4.4.5 drivers worked just fine on 802.11an, no issues.
·         Roam between 1130 and 3502
o    The 6930p with 12.0.0.82 drivers locked up when roaming from 3502 to 1130 AP, issue was resolved when upgrading to 14.3.2.1 driver
o    The 6930p with 12.4.4.5 drivers worked just fine when roaming, no issues.
·         disable HT on wireless controller
o    all clients worked fine while connected at 80211a and 802.11g radios.  This, of course, is not the direction you want to go when you just upgraded your network to HT.