You are here

bandwidth...why won't this work?

13 posts / 0 new
Last post
kg9dw
kg9dw's picture
bandwidth...why won't this work?
I have two M5 nanobridge units 12 miles apart with a clear Fresnel zone. I'm running up in the ham only channels. SNR is 30db or better. At 5MHz bandwidth, the link is solid but the max throughput is less than 5MB/s. Ping times are less than 5ms. Changing to 10MHz bandwidth makes the link unstable. LQ and NLQ are still 100%, but ping times go from 5ms to 400+ms and throughput is non-existent. The distance parameter is set to 15km. Changing to 20MHz is also unstable.

I've tried moving to different channels thinking that maybe I was getting some interference, but the results were the same. The SNR always stays better than 30db, and is sometimes as good as 36db. Both units are running max power.

Airlink.ubnt.com shows this link with 21MB/s throughput at 5MHz, 84MB/s at 20MHz. 

Given that the ping times go through the roof, I'm guessing I'm getting a bunch of retransmits? Any other ideas or things I should try? 
K6AH
K6AH's picture
Km = Miles * 1.6
Try increasing the distance parameter to at least "20000".  The value is entered in "meters" and 12 miles = 19,200 meters.

Andre
AE6XE
AE6XE's picture
The max theoretical (in bits)
The max theoretical (in bits) for 802.11a mode that the nodes are configured to do, at the protocol level, is 54Mbps (20Mhz) or 13.5Mbps (5Mhz).   A thoughput test at the video steaming level would be somewhere around 20% to 40% of these numbers--at least based on the test results I see.

The max theoretical for 802.11n mode (coming very soon in AREDN), is 130Mbps (20Mhz) or 32.5Mbps (5Mhz).   Once we upgrade to OpenWRT Chaos Calmer, this number will go to 144Mbps (20Mhz) 

The distance value can make a significance difference...
kg9dw
kg9dw's picture
It was the distance
Setting the distance parameter too low definitely was my problem. I now have the mesh running at 20MHz bandwidth with the correct distance parameters, and everything is stable. It's interesting that having the parameter set too low didn't make a lick of difference at 5MHz but killed it at 10 and 20 MHz.

Live and learn.
Thanks,
Mike
K5DLQ
K5DLQ's picture
Just doing some "market

Just doing some "market research".... how did you determine the distance to your furthest node?

Did you use Google maps to pin the two points?

Did you estimate? etc...

kg9dw
kg9dw's picture
google maps
Google maps is what I used to determine point-to-point air miles. How I incorrectly converted 12 miles to 15km I'm not sure.
kc8rgo
Distance Parameter

Last year in AZ, I was trying nanostation M2 to rocket M2 and had good success with IP phone and full motion video at 5 miles, but could not get it to work at 7.8 miles.

Is the M2 a different animal or would changing the distance parameter on it make the 7.8 miles workable?

Thanks
Vance Kc8rgo

K5DLQ
K5DLQ's picture
The distance parm is CRUCIAL!
The distance parm is CRUCIAL across all devices/bands.
AE6XE
AE6XE's picture
Recently, a new mesh user put

Recently, a new mesh user put up a NS M2 on ch -2 and connected to a Rocket M2 with 120 deg sector panel at ~40 miles.  Here's a live view of this link--look for AF6YN.    It's a marginal link and she picked up a NanoBridge M3, and now has 100% LQ.

Joe AE6XE

 

Image Attachments: 
kc1bhd
Ubiquiti AirLink
Ubiquiti airlink is really good at point to point Shows line of sight too
kg9dw
kg9dw's picture
yep...
yep, and right there on airlink it shows as being 18.78km. Oh well, live and learn.
kg9dw
kg9dw's picture
Did you set the distance parameter correctly?

I'm documenting this here so that one day when I don't remember why I did what I did, I'll stumble across this posting.

Symptoms:
LQ is 100% but ping times go through the roof when trying to send traffic across the mesh. Throughput is limited.

Possible Cause:
Did you set the distance parameter correctly?

Here's a good summary of the not-so-mysterious distance parameter:

So, reading the forum, I've seen recommendations of anywhere from 110% to 150% of the actual distance.  This is a pretty wide variation.  So, how critical is setting the right ACK distance?

 

Reading up on it, here is what I found.  When radio A sends a frame (Packet in radio speak) to radio B, it expects radio B to send a ACK frame acknowledging that it received radio A's frame.  Radio A can't just wait forever for the ACK, because radio B might not even know that radio A attempted to send it a frame.  So radio A waits a set amount of time (ACK Timeout) and if it didn't receive an ACK in that time it resends the frame.  If the ACK Timeout is set much longer than is needed, there is no problem on frames that radio B receives properly, but if radio B doesn't receive a frame properly, radio A is stalled waiting until the ACK Timeout runs out.  So, especially in connections with less than perfect conditions, setting the ACK Time too long slows throughput.

 

But what happens if the ACK Timeout is too short?  Reading up on it, here is what I found.  If the ACK Timeout is too short then radio A gives up on radio B before the ACK frame that is coming can reach radio A.  This results in radio A resending a frame that radio B had received just fine.  So this could easily halve bandwidth, but it's actually worse than that.  Since the radios are half-duplex, you can get situations where the ACK and the retransmitted frame try to share the same air time, causing collisions and holdoffs in standard WiFi, reducing the throughput even worse.  And in AirMAX, where the usual collision avoidance mechanisms are turned off, I can imagine an even worse scenario.  If radio B's ACKs are arriving while radio A is retransmitting then, due to the rigid timing structure, the ACKs will be missed and frames retransmitted repeatedly until the Max Retry limit is hit.  Then, since radio A has given up on retransmitting the frame, it would finally hear the ACK.  And, while all these retransmits are going on radio A will start lowering it's TX modulation rate because it thinks that radio B is not hearing the frames. This, I think, would be the cause of Rate Crashes that some of us see from time to time.

 

So it's critical that the ACK distance not be set too short.

This comes from: http://community.ubnt.com/t5/Installation-Troubleshooting/Setting-ACK-Distance/td-p/1131379  
While that's an incomplete thread, the description is the best one I've found so far.

If you're looking for the internals and the impacts, look here: http://www.air-stream.org.au/technical-references/ack-timeouts-and-effects-distance-links
This talks about not only changing the ACK distance parameter, but also changing the slottime based on physical distance. I've not done any additional research into slottime, so I'm just including it for thoroughness - no recommendations being made or implied.

Another good thread to read is this one, where Ken and Joe dive into details: http://www.aredn.org/content/distance-parameter

So now the question of what do you really set this parameter to in the AREDN gui? Opinion, conjecture, and tribal knowledge all point to 1.2 times the actual point-to-point distance in meters between nodes that can see each other on rf. 

Stay meshed, my friends.
73, Mike KG9DW



Image Attachments: 
K6AH
K6AH's picture
Meters, not Kilometers

Mike,

Thanks for the detailed description... as a moderator I took the opportunity to correct your last sentence from: "...point-to-point distance in km between nodes..." to read: "...point-to-point distance in meters between nodes...".

Thanks,

Andre, K6AH
 

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer