From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-x22a.google.com (mail-ie0-x22a.google.com [IPv6:2607:f8b0:4001:c03::22a]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id 1564521F1AA for ; Thu, 16 Jan 2014 07:03:45 -0800 (PST) Received: by mail-ie0-f170.google.com with SMTP id u16so2012587iet.29 for ; Thu, 16 Jan 2014 07:03:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=duZvzT97P3JHs1lJZE53Z1QtXMw6yYPGhbMF4ec28BY=; b=ZFV0kLEzUjK18MekKUjmHGOEl5o6ONjqhFcpb6BZEqxOssntg6jl+C8foEcLaxfCHu F4U/3tvVRSEmWHLRTaTBed0UUJg0hLxWxnQlqiZCVGrB8xrI4FZ8ZRtCwxoRkespEP7L MeqJtFRaypSt2ezELneYq+E4M+iRbKviGvT6GULsgYSctpSQ7hzAhRg+AO0sn/6JvNtF EV+dMEexCjwLZBdlqoEgKubuRJdn1OrxjwQhtWz8LlUzj5LoaFiW0y1nyCrvcpHvL97n LYtCO4o7xTHse3lJmJxWc698UvfD4s7afR4b+IDxvlX3UWt4vsKfiMQvMxFrN7xrOFl7 KTYw== MIME-Version: 1.0 X-Received: by 10.43.60.139 with SMTP id ws11mr8497093icb.12.1389884624280; Thu, 16 Jan 2014 07:03:44 -0800 (PST) Received: by 10.64.248.70 with HTTP; Thu, 16 Jan 2014 07:03:44 -0800 (PST) Date: Thu, 16 Jan 2014 16:03:44 +0100 Message-ID: From: Aaron Wood To: cerowrt-devel Content-Type: multipart/alternative; boundary=bcaec51a89464f210f04f017bb95 Subject: [Cerowrt-devel] Managed to break 802.11n (on a 3800) X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2014 15:03:51 -0000 --bcaec51a89464f210f04f017bb95 Content-Type: text/plain; charset=ISO-8859-1 All, I'm noting this here in case anyone is interested. After I write this up, I'm going to start from scratch on the configuration, and factory-reset the router. ===== The 5GHz radio on my 3800 seems to be in a very odd state. I'm not quire sure what state it's in, but it seems to be only doing HT20 1x1. And in a fairly broken manner at that. Running the rrul test (over wifi directly to the router as the netserver), tcp uploads were 25Mbps or so, but download was 5Mbps. This is me 1-2 meters from the router. Load was never more than 0.33. (I can share the results of people are interested). After a full power cycle, wifi isn't coming up at all. ===== How I got here: I'm in France, and had dutifully set my unit with the FR country code when setting up CeroWRT. I had noticed some odd latencies (periodic 100-200ms latency every 10-20 seconds over wifi) on the 5GHz network. The router was on channel 36, and I wanted to move it up to the far-upper ranges, so I tried to specify a "custom" channel to do so (140). This was the channel I thought I had been using with stock (Netgear) firmware. Wifi didn't come back up after applying the changes, and the luci interface seemed to be tripping up over stuff that it was reading out of the configuration files. I ssh'd in via ethernet, and fixed up the configurations by hand. Except the driver is still reporting that the 5GHz network won't kick into 802.11n modes, and won't use HT40. It seems to be sure it's configured for it, but isn't using it. Further, digging into the rc_stats files with the minstrel speeds, I found some very odd data (not what I was expecting to see: (laptop, which can do 2x2 HT40) rate throughput ewma prob this prob this succ/attempt success attempts D 6 6.0 99.9 100.0 2( 2) 65 65 9 0.0 0.0 0.0 0( 0) 0 0 12 2.9 25.0 100.0 0( 0) 1 1 18 4.3 25.0 100.0 0( 0) 1 1 24 5.6 25.0 100.0 0( 0) 1 1 A P 36 32.4 99.9 100.0 0( 0) 51 51 C 48 10.4 25.0 100.0 0( 0) 1 1 B 54 11.5 25.0 100.0 0( 0) 1 1 Total packet count:: ideal 53 lookaround 7 (AppleTV, 1x1 HT20) root@cerowrt:/sys/kernel/debug/ieee80211/phy1/netdev:sw10# cat stations/58\:55\:ca\:51\:b5\:4b/rc_stats rate throughput ewma prob this prob this succ/attempt success attempts 6 3.5 57.8 100.0 0( 0) 6 6 9 3.9 43.7 100.0 0( 0) 2 2 12 5.1 43.7 100.0 0( 0) 2 2 18 10.0 57.8 100.0 0( 0) 3 3 D 24 13.1 57.8 100.0 0( 0) 3 3 C 36 14.2 43.7 100.0 0( 0) 2 2 B 48 18.2 43.7 100.0 0( 0) 2 2 A P 54 46.2 99.9 100.0 1( 1) 348 367 Total packet count:: ideal 331 lookaround 37 Whereas what I'm seeing for the 2.4GHz radio is: root@cerowrt:/sys/kernel/debug/ieee80211/phy0/netdev:sw00/stations# cat 10\:9a\:dd\:30\:96\:34/rc_stats type rate throughput ewma prob this prob retry this succ/attempt success attempts CCK/LP 1.0M 0.7 100.0 100.0 0 0( 0) 2 2 CCK/SP 2.0M 0.0 0.0 0.0 0 0( 0) 0 0 CCK/SP 5.5M 0.0 0.0 0.0 0 0( 0) 0 0 CCK/SP 11.0M 0.0 0.0 0.0 0 0( 0) 0 0 HT20/LGI MCS0 5.6 100.0 100.0 1 0( 0) 2 2 HT20/LGI MCS1 0.0 0.0 0.0 0 0( 0) 0 0 HT20/LGI MCS2 0.0 0.0 0.0 0 0( 0) 0 0 HT20/LGI MCS3 0.0 0.0 0.0 0 0( 0) 0 0 HT20/LGI MCS4 0.0 0.0 0.0 0 0( 0) 0 0 HT20/LGI MCS5 30.3 100.0 100.0 5 0( 0) 1 1 HT20/LGI t MCS6 32.5 100.0 100.0 5 0( 0) 11 11 HT20/LGI T P MCS7 35.0 100.0 100.0 5 6( 6) 34 34 Total packet count:: ideal 45 lookaround 3 Average A-MPDU length: 1.3 And here are radio blocks from the current /etc/config/wireless: config wifi-device 'radio1' option type 'mac80211' option macaddr '28:c6:8e:bb:9a:49' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option txpower '17' option distance '25' option channel '48' option country 'US' config wifi-device 'radio0' option type 'mac80211' option hwmode '11ng' option macaddr '28:c6:8e:bb:9a:47' option htmode 'HT20' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option txpower '26' option country 'FR' option distance '15' option channel 'auto' ====== Some notes after having repaired the situation: - The pci paths to the radios was missing from /etc/config/wireless, that's the only thing that I saw that seemed grossly out of place. - Back up and running, and yes, it's much happier, now. Over wifi I get 60-70Mbps upload and ~40Mbps download (running rrul). Latency sucks. Wifi has some ugly bufferbloat. (although these results are somewhat in question when the router has a 1m load average over 5.0...) - Enabling all the SQM features I was having previously also considerably cleaned up wifi performance. It's more balanced, but still not nearly as balanced as I see on gigabit ethernet. -Aaron --bcaec51a89464f210f04f017bb95 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
All,

I'm noting this here in = case anyone is interested. =A0After I write this up, I'm going to start= from scratch on the configuration, and factory-reset the router.

=3D=3D=3D=3D=3D

The 5GHz radio on m= y 3800 seems to be in a very odd state. =A0I'm not quire sure what stat= e it's in, but it seems to be only doing HT20 1x1. =A0And in a fairly b= roken manner at that.

Running the rrul test (over wifi directly to the router as the netserv= er), tcp uploads were 25Mbps or so, but download was 5Mbps. =A0This is me 1= -2 meters from the router. =A0Load was never more than 0.33. =A0(I can shar= e the results of people are interested).

After a full power cycle, wifi isn't coming up at a= ll.

=3D=3D=3D=3D=3D

How I got here= :


I'm in France, and had dutifu= lly set my unit with the FR country code when setting up CeroWRT. =A0I had = noticed some odd latencies (periodic 100-200ms latency every 10-20 seconds = over wifi) on the 5GHz network. =A0The router was on channel 36, and I want= ed to move it up to the far-upper ranges, so I tried to specify a "cus= tom" channel to do so (140). =A0This was the channel I thought I had b= een using with stock (Netgear) firmware.

Wifi didn't come back up after applying the changes= , and the luci interface seemed to be tripping up over stuff that it was re= ading out of the configuration files.

I ssh'd = in via ethernet, and fixed up the configurations by hand.

Except the driver is still reporting that the 5GHz netw= ork won't kick into 802.11n modes, and won't use HT40. =A0It seems = to be sure it's configured for it, but isn't using it.

Further, digging into the rc_stats files with the minstrel s= peeds, I found some very odd data (not what I was expecting to see:

(laptop, which can do 2x2 HT40)
rate =A0 = =A0 =A0throughput =A0ewma prob =A0this prob =A0this succ/attempt =A0 succes= s =A0 =A0attempts
=A0 =A0D =A0 6 =A0 =A0 =A0 =A0 6.0 =A0 =A0 =A0 99.9 =A0 =A0 =A0100.0 = =A0 =A0 =A0 =A0 =A0 =A0 2( =A02) =A0 =A0 =A0 =A065 =A0 =A0 =A0 =A0 =A065
=A0 =A0 =A0 =A09 =A0 =A0 =A0 =A0 0.0 =A0 =A0 =A0 =A00.0 =A0 =A0 =A0= =A00.0 =A0 =A0 =A0 =A0 =A0 =A0 0( =A00) =A0 =A0 =A0 =A0 0 =A0 =A0 =A0 =A0 = =A0 0
=A0 =A0 =A0 12 =A0 =A0 =A0 =A0 2.9 =A0 =A0 =A0 25.0 =A0 =A0= =A0100.0 =A0 =A0 =A0 =A0 =A0 =A0 0( =A00) =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 = =A0 =A0 1
=A0 =A0 =A0 18 =A0 =A0 =A0 =A0 4.3 =A0 =A0 =A0 25.0 =A0 =A0 =A0100.0 = =A0 =A0 =A0 =A0 =A0 =A0 0( =A00) =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 =A0 1
=A0 =A0 =A0 24 =A0 =A0 =A0 =A0 5.6 =A0 =A0 =A0 25.0 =A0 =A0 =A0100.= 0 =A0 =A0 =A0 =A0 =A0 =A0 0( =A00) =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 =A0 1<= /div>
A =A0 P 36 =A0 =A0 =A0 =A032.4 =A0 =A0 =A0 99.9 =A0 =A0 =A0100.0 = =A0 =A0 =A0 =A0 =A0 =A0 0( =A00) =A0 =A0 =A0 =A051 =A0 =A0 =A0 =A0 =A051
=A0 C =A0 48 =A0 =A0 =A0 =A010.4 =A0 =A0 =A0 25.0 =A0 =A0 =A0100.0 =A0= =A0 =A0 =A0 =A0 =A0 0( =A00) =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 =A0 1
=
=A0B =A0 =A054 =A0 =A0 =A0 =A011.5 =A0 =A0 =A0 25.0 =A0 =A0 =A0100.0 = =A0 =A0 =A0 =A0 =A0 =A0 0( =A00) =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 =A0 1

Total packet count:: =A0 =A0ideal 53 =A0 =A0 =A0look= around 7

(AppleTV, 1x1 HT20)
root@cerowrt:/= sys/kernel/debug/ieee80211/phy1/netdev:sw10# cat stations/58\:55\:ca\:51\:b= 5\:4b/rc_stats=A0
rate =A0 =A0 =A0throughput =A0ewma prob =A0this= prob =A0this succ/attempt =A0 success =A0 =A0attempts
=A0 =A0 =A0 =A06 =A0 =A0 =A0 =A0 3.5 =A0 =A0 =A0 57.8 =A0 =A0 =A0100.0= =A0 =A0 =A0 =A0 =A0 =A0 0( =A00) =A0 =A0 =A0 =A0 6 =A0 =A0 =A0 =A0 =A0 6
=A0 =A0 =A0 =A09 =A0 =A0 =A0 =A0 3.9 =A0 =A0 =A0 43.7 =A0 =A0 =A01= 00.0 =A0 =A0 =A0 =A0 =A0 =A0 0( =A00) =A0 =A0 =A0 =A0 2 =A0 =A0 =A0 =A0 =A0= 2
=A0 =A0 =A0 12 =A0 =A0 =A0 =A0 5.1 =A0 =A0 =A0 43.7 =A0 =A0 = =A0100.0 =A0 =A0 =A0 =A0 =A0 =A0 0( =A00) =A0 =A0 =A0 =A0 2 =A0 =A0 =A0 =A0= =A0 2
=A0 =A0 =A0 18 =A0 =A0 =A0 =A010.0 =A0 =A0 =A0 57.8 =A0 =A0 =A0100.0 = =A0 =A0 =A0 =A0 =A0 =A0 0( =A00) =A0 =A0 =A0 =A0 3 =A0 =A0 =A0 =A0 =A0 3
=A0 =A0D =A024 =A0 =A0 =A0 =A013.1 =A0 =A0 =A0 57.8 =A0 =A0 =A0100.= 0 =A0 =A0 =A0 =A0 =A0 =A0 0( =A00) =A0 =A0 =A0 =A0 3 =A0 =A0 =A0 =A0 =A0 3<= /div>
=A0 C =A0 36 =A0 =A0 =A0 =A014.2 =A0 =A0 =A0 43.7 =A0 =A0 =A0100.= 0 =A0 =A0 =A0 =A0 =A0 =A0 0( =A00) =A0 =A0 =A0 =A0 2 =A0 =A0 =A0 =A0 =A0 2<= /div>
=A0B =A0 =A048 =A0 =A0 =A0 =A018.2 =A0 =A0 =A0 43.7 =A0 =A0 =A0100.0 = =A0 =A0 =A0 =A0 =A0 =A0 0( =A00) =A0 =A0 =A0 =A0 2 =A0 =A0 =A0 =A0 =A0 2
A =A0 P 54 =A0 =A0 =A0 =A046.2 =A0 =A0 =A0 99.9 =A0 =A0 =A0100.0 = =A0 =A0 =A0 =A0 =A0 =A0 1( =A01) =A0 =A0 =A0 348 =A0 =A0 =A0 =A0 367
<= div>
Total packet count:: =A0 =A0ideal 331 =A0 =A0 =A0lookaro= und 37

Whereas what I'm seeing for the 2.4GHz radio = is:

root@cerowrt:/sys/kernel/debug/ieee80211/= phy0/netdev:sw00/stations# cat 10\:9a\:dd\:30\:96\:34/rc_stats=A0
type =A0 =A0 =A0 =A0 rate =A0 =A0 throughput =A0ewma prob =A0 this prob =A0= retry =A0 this succ/attempt =A0 success =A0 =A0attempts
CCK/LP = =A0 =A0 =A0 =A01.0M =A0 =A0 =A0 =A0 =A0 0.7 =A0 =A0 =A0100.0 =A0 =A0 =A0 10= 0.0 =A0 =A0 =A00 =A0 =A0 =A0 =A0 =A0 =A0 =A00( =A00) =A0 =A0 =A0 =A0 2 =A0 = =A0 =A0 =A0 =A0 2
CCK/SP =A0 =A0 =A0 =A02.0M =A0 =A0 =A0 =A0 =A0 0.0 =A0 =A0 =A0 =A00.0 = =A0 =A0 =A0 =A0 0.0 =A0 =A0 =A00 =A0 =A0 =A0 =A0 =A0 =A0 =A00( =A00) =A0 = =A0 =A0 =A0 0 =A0 =A0 =A0 =A0 =A0 0
CCK/SP =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 =A0 =A0= =A0 =A0 =A0 =A00.0 =A0 =A0 =A0 =A00.0 =A0 =A0 =A0 =A0 0.0 =A0 =A0 =A00 =A0= =A0 =A0 =A0 =A0 =A0 =A00( =A00) =A0 =A0 =A0 =A0 0 =A0 =A0 =A0 =A0 =A0 0
HT20/LGI =A0 =A0 MCS5 =A0 =A0 =A0 =A0 =A0 30.3 =A0 =A0 =A0100.0 =A0 = =A0 =A0 100.0 =A0 =A0 =A05 =A0 =A0 =A0 =A0 =A0 =A0 =A00( =A00) =A0 =A0 =A0 = =A0 1 =A0 =A0 =A0 =A0 =A0 1
HT20/LGI =A0t =A0MCS6 =A0 =A0 =A0 =A0= =A0 32.5 =A0 =A0 =A0100.0 =A0 =A0 =A0 100.0 =A0 =A0 =A05 =A0 =A0 =A0 =A0 = =A0 =A0 =A00( =A00) =A0 =A0 =A0 =A011 =A0 =A0 =A0 =A0 =A011
HT20/LGI T P MCS7 =A0 =A0 =A0 =A0 =A0 35.0 =A0 =A0 =A0100.0 =A0 =A0 = =A0 100.0 =A0 =A0 =A05 =A0 =A0 =A0 =A0 =A0 =A0 =A06( =A06) =A0 =A0 =A0 =A03= 4 =A0 =A0 =A0 =A0 =A034

Total packet count:: =A0 = =A0ideal 45 =A0 =A0 =A0lookaround 3
Average A-MPDU length: 1.3


And here are radio blocks from the= current /etc/config/wireless:

config wifi-de= vice 'radio1'
option type 'mac80211'
option macaddr '28:c6= :8e:bb:9a:49'
li= st ht_capab 'SHORT-GI-40'
list ht_capab 'TX-STBC'
list ht_capab 'RX-STB= C1'
list ht_capa= b 'DSSS_CCK-40'
option txpower '17'
option distance '25&#= 39;
option channel &= #39;48'
option c= ountry 'US'

config wifi-device 'radio0'
option type 'mac80211= 9;
option hwmode = 9;11ng'
option macaddr '28:c6= :8e:bb:9a:47'
op= tion htmode 'HT20'
= list ht_capab 'SHORT-GI-40'
list ht_capab 'TX-STB= C'
list ht_capab= 'RX-STBC1'
= list ht_capab 'DSSS_CCK-40'
option txpower '26= 9;
option country &#= 39;FR'
option di= stance '15'
option channel 'auto&= #39;

=3D=3D=3D=3D=3D=3D

=
Some notes after having repaired the situation:

- The pci paths to the radios was missing from /etc/config/wireless, tha= t's the only thing that I saw that seemed grossly out of place.

- Back up and running, and yes, it's much happier, = now. =A0Over wifi I get 60-70Mbps upload and ~40Mbps download (running rrul= ). =A0Latency sucks. =A0Wifi has some ugly bufferbloat. =A0(although these = results are somewhat in question when the router has a 1m load average over= 5.0...)

- Enabling all the SQM features I was having previously= also considerably cleaned up wifi performance. =A0It's more balanced, = but still not nearly as balanced as I see on gigabit ethernet.



-Aaron
--bcaec51a89464f210f04f017bb95--