All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mattias Nissler <mattias.nissler@gmx.de>
To: Stefano Brivio <stefano.brivio@polimi.it>
Cc: "John W. Linville" <linville@tuxdriver.com>,
	linux-wireless <linux-wireless@vger.kernel.org>,
	Johannes Berg <johannes@sipsolutions.net>,
	Michael Wu <flamingice@sourmilk.net>
Subject: Re: [RFC/T][PATCH][V3] mac80211: Exponential moving average estimate for rc80211_simple
Date: Tue, 27 Nov 2007 22:38:04 +0100	[thread overview]
Message-ID: <1196199484.8298.23.camel@localhost> (raw)
In-Reply-To: <20071127163520.028f91fb@morte>


On Tue, 2007-11-27 at 16:35 +0100, Stefano Brivio wrote:
> On Mon, 26 Nov 2007 22:30:05 +0100
> Mattias Nissler <mattias.nissler@gmx.de> wrote:
> 
> > This changes rc80211_simple failed frame percentage estimation to use an
> > exponential moving average method. Failed frames percentage is sampled
> > over time and a smoothed average is computed. This average is examined
> > periodically and the rate adjusted eventually.
> 
> This can be seen as a particular example of a PID controller [1]. It's
> actually a PI controller, with no derivative terms in it. It could be
> interesting to implement a regular PID controller.
> 
> This is clearly a MIMO model, with the setpoints being a reasonable value
> of TX failures and the highest achievable rate, the process input being the
> bitrate and the process output being TX failures and successes; and
> obviously, the big issue being the implementation without floating-point.
> Thus, with some tuning, you could probably get a very good rate control
> algorithm.

Good point, I'm not too familiar with control theory, but I'll do some
homework :-)

However, maybe you can answer some questions:

Is it sensible to preprocess (i.e. calculate a smoothed average) the
input data for a PID controller? If so, should we compute a time average
or just average over the last N frames?

Note that the rates (or actually modulations) are not a continuous
entity, but we only have a limited set of choices. Normally, the PID
would output a value from some continuous range. What are good ways to
map the PID controller output to a rate?

Mattias


  reply	other threads:[~2007-11-27 21:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-26 21:30 [RFC/T][PATCH][V3] mac80211: Exponential moving average estimate for rc80211_simple Mattias Nissler
2007-11-27 14:13 ` Johannes Berg
2007-11-27 15:07   ` Larry Finger
2007-11-27 21:30     ` Mattias Nissler
2007-11-27 22:01       ` Larry Finger
2007-11-27 21:29   ` Mattias Nissler
2007-11-27 15:35 ` Stefano Brivio
2007-11-27 21:38   ` Mattias Nissler [this message]
2007-11-27 23:29     ` Stefano Brivio
2007-11-28 16:34       ` Mattias Nissler
2007-11-28 17:43         ` Stefano Brivio
2007-11-29  1:59           ` Mattias Nissler
2007-11-29  4:02             ` Stefano Brivio

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=1196199484.8298.23.camel@localhost \
    --to=mattias.nissler@gmx.de \
    --cc=flamingice@sourmilk.net \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=stefano.brivio@polimi.it \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.