linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@openwrt.org>
To: Benoit PAPILLAULT <benoit.papillault@free.fr>
Cc: 8an@praha12.net, linux-wireless@vger.kernel.org
Subject: Re: [RFC] API for setting ACK timeout
Date: Sat, 28 Nov 2009 13:06:33 +0100	[thread overview]
Message-ID: <4B111249.7080105@openwrt.org> (raw)
In-Reply-To: <4B103971.2020308@free.fr>

Benoit PAPILLAULT wrote:
> Hello Lukas,
> 
> I think that's a good idea indeed. I think the relationship between ACK
> timeout, CTS timeout and slottime and distance should be common (ie
> implemented at mac80211 level) since the formula is not so trivial to me
> (at least, I've seen several formulas flying around). Then, each driver
> needs to convert ACK timeout since the HW registers probably takes into
> account some specific MAC hw time.
> 
> Moreover, the formula is not the same for 2.4 GHz and 5 GHz.
> 
> madwifi had a patch for automatically finding the best ACK timeout,
> maybe it could be ported to mac80211 as well.
That patch is a rather ugly hack which involves doing statistics on the
number of retransmissions while changing the distance setting. It has a
tendency to crank up the ack timeout whenever there is some loss or
interference on the link, thereby making the effects of the interference
even worse. I don't think this should be added to mac80211.
At some point, I will try to come up with an implementation for ath9k
which doesn't involve such voodoo, but instead compares the tx timestamp
of some data packets against the rx timestamp of ack packets. I don't
know if this will work, but IMHO it's worth a try.

- Felix

  reply	other threads:[~2009-11-28 12:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-26 17:26 [RFC] API for setting ACK timeout Lukáš Turek
2009-11-26 17:32 ` Gábor Stefanik
2009-11-26 17:53   ` Lukáš Turek
2009-11-26 18:18 ` Johannes Berg
2009-11-26 19:14   ` Lukáš Turek
2009-11-26 19:25     ` Johannes Berg
2009-11-26 20:13       ` Lukáš Turek
2009-11-26 20:15         ` Johannes Berg
2009-11-26 20:46           ` Lukáš Turek
2009-11-27 20:41 ` Benoit PAPILLAULT
2009-11-28 12:06   ` Felix Fietkau [this message]
2009-12-01  7:44 ` David Pufer
  -- strict thread matches above, loose matches on Subject: below --
2009-11-30  8:39 Joerg Pommnitz
2009-11-30 10:04 ` Johannes Berg

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=4B111249.7080105@openwrt.org \
    --to=nbd@openwrt.org \
    --cc=8an@praha12.net \
    --cc=benoit.papillault@free.fr \
    --cc=linux-wireless@vger.kernel.org \
    /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).