From: Ben Greear <greearb@candelatech.com>
To: Wojciech Dubowik <wojciech.dubowik@neratec.com>,
Klaus Kinski <jpo234@outlook.de>
Cc: "Toke Høiland-Jørgensen" <toke@toke.dk>,
"Dave Taht" <dave.taht@gmail.com>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: Packet throughput (and those iperf data rate) with mac80211/ath9k is 20% worse than net80211/madwifi
Date: Tue, 31 Jan 2017 07:26:32 -0800 [thread overview]
Message-ID: <5890ACA8.3010403@candelatech.com> (raw)
In-Reply-To: <afccf3d4-b095-1a64-fd08-d559b44bcb72@neratec.com>
One thing to consider: Older ath9k and maybe madwifi used a different congestion control,
and it got higher throughput in optimal situations in our testing. When it was removed
from the kernel, there was some effort to improve the minstrel_ht algorithm, but I don't
think it ever performed quite as well as far as bulk transfer is concerned.
Thanks,
Ben
On 01/31/2017 01:52 AM, Wojciech Dubowik wrote:
>
>
> On 31/01/17 10:46, Klaus Kinski wrote:
>> BTW, if I read the sources correctly, than IBSS mode uses the TXQ parameters from ieee80211_set_wmm_default with enable_qos = false which means that qparam.txop = 0, e.g. bursting is disabled. Am I right?
> I guess so. But you need to look also at contention window sizes because it make a big impact on throughout with retries and collisions.
>>
>> Jörg Pommnitz <jpo234@outlook.de <mailto:jpo234@outlook.de>> schrieb am Di., 31. Jan. 2017 um 10:37 Uhr:
>>
>> I'm mostly interested in Ad-Hoc mode, e.g. IBSS.
>>
>> Wojciech Dubowik <wojciech.dubowik@neratec.com
>> <mailto:wojciech.dubowik@neratec.com>> schrieb am Di., 31. Jan.
>> 2017 um 10:35 Uhr:
>>
>> That's tricky but look at
>> http://w1.fi/cgit/hostap/tree/hostapd/hostapd.conf
>> <http://w1.fi/cgit/hostap/tree/hostapd/hostapd.conf>
>>
>> tx_queue... are for AP and wmm_... for STA (over beacons).
>>
>> These should be default parameters. You can also enable CONFIG
>> debug flag
>>
>> for ath9k and it prints wme parameters when it starts.
>>
>> Wojtek
>>
>>
>> On 31/01/17 10:18, Klaus Kinski wrote:
>>> It seems that bursting can be controlled over nl80211 (see ,
>>> specifically with NL80211_ATTR_WIPHY_TXQ_PARAMS.
>>> Unfortunately this seems not to be exposed in iw. It's an
>>> attribute of NL80211_CMD_SET_WIPHY.
>>> Is there another tool that exposes txq params? If not, has
>>> anybody thought about exposing it in iw? I might take a stab
>>> at it...
>>>
>>> Regards
>>> Joerg
>>>
>>> Wojciech Dubowik <wojciech.dubowik@neratec.com
>>> <mailto:wojciech.dubowik@neratec.com>> schrieb am Di., 31.
>>> Jan. 2017 um 08:55 Uhr:
>>>
>>> Madwifi has default best effort queue "tuned" for throughout
>>>
>>> and its parameters are different from mac80211 defaults when
>>>
>>> qos (WME) is disabled.
>>>
>>> You would have to dump qos settings for both systems before
>>>
>>> comparing them. I guess the easiest way is to make sure QoS
>>>
>>> is enabled and send video type of packets with iperf ...
>>> -S 0xa0
>>>
>>> Wojtek
>>>
>>>
>>> On 30/01/17 20:43, Toke Høiland-Jørgensen wrote:
>>> > Klaus Kinski <jpo234@outlook.de
>>> <mailto:jpo234@outlook.de>> writes:
>>> >
>>> >> The captures I used to create the statistics are here:
>>> >>
>>> https://drive.google.com/open?id=0ByFGz3ZH6JcYMGp0a05lYzBPNzA
>>> >>
>>> >> An obvious difference is, that Madwifi sends 5 packets
>>> in a row
>>> >> without waiting for an ACK whereas ath9k/mac80211
>>> always seems to wait
>>> >> for an ACK. This seems to point to the "net80211
>>> aggressive mode
>>> >> theory" https://wiki.freebsd.org/WifiAggressiveMode
>>> <https://wiki.freebsd.org/WifiAggressiveMode>, IMHO.
>>> > I'm not too familiar with that part of the stack, but
>>> that seems
>>> > reasonable, yeah. AFAIK the "aggresive mode" is a
>>> pre-802.11n feature,
>>> > though, which is why you won't see that in ath9k. In
>>> 802.11n this kind
>>> > of bursting was replaced by aggregation, which you're
>>> not getting any of
>>> > since you're running in 802.11a mode, obviously.
>>> >
>>> > The lack of bursting will translate to slightly lower
>>> throughput, which
>>> > will be why you see fewer packets transmitted by ath9k.
>>> Of course, if
>>> > your receiver supported aggregation, the numbers would
>>> look dramatically
>>> > better in ath9k's favour... ;)
>>> >
>>> > -Toke
>>>
>
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
prev parent reply other threads:[~2017-01-31 15:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-30 15:57 Packet throughput (and those iperf data rate) with mac80211/ath9k is 20% worse than net80211/madwifi Klaus Kinski
2017-01-30 16:17 ` Toke Høiland-Jørgensen
2017-01-30 16:49 ` Dave Taht
[not found] ` <HE1PR0701MB1803A03DD96F300119936D0EFC4B0@HE1PR0701MB1803.eurprd07.prod.outlook.com>
2017-01-30 19:43 ` Toke Høiland-Jørgensen
2017-01-31 7:54 ` Wojciech Dubowik
[not found] ` <HE1PR0701MB18031C6DF4DF46865EBF9E87FC4A0@HE1PR0701MB1803.eurprd07.prod.outlook.com>
[not found] ` <f5adadba-2764-a7cc-c661-7061545341a7@neratec.com>
[not found] ` <HE1PR0701MB1803911A9D8B8CF7813C6EACFC4A0@HE1PR0701MB1803.eurprd07.prod.outlook.com>
2017-01-31 9:42 ` Wojciech Dubowik
[not found] ` <CAEvAWuGa6YSFA80mC0+saoGO5VWGNqfbyw94Nv0vfhSoQfD-Jw@mail.gmail.com>
[not found] ` <HE1PR0701MB1803B7D5D0182EF7DD662B18FC4A0@HE1PR0701MB1803.eurprd07.prod.outlook.com>
2017-01-31 9:52 ` Wojciech Dubowik
2017-01-31 12:42 ` Rafał Miłecki
2017-01-31 15:26 ` Ben Greear [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5890ACA8.3010403@candelatech.com \
--to=greearb@candelatech.com \
--cc=dave.taht@gmail.com \
--cc=jpo234@outlook.de \
--cc=linux-wireless@vger.kernel.org \
--cc=toke@toke.dk \
--cc=wojciech.dubowik@neratec.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).