<div dir="ltr">Justin chiming in here on the wireless aspect of the question (wISP here).<div><br></div><div>I highly suspect that you have something new in the area reflecting the wireless signal.  When you are transmitting very low throughput, the reflections don&#39;t appear very strong and you can get a very good service at that speed.  If you then start pushing a lot of throughput across the link, the reflections overtake the signal and your throughput plummets.</div>
<div><br></div><div>Since the TQ is calculated from small broadcast packets, they will use the link lightly and the reflections wont cause big issues.  This is a downside of how 802.11 radios work.  The radios only transmit where there is data to be transmitted, so when the data is light the link doesn&#39;t suffer any of the typical fresnel zone infraction and reflection issues.</div>
<div><br></div><div>This would be my first educated guess at what&#39;s causing your issue.  Nothing really to do with batman-adv, just a pitfall of wifi.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, May 2, 2014 at 8:30 AM, cmsv <span dir="ltr">&lt;<a href="mailto:cmsv@wirelesspt.net" target="_blank">cmsv@wirelesspt.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Ben<br>
<br>
Last night i decreased all the network access points  to 17 dBm thinking<br>
if my problem is due too much noise from co-existent channels from same<br>
network nodes and unless i my conclusion is wrong i do not think the<br>
Ap&#39;s cause problems to each other because after the decrease in txpower;<br>
not only batman-adv TQ got lower as well as dBm and throughput. In other<br>
words there was no improvement and this is not the first time i try the<br>
sort of test.<br>
<br>
Today i reverted to normal higher values and things improved but still<br>
far from whet they were when the nodes were upgraded.<br>
<br>
I will describe the situation i have with 2 of the 3 access points.<br>
They all run ath9k on one radio with vap interfaces.<br>
<br>
<br>
<br>
AP (A) uses a 15 dbi omni Atheros AR9132 rev 2<br>
AP (B) uses a 8 dbi omni Atheros AR7240 rev 2<br>
<br>
Distance from each other is about 100 metres.<br>
Right now AP A is at 20 dbm and AP B at 19 dBm<br>
<br>
From AP (B) to AP (A) i get:<br>
<br>
Station AP (B) (on adhoc0)<br>
        inactive time:  20 ms<br>
        rx bytes:       1087140<br>
        rx packets:     9708<br>
        tx bytes:       906<br>
        tx packets:     7<br>
        tx retries:     14<br>
        tx failed:      2<br>
        signal:         -49 [-49, -58] dBm<br>
        signal avg:     -49 [-49, -58] dBm<br>
        tx bitrate:     2.0 MBit/s<br>
        rx bitrate:     1.0 MBit/s<br>
        authorized:     yes<br>
        authenticated:  yes<br>
        preamble:       long<br>
        WMM/WME:        yes<br>
        MFP:            no<br>
        TDLS peer:      no<br>
<br>
<br>
Batman-adv TQ at 91 and with a hop in the middle. Without the hop<br>
batman-adv does not even see AP (A). The hop has a penalty of 150.<br>
<br>
iperf reports:<br>
0.0-10.3 sec  7.38 MBytes  6.02 Mbits/sec<br>
<br>
However batman-adv chooses another gateway which is further away but doe<br>
not have a hop and gets less throughput<br>
<br>
<br>
and continues to<br>
<br>
        inactive time:  30 ms<br>
        rx bytes:       4320939<br>
        rx packets:     40264<br>
        tx bytes:       2561<br>
        tx packets:     18<br>
        tx retries:     55<br>
        tx failed:      9<br>
        signal:         -59 [-59, -68] dBm<br>
        signal avg:     -58 [-59, -67] dBm<br>
        tx bitrate:     2.0 MBit/s<br>
        rx bitrate:     1.0 MBit/s<br>
<br>
From AP (A) to AP (B)<br>
<br>
<br>
Station AP (A) (on adhoc0)<br>
        inactive time:  1110 ms<br>
        rx bytes:       106752<br>
        rx packets:     629<br>
        tx bytes:       1753<br>
        tx packets:     13<br>
        tx retries:     70<br>
        tx failed:      5<br>
        signal:         -91 [-94, -111, -93] dBm<br>
        signal avg:     -89 [-93, -107, -91] dBm<br>
        tx bitrate:     6.5 MBit/s MCS 0<br>
        rx bitrate:     6.0 MBit/s<br>
        authorized:     yes<br>
        authenticated:  yes<br>
        preamble:       long<br>
        WMM/WME:        yes<br>
        MFP:            no<br>
        TDLS peer:      no<br>
<br>
<br>
Batman-adv TQ at  101 with the same hop in the middle<br>
iperf reports  7.38 MBytes  6.11 Mbits/sec<br>
<br>
<br>
And this is somewhat an okay scenario since this link was at 17 dBm from<br>
AP (B) providing 15 mbit and with a TQ of 250 average.<br>
<br>
Usually i get tx and rx  bitrate around 1mbit from AP (A) side.<br>
<br>
There is a huge discrepancy here with link quality and how batman-adv is<br>
doing the choice as well as signal and signal average.<br>
<br>
Before Both sides were around -50 dBm in average but now  AP (A) is<br>
always around -80 and worse.<br>
<br>
Notice that these results are only possible due to the existence of  a<br>
middle node that was setup  as a backup.<br>
Without the middle node AP (A) does not see AP (B).<br>
<br>
I am inclined to think about a driver issue that got into play after i<br>
played with some configurations. I see this as a possibility for the<br>
tp-link routers i have in the mesh as the dlinks seem to perform better.<br>
<br>
and continues to<br>
<br>
        inactive time:  1730 ms<br>
        rx bytes:       186480<br>
        rx packets:     1303<br>
        tx bytes:       2381<br>
        tx packets:     17<br>
        tx retries:     92<br>
        tx failed:      8<br>
<br>
Some more info bellow from AP (A)<br>
<br>
<br>
Wireless kernel debug<br>
<br>
Reset:<br>
    Baseband Hang:  0<br>
Baseband Watchdog:  0<br>
   Fatal HW Error:  0<br>
      TX HW error:  0<br>
     TX Path Hang:  0<br>
      PLL RX Hang:  0<br>
        MCI Reset:  0<br>
<br>
Ani:<br>
            ANI: ENABLED<br>
      ANI RESET: 175<br>
        SPUR UP: 37<br>
      SPUR DOWN: 37<br>
 OFDM WS-DET ON: 0<br>
OFDM WS-DET OFF: 0<br>
     MRC-CCK ON: 0<br>
    MRC-CCK OFF: 0<br>
    FIR-STEP UP: 27<br>
  FIR-STEP DOWN: 49<br>
 INV LISTENTIME: 0<br>
    OFDM ERRORS: 192247<br>
     CCK ERRORS: 200380<br>
<br>
Interrupt:<br>
                   RX:    2352822<br>
                RXEOL:          0<br>
                RXORN:          0<br>
                   TX:     498420<br>
                TXURN:          0<br>
                  MIB:          0<br>
                RXPHY:          0<br>
                RXKCM:          0<br>
                 SWBA:    2634014<br>
                BMISS:          0<br>
                  BNR:          0<br>
                  CST:        788<br>
                  GTT:      34321<br>
                  TIM:          0<br>
               CABEND:          0<br>
             DTIMSYNC:          0<br>
                 DTIM:          0<br>
               TSFOOR:          0<br>
                  MCI:          0<br>
             GENTIMER:          0<br>
                TOTAL:    5313102<br>
SYNC_CAUSE stats:<br>
             Sync-All:    5165669<br>
              RTC-IRQ:    2863390<br>
              MAC-IRQ:    4227348<br>
EEPROM-Illegal-Access:    2837451<br>
          APB-Timeout:      57826<br>
    PCI-Mode-Conflict:      57422<br>
          HOST1-Fatal:      43642<br>
           HOST1-Perr:      66006<br>
       TRCV-FIFO-Perr:      92477<br>
          RADM-CPL-EP:      58826<br>
  RADM-CPL-DLLP-Abort:      60567<br>
   RADM-CPL-TLP-Abort:      51149<br>
    RADM-CPL-ECRC-Err:      54651<br>
     RADM-CPL-Timeout:      89152<br>
    Local-Bus-Timeout:      69195<br>
            PM-Access:      80875<br>
            MAC-Awake:     104915<br>
           MAC-Asleep:     137511<br>
     MAC-Sleep-Access:     761892<br>
<br>
Dma:<br>
Raw DMA Debug values:<br>
<br>
0: 88888888 1: 00000000 2: 12249249 3: 00000000<br>
4: 00000000 5: 00000000 6: 001d264c 7: 000281c0<br>
<br>
Num QCU: chain_st fsp_ok fsp_st DCU: chain_st<br>
 0           0      1      1            0<br>
 1           0      1      1            0<br>
 2           0      1      1            0<br>
 3           0      1      1            0<br>
 4           0      1      1            0<br>
 5           0      1      1            0<br>
 6           0      1      1            0<br>
 7           0      1      1            0<br>
 8           0      0      1            0<br>
 9           0      0      1            0<br>
<br>
qcu_stitch state:    0    qcu_fetch state:         0<br>
qcu_complete state:  0    dcu_complete state:      0<br>
dcu_arb state:       0    dcu_fp state:            0<br>
chan_idle_dur:     147    chan_idle_dur_valid:     1<br>
txfifo_valid_0:      0    txfifo_valid_1:          0<br>
txfifo_dcu_num_0:    9    txfifo_dcu_num_1:       14<br>
pcu observe: 0x2890<br>
AR_CR: 0x4<br>
<br>
Xmit:<br>
                            BE         BK        VI        VO<br>
<br>
MPDUs Queued:             5747          0         0      7405<br>
MPDUs Completed:        137383          0         0      4183<br>
MPDUs XRetried:           7730          0         0      3222<br>
Aggregates:              17209          0         0         0<br>
AMPDUs Queued HW:            0          0         0         0<br>
AMPDUs Queued SW:       308165          0         0         0<br>
AMPDUs Completed:       168767          0         0         0<br>
AMPDUs Retried:          12546          0         0         0<br>
AMPDUs XRetried:            32          0         0         0<br>
TXERR Filtered:              3          0         0         0<br>
FIFO Underrun:               0          0         0         0<br>
TXOP Exceeded:               0          0         0         0<br>
TXTIMER Expiry:              0          0         0         0<br>
DESC CFG Error:              0          0         0         0<br>
DATA Underrun:               0          0         0         0<br>
DELIM Underrun:              0          0         0         0<br>
TX-Pkts-All:            313912          0         0      7405<br>
TX-Bytes-All:        161389767          0         0    233291<br>
HW-put-tx-buf:              12          0         0       146<br>
HW-tx-start:            262235          0         0      7405<br>
HW-tx-proc-desc:        262416          0         0      7405<br>
TX-Failed:                   0          0         0         0<br>
<br>
Queues:<br>
(VO):  qnum: 0 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0<br>
(VI):  qnum: 1 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0<br>
(BE):  qnum: 2 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0<br>
(BK):  qnum: 3 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0<br>
(CAB): qnum: 8 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0<br>
<br>
<br>
On 04/30/2014 10:00 PM, Ben West wrote:<br>
&gt; What does &quot;iw wlan0 station dump&quot; have to say?  In particular, what is<br>
&gt; the ratio of TX packets to TX retries (or failures)?<br>
&gt;<br>
&gt; I&#39;ve generally seen 10% TX retries, compared to total TX packets, to be<br>
&gt; quite ideal.  A substantially higher percentage of TX retries,<br>
&gt; especially if over 100%, usually indicates a problem with noise or<br>
&gt; interference.<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Apr 30, 2014 at 6:57 PM, cmsv &lt;<a href="mailto:cmsv@wirelesspt.net">cmsv@wirelesspt.net</a><br>
&gt; &lt;mailto:<a href="mailto:cmsv@wirelesspt.net">cmsv@wirelesspt.net</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     inline reply<br>
&gt;<br>
&gt;     On 04/24/2014 05:27 AM, Nicolás Echániz wrote:<br>
&gt;     &gt; El 24/04/14 05:34, cmsv escribió:<br>
<div><div class="h5">&gt;     &gt;&gt; Recently i have experienced something quite usual to my<br>
&gt;     experience and<br>
&gt;     &gt;&gt; that was not happening previously in the same scenario where it is<br>
&gt;     &gt;&gt; happening now.<br>
&gt;     &gt;&gt;<br>
&gt;     &gt;&gt; Here is the example:<br>
&gt;     &gt;&gt; 2 nodes at with adhoc at 2.4ghz at a distance of 415 meters<br>
&gt;     &gt;&gt; one uses an omni 15 dbi antenna at 18dbi and another 24 dbi grid<br>
&gt;     at 16 dbi.<br>
&gt;     &gt;&gt;<br>
&gt;     &gt;&gt; This link was previously providing up to 21 mbit being 17 mbit a the<br>
&gt;     &gt;&gt; lowest. Batman-adv TQ value was always around 230 being many<br>
&gt;     times above<br>
&gt;     &gt;&gt; 250.<br>
&gt;     &gt;&gt;<br>
&gt;     &gt;&gt; However this has recently changed the same link with 230~250 TQ<br>
&gt;     and the<br>
&gt;     &gt;&gt; same txpower is now outputting 1.93 Mbits/sec<br>
&gt;     &gt;&gt;<br>
&gt;     &gt;&gt; I have used iperf for bandwidth tests. Batman-adv version is 2013.4.<br>
&gt;     &gt;&gt; Although i have considered several types of scenarios that can be<br>
&gt;     &gt;&gt; causing this issue i have also tested against some which leaves me<br>
&gt;     &gt;&gt; puzzled in regards to the presented TQ quality and dBm values as the<br>
&gt;     &gt;&gt; nodes dBm are sometimes bad (ie: -80 ~ -90)<br>
&gt;     &gt;&gt;<br>
&gt;     &gt;&gt; One of the main questions is: shouldn&#39;t batman-adv TQ reflect or be<br>
&gt;     &gt;&gt; influenced by dBm values ? How come with -90 dBm i get batman-adv to<br>
&gt;     &gt;&gt; show me 230 TQ ?<br>
&gt;     &gt;&gt;<br>
&gt;     &gt;&gt; Also any feedback based on your experience regarding this type of<br>
&gt;     &gt;&gt; scenario is welcome. This situation happened overnight without any<br>
&gt;     &gt;&gt; access point new configurations or physical setup changes.<br>
&gt;<br>
</div></div><div class="">&gt;     &gt; what&#39;s the mcast_rate value?<br>
&gt;     &gt;<br>
&gt;     &gt; having 230~250 TQ on a -80/-90dBm link seems like you have a very low<br>
&gt;     &gt; mcast_rate.<br>
&gt;<br>
</div>&gt;     I have always used the driver default setup to decide the bitrate and<br>
&gt;     that worked up to a certain moment. Specifying it did not do much better<br>
&gt;     but today i found this message<br>
&gt;<br>
&gt;     ath: phy0: unsupported hw bitrate detected 0x1f using 1 Mbit<br>
&gt;<br>
&gt;     Currently:<br>
&gt;     wireless.@wifi-iface[0].mcast_rate=6000<br>
&gt;<br>
&gt;     and i tested with up to 36000<br>
&gt;<br>
&gt;     But i have also gotten the unsupported hw bitrate message without<br>
&gt;     setting mcast_rate<br>
&gt;<br>
&gt;     iwinfo reports:<br>
&gt;               Tx-Power: 19 dBm  Link Quality: 36/70<br>
&gt;               Signal: -74 dBm  Noise: -95 dBm<br>
&gt;               Bit Rate: 29.7 MBit/s<br>
&gt;               Encryption: WPA PSK (CCMP)<br>
&gt;               Type: nl80211  HW Mode(s): 802.11bgn<br>
&gt;               Hardware: unknown [Generic MAC80211]<br>
&gt;               TX power offset: unknown<br>
&gt;               Frequency offset: unknown<br>
&gt;               Supports VAPs: yes<br>
&gt;<br>
&gt;     iw reports:<br>
&gt;<br>
&gt;     Frequencies:<br>
&gt;                             * 2412 MHz [1] (20.0 dBm)<br>
&gt;                             * 2417 MHz [2] (20.0 dBm)<br>
&gt;                             * 2422 MHz [3] (20.0 dBm)<br>
&gt;                             * 2427 MHz [4] (20.0 dBm)<br>
&gt;                             * 2432 MHz [5] (20.0 dBm)<br>
&gt;                             * 2437 MHz [6] (20.0 dBm)<br>
&gt;                             * 2442 MHz [7] (20.0 dBm)<br>
&gt;                             * 2447 MHz [8] (20.0 dBm)<br>
&gt;                             * 2452 MHz [9] (20.0 dBm)<br>
&gt;                             * 2457 MHz [10] (20.0 dBm)<br>
&gt;                             * 2462 MHz [11] (20.0 dBm)<br>
&gt;                             * 2467 MHz [12] (20.0 dBm)<br>
&gt;                             * 2472 MHz [13] (20.0 dBm)<br>
&gt;                             * 2484 MHz [14] (disabled)<br>
&gt;<br>
&gt;     And o notice that i am at the moment unable to set 20dBm unless i<br>
&gt;     re-flash the device.<br>
&gt;<br>
&gt;     wireless.radio0.htmode=HT20<br>
&gt;<br>
&gt;                     Bitrates (non-HT):<br>
&gt;                             * 1.0 Mbps<br>
&gt;                             * 2.0 Mbps (short preamble supported)<br>
&gt;                             * 5.5 Mbps (short preamble supported)<br>
&gt;                             * 11.0 Mbps (short preamble supported)<br>
&gt;                             * 6.0 Mbps<br>
&gt;                             * 9.0 Mbps<br>
&gt;                             * 12.0 Mbps<br>
&gt;                             * 18.0 Mbps<br>
&gt;                             * 24.0 Mbps<br>
&gt;                             * 36.0 Mbps<br>
&gt;                             * 48.0 Mbps<br>
&gt;                             * 54.0 Mbps<br>
&gt;<br>
&gt;     I also tested while removing HT functionality but without better results<br>
&gt;<br>
&gt;     Horst shows;<br>
&gt;     91% usage for 1M rate<br>
&gt;     3.4% usage for 6M rate<br>
&gt;     4% usage for 36M rate<br>
&gt;<br>
&gt;     another node shows me :<br>
&gt;     ath: phy0: unsupported hw bitrate detected 0x33 using 1 Mbit<br>
&gt;<br>
&gt;     Chips in at the moment in use: Atheros AR9130 rev 2 and Atheros<br>
&gt;     AR9132 rev 2<br>
&gt;<br>
&gt;     So far it looks like a i have a bug according to atheros mailing lists<br>
&gt;      _______________________________________________<br>
&gt;     &gt; Battlemesh mailing list<br>
&gt;     &gt; <a href="mailto:Battlemesh@ml.ninux.org">Battlemesh@ml.ninux.org</a> &lt;mailto:<a href="mailto:Battlemesh@ml.ninux.org">Battlemesh@ml.ninux.org</a>&gt;<br>
&gt;     &gt; <a href="http://ml.ninux.org/mailman/listinfo/battlemesh" target="_blank">http://ml.ninux.org/mailman/listinfo/battlemesh</a><br>
&gt;     &gt;<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     openwrt-users mailing list<br>
&gt;     <a href="mailto:openwrt-users@lists.openwrt.org">openwrt-users@lists.openwrt.org</a> &lt;mailto:<a href="mailto:openwrt-users@lists.openwrt.org">openwrt-users@lists.openwrt.org</a>&gt;<br>
&gt;     <a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
<span class="HOEnZb"><font color="#888888">&gt;<br>
&gt; --<br>
&gt; Ben West<br>
&gt; <a href="http://gowasabi.net" target="_blank">http://gowasabi.net</a><br>
&gt; <a href="mailto:ben@gowasabi.net">ben@gowasabi.net</a> &lt;mailto:<a href="mailto:ben@gowasabi.net">ben@gowasabi.net</a>&gt;<br>
&gt; <a href="tel:314-246-9434" value="+13142469434">314-246-9434</a><br>
</font></span></blockquote></div><br></div>