From owner-freebsd-wireless@FreeBSD.ORG Wed Dec 12 12:39:30 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2B5D5CB9; Wed, 12 Dec 2012 12:39:30 +0000 (UTC) (envelope-from jhugo@meraka.csir.co.za) Received: from marge.meraka.csir.co.za (marge.meraka.csir.co.za [146.64.28.1]) by mx1.freebsd.org (Postfix) with ESMTP id 96DFA8FC08; Wed, 12 Dec 2012 12:39:27 +0000 (UTC) Received: from jeep.localnet (unknown [IPv6:2001:4200:7000:3:223:aeff:fea7:a3c2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by marge.meraka.csir.co.za (Postfix) with ESMTPS id 67981D0CC16; Wed, 12 Dec 2012 14:39:19 +0200 (SAST) From: Johann Hugo To: Adrian Chadd Subject: Re: [ath] Degraded throughput - adhoc mode Date: Wed, 12 Dec 2012 14:39:18 +0300 Message-ID: <3370418.NcHjDjozy9@jeep> User-Agent: KMail/4.9.2 (FreeBSD/9.1-RC3; KDE/4.9.2; amd64; ; ) In-Reply-To: References: <201205181133.57403.jhugo@meraka.csir.co.za> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2012 12:39:30 -0000 On Sunday, December 09, 2012 04:18:45 PM Adrian Chadd wrote: > Ok, I've just taught the aggressive mode logic about IBSS. It's pretty > dirty - I may cop some hate for enabling aggressive mode for IBSS as > each IBSS node doesn't know about the overall voice/video data rates. > That's how it works in AP mode - the AP tracks the traffic it is > sending/receiving and changes its configuration based on that. It > can't take into account overlapping BSSes. > > In any case, can you just try that out in your lab and let me know how it > goes? Great, I'm now getting the same throughput for ADHOC and AP/STA mode. mesh-2870:~ # uname -a FreeBSD mesh-2870 10.0-CURRENT FreeBSD 10.0-CURRENT #15: Wed Dec 12 11:38:06 wlan0: flags=8843 metric 0 mtu 1500 ether 00:02:6f:41:19:09 inet6 fe80::202:6fff:fe41:1909%wlan0 prefixlen 64 scopeid 0x7 nd6 options=21 media: IEEE 802.11 Wireless Ethernet autoselect mode 11a status: running ssid mesh channel 128 (5640 MHz 11a) bssid 02:88:99:fe:ca:00 regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 24 mcastrate 6 mgmtrate 6 scanvalid 60 wme burst mesh-2870:~ # ifconfig wlan0 list wme AC_BE cwmin 4 cwmax 10 aifs 3 txopLimit 0 AC_BK cwmin 4 cwmax 10 aifs 7 txopLimit 0 AC_VI cwmin 3 cwmax 4 aifs 2 txopLimit 94 AC_VO cwmin 2 cwmax 3 aifs 2 txopLimit 47 mesh-2870:~ # ifconfig wlan0 wme aifs be 2 cwmin be 4 cwmax be 10 txoplimit be 64 mesh-2870:~ # iperf -V -c fe80::202:6fff:fe41:1908%wlan0 ------------------------------------------------------------ Client connecting to fe80::202:6fff:fe41:1908%wlan0, TCP port 5001 TCP window size: 40.1 KByte (default) ------------------------------------------------------------ [ 3] local fe80::202:6fff:fe41:1909 port 60833 connected with fe80::202:6fff:fe41:1908 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 34.4 MBytes 28.8 Mbits/sec mesh-2870:~ # iperf -V -c fe80::202:6fff:fe41:1908%wlan0 ------------------------------------------------------------ Client connecting to fe80::202:6fff:fe41:1908%wlan0, TCP port 5001 TCP window size: 40.1 KByte (default) ------------------------------------------------------------ [ 3] local fe80::202:6fff:fe41:1909 port 41099 connected with fe80::202:6fff:fe41:1908 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 34.6 MBytes 29.0 Mbits/sec Did you manage to figure out why the wme setting changes back when the interface if taken down/up ? Johann From owner-freebsd-wireless@FreeBSD.ORG Wed Dec 12 13:29:19 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 142B3BC0; Wed, 12 Dec 2012 13:29:19 +0000 (UTC) (envelope-from jhugo@meraka.csir.co.za) Received: from marge.meraka.csir.co.za (marge.meraka.csir.co.za [146.64.28.1]) by mx1.freebsd.org (Postfix) with ESMTP id 8742B8FC12; Wed, 12 Dec 2012 13:29:17 +0000 (UTC) Received: from jeep.localnet (unknown [IPv6:2001:4200:7000:3:223:aeff:fea7:a3c2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by marge.meraka.csir.co.za (Postfix) with ESMTPS id BB051D0CC03; Wed, 12 Dec 2012 15:29:15 +0200 (SAST) From: Johann Hugo To: Adrian Chadd Subject: Re: 11n in adhoc mode Date: Wed, 12 Dec 2012 15:29:14 +0300 Message-ID: <4399307.t8XoJk9xzo@jeep> User-Agent: KMail/4.9.2 (FreeBSD/9.1-RC3; KDE/4.9.2; amd64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: PseudoCylon , freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2012 13:29:19 -0000 On Wednesday, December 12, 2012 01:58:38 AM Adrian Chadd wrote: > Here's what I have trimmed this down to so far: > > http://people.freebsd.org/~adrian/ath/20121212-11n-ibss-and-other-stuff-3.di > ff > > Please disable ampdu for now (ifconfig wlanX -ampdu) as it just plain > doesn't work. > I'll figure out why once I figure out the cleanest way to get this 11n > IBSS stuff working. > > I've tested this between two 11n nodes and a third 11a only node. > So far it works out ok. But it obviously could do with a lot more > thorough testing. > > I'd appreciate feedback! > No luck. Maybe I'm missing some settings ? mesh-2870:~ # uname -a FreeBSD mesh-2870 10.0-CURRENT FreeBSD 10.0-CURRENT #15: Wed Dec 12 11:38:06 rc.conf create_args_wlan1="wlanmode adhoc country ZA" ifconfig_wlan1="10.50.50.2/24 ssid testADHOC channel 28:ht/40 -ampdu bssid 02:8c:ca:fe:ca:10" mesh-2870:~ # ifconfig wlan1 wlan1: flags=8843 metric 0 mtu 1500 ether 00:0c:42:6c:63:20 inet 10.50.50.2 netmask 0xffffff00 broadcast 10.50.50.255 inet6 fe80::20c:42ff:fe6c:6320%wlan1 prefixlen 64 scopeid 0x8 nd6 options=21 media: IEEE 802.11 Wireless Ethernet autoselect mode 11na status: running ssid testADHOC channel 28 (5140 MHz 11a ht/40-) bssid 02:8c:ca:fe:ca:10 regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 17 mcastrate 6 mgmtrate 6 scanvalid 60 -ampdu ampdulimit 8k ampdudensity 8 shortgi wme burst mesh-2870:~ # ifconfig wlan1 list chan Channel 1 : 2412 MHz 11g ht Channel 52 : 5260* MHz 11a ht Channel 2 : 2417 MHz 11g ht Channel 56 : 5280* MHz 11a ht Channel 3 : 2422 MHz 11g ht Channel 60 : 5300* MHz 11a ht Channel 4 : 2427 MHz 11g ht Channel 64 : 5320* MHz 11a ht Channel 5 : 2432 MHz 11g ht Channel 100 : 5500* MHz 11a ht Channel 6 : 2437 MHz 11g ht Channel 104 : 5520* MHz 11a ht Channel 7 : 2442 MHz 11g ht Channel 108 : 5540* MHz 11a ht Channel 8 : 2447 MHz 11g ht Channel 112 : 5560* MHz 11a ht Channel 9 : 2452 MHz 11g ht Channel 116 : 5580* MHz 11a ht Channel 10 : 2457 MHz 11g ht Channel 120 : 5600* MHz 11a ht Channel 11 : 2462 MHz 11g ht Channel 124 : 5620* MHz 11a ht Channel 12 : 2467* MHz 11g ht Channel 128 : 5640* MHz 11a ht Channel 13 : 2472* MHz 11g ht Channel 132 : 5660* MHz 11a ht Channel 24 : 5120* MHz 11a ht Channel 136 : 5680* MHz 11a ht Channel 28 : 5140* MHz 11a ht Channel 140 : 5700* MHz 11a ht Channel 32 : 5160* MHz 11a ht Channel 149 : 5745* MHz 11a ht Channel 36 : 5180* MHz 11a ht Channel 153 : 5765* MHz 11a ht Channel 40 : 5200* MHz 11a ht Channel 157 : 5785* MHz 11a ht Channel 44 : 5220* MHz 11a ht Channel 161 : 5805* MHz 11a ht Channel 48 : 5240* MHz 11a ht Channel 165 : 5825* MHz 11a ht mesh-2870:~ # ifconfig wlan1 list sta ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG 00:0c:42:6c:63:20 0 28 0M 18.0 300 21 0 I A 00:0c:42:6c:61:91 0 28 54M 17.5 0 122 1552 I AQ HTCAP WME mesh-2870:~ # athratestats -i ath1 -m 00:0c:42:6c:61:91 static_rix (-1) ratemask 0x0 [ 250] cur rate 54 Mb since switch: packets 1 ticks 142385 [ 250] last sample (6 Mb) cur sample (0 ) packets sent 122 [ 250] packets since sample 1 sample tt 0 [1600] cur rate 54 Mb since switch: packets 1 ticks 93578 [1600] last sample (6 Mb) cur sample (0 ) packets sent 3 [1600] packets since sample 3 sample tt 0 TX Rate TXTOTAL:TXOK EWMA T/ F avg last xmit [36 Mb: 250] 1:1 (100.0%) 1/ 0 464uS 6977 [36 Mb:1600] 1:1 (100.0%) 1/ 0 764uS 93021 [54 Mb: 250] 121:121 (100.0%) 121/ 0 444uS 142385 [54 Mb:1600] 2:2 (100.0%) 2/ 0 644uS 93578 Johann From owner-freebsd-wireless@FreeBSD.ORG Wed Dec 12 16:53:42 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC6354AF for ; Wed, 12 Dec 2012 16:53:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 71B268FC19 for ; Wed, 12 Dec 2012 16:53:42 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id u54so411267wey.13 for ; Wed, 12 Dec 2012 08:53:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=5YsuoymxRV1U2WTvWVHpyoXxyidMAdUKS2BaKOHjVu8=; b=Kaj8hi6sUZjLu447lHEmUNSTXv8gFaYyupk18lK7HBodIGPB5po6Xgg/rer5k7SGjo 8DpdJZetYJJ2V2z+3MtiW1zmUzksmKgkz6VOs/zYD90uc2l0Pem6A3Kb+SfT9l+WzYTb PN8WRY044u2sph4aQpH56O3nqOyHxwmq8JJeM20YxkEUJo9jOv3xVQZFHkAul4erN2b/ U5ndjN9ZLqzcUzJWBjbUDfKekMGUXhAMNswQ4U1Br+TOzr9mvRsHp/N4rT6fRYrA+5bl jLYVymviFeKR8Jbtaz32sf++324Be2VgZtPjcRsDviCAvPRlEqQ2fkwCzGfPGbFHL1JX 1nMw== MIME-Version: 1.0 Received: by 10.194.179.34 with SMTP id dd2mr3149994wjc.1.1355331221417; Wed, 12 Dec 2012 08:53:41 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Wed, 12 Dec 2012 08:53:41 -0800 (PST) In-Reply-To: <4399307.t8XoJk9xzo@jeep> References: <4399307.t8XoJk9xzo@jeep> Date: Wed, 12 Dec 2012 08:53:41 -0800 X-Google-Sender-Auth: QltlwjpjhlF7flCqzRass2jRP8s Message-ID: Subject: Re: 11n in adhoc mode From: Adrian Chadd To: Johann Hugo Content-Type: text/plain; charset=ISO-8859-1 Cc: PseudoCylon , freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2012 16:53:43 -0000 Let me do some more digging. If you set the channel like that you run through a different code path to if you do it via scanning. Also, I did tidy up and remove some code before I posted that diff. Maybe some of it was needed. mesh-2870:~ # athratestats -i ath1 -m 00:0c:42:6c:61:91 static_rix (-1) ratemask 0x0 See that? The ratemask is all wrong, even for an 11a/11bg node. Maybe how it learnt about the second node was via a different code path.. Adrian On 12 December 2012 04:29, Johann Hugo wrote: > On Wednesday, December 12, 2012 01:58:38 AM Adrian Chadd wrote: > >> Here's what I have trimmed this down to so far: > >> > >> >> http://people.freebsd.org/~adrian/ath/20121212-11n-ibss-and-other-stuff-3.di > >> ff > >> > >> Please disable ampdu for now (ifconfig wlanX -ampdu) as it just plain > >> doesn't work. > >> I'll figure out why once I figure out the cleanest way to get this 11n > >> IBSS stuff working. > >> > >> I've tested this between two 11n nodes and a third 11a only node. > >> So far it works out ok. But it obviously could do with a lot more > >> thorough testing. > >> > >> I'd appreciate feedback! > >> > > > > No luck. Maybe I'm missing some settings ? > > > > mesh-2870:~ # uname -a > > FreeBSD mesh-2870 10.0-CURRENT FreeBSD 10.0-CURRENT #15: Wed Dec 12 11:38:06 > > > > rc.conf > > create_args_wlan1="wlanmode adhoc country ZA" > > ifconfig_wlan1="10.50.50.2/24 ssid testADHOC channel 28:ht/40 -ampdu bssid > 02:8c:ca:fe:ca:10" > > > > mesh-2870:~ # ifconfig wlan1 > > wlan1: flags=8843 metric 0 mtu 1500 > > ether 00:0c:42:6c:63:20 > > inet 10.50.50.2 netmask 0xffffff00 broadcast 10.50.50.255 > > inet6 fe80::20c:42ff:fe6c:6320%wlan1 prefixlen 64 scopeid 0x8 > > nd6 options=21 > > media: IEEE 802.11 Wireless Ethernet autoselect mode 11na > > status: running > > ssid testADHOC channel 28 (5140 MHz 11a ht/40-) bssid 02:8c:ca:fe:ca:10 > > regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 17 > > mcastrate 6 mgmtrate 6 scanvalid 60 -ampdu ampdulimit 8k > > ampdudensity 8 shortgi wme burst > > > > mesh-2870:~ # ifconfig wlan1 list chan > > Channel 1 : 2412 MHz 11g ht Channel 52 : 5260* MHz 11a ht > > Channel 2 : 2417 MHz 11g ht Channel 56 : 5280* MHz 11a ht > > Channel 3 : 2422 MHz 11g ht Channel 60 : 5300* MHz 11a ht > > Channel 4 : 2427 MHz 11g ht Channel 64 : 5320* MHz 11a ht > > Channel 5 : 2432 MHz 11g ht Channel 100 : 5500* MHz 11a ht > > Channel 6 : 2437 MHz 11g ht Channel 104 : 5520* MHz 11a ht > > Channel 7 : 2442 MHz 11g ht Channel 108 : 5540* MHz 11a ht > > Channel 8 : 2447 MHz 11g ht Channel 112 : 5560* MHz 11a ht > > Channel 9 : 2452 MHz 11g ht Channel 116 : 5580* MHz 11a ht > > Channel 10 : 2457 MHz 11g ht Channel 120 : 5600* MHz 11a ht > > Channel 11 : 2462 MHz 11g ht Channel 124 : 5620* MHz 11a ht > > Channel 12 : 2467* MHz 11g ht Channel 128 : 5640* MHz 11a ht > > Channel 13 : 2472* MHz 11g ht Channel 132 : 5660* MHz 11a ht > > Channel 24 : 5120* MHz 11a ht Channel 136 : 5680* MHz 11a ht > > Channel 28 : 5140* MHz 11a ht Channel 140 : 5700* MHz 11a ht > > Channel 32 : 5160* MHz 11a ht Channel 149 : 5745* MHz 11a ht > > Channel 36 : 5180* MHz 11a ht Channel 153 : 5765* MHz 11a ht > > Channel 40 : 5200* MHz 11a ht Channel 157 : 5785* MHz 11a ht > > Channel 44 : 5220* MHz 11a ht Channel 161 : 5805* MHz 11a ht > > Channel 48 : 5240* MHz 11a ht Channel 165 : 5825* MHz 11a ht > > > > mesh-2870:~ # ifconfig wlan1 list sta > > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > > 00:0c:42:6c:63:20 0 28 0M 18.0 300 21 0 I A > > 00:0c:42:6c:61:91 0 28 54M 17.5 0 122 1552 I AQ HTCAP WME > > > > mesh-2870:~ # athratestats -i ath1 -m 00:0c:42:6c:61:91 > > static_rix (-1) ratemask 0x0 > > [ 250] cur rate 54 Mb since switch: packets 1 ticks 142385 > > [ 250] last sample (6 Mb) cur sample (0 ) packets sent 122 > > [ 250] packets since sample 1 sample tt 0 > > > > [1600] cur rate 54 Mb since switch: packets 1 ticks 93578 > > [1600] last sample (6 Mb) cur sample (0 ) packets sent 3 > > [1600] packets since sample 3 sample tt 0 > > > > TX Rate TXTOTAL:TXOK EWMA T/ F avg last xmit > > [36 Mb: 250] 1:1 (100.0%) 1/ 0 464uS 6977 > > [36 Mb:1600] 1:1 (100.0%) 1/ 0 764uS 93021 > > [54 Mb: 250] 121:121 (100.0%) 121/ 0 444uS 142385 > > [54 Mb:1600] 2:2 (100.0%) 2/ 0 644uS 93578 > > > > Johann