linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@openwrt.org>
To: Antonio Quartulli <antonio@open-mesh.com>
Cc: Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	Thomas Pedersen <thomas@cozybit.com>,
	"johannes@sipsolutions.net" <johannes@sipsolutions.net>,
	Marek Lindner <marek@open-mesh.com>,
	Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
Subject: Re: [RFC] design discussion: Collecting information for (non-peer) stations
Date: Fri, 22 Feb 2013 18:03:28 +0100	[thread overview]
Message-ID: <5127A4E0.8080101@openwrt.org> (raw)
In-Reply-To: <20130222163643.GB3757@open-mesh.com>

On 2013-02-22 5:36 PM, Antonio Quartulli wrote:
> On Fri, Feb 22, 2013 at 08:21:14AM -0800, Felix Fietkau wrote:
>> Hi,
>> 
>> Since this is a rare special case, I think it really does not belong
>> into the mac80211 data path. How about creating a monitor mode device
>> and claiming it from within the kernel in your own module via rx_handler
>> (the same mechanism that the bridge code uses to hook into the data path
>> of a normal net_device). You can extract relevant information from the
>> radiotap headers.
> 
> I think this would increase the complexity given the fact that each and every
> packet needs to be encapsulated into the radiotap header..
I think it's only a slight increase in complexity.

> Then, most of the information that people wants to grab does not appear in
> such header.
What's missing?

> Other than that, by hooking into the mac80211 rx_path, in an early point, packets can
> then be dropped as usual (all those packets not going to this device), while
> with this monitor-like solution all of them have to be carried up to the virtual
> interface.
If the data path overhead here is really that important, then I suggest
adding a new minimalistic data path hook that allows you to inspect the
packets with the rx data in the cb from an external module. The actual
node tracking and reporting should be outside of mac80211 as long as the
reasons for putting it in have not been properly justified.

> Imho this introduces a not negligible complexity that it is better to avoid.
> 
> And what about 802.11s? I don't think this is a good solution for them..

I have yet to see an explanation how this gathering of semi-related data
points even helps 802.11s. I only noticed this bit here by Thomas:
> I can't think of anything that would be specifically useful for
> 802.11s right now, and we can always extend the statistics in the
> future. One case where this might be useful is if the driver has a
> limited number of station slots, the MPM could monitor neighbor
> stations for a more "suitable" peer candidate, but your existing stats
> should cover that.
Is 'limited number of station slots' even a real issue or just an
abstract hypothetical? What are other things in 802.11s that this would
be useful for?

I think before non-peer tracking like this gets shoved into mac80211, a
lot more work needs to be done on justifying the extra code by
describing *specific* use cases that aren't just random data-gathering
for some user space based monitoring thingie.

- Felix

  reply	other threads:[~2013-02-22 17:03 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-15 17:19 [RFC] design discussion: Collecting information for (non-peer) stations Simon Wunderlich
2013-02-18 14:30 ` Johannes Berg
2013-02-18 14:33   ` Johannes Berg
2013-02-18 14:46     ` Antonio Quartulli
2013-02-18 15:29       ` Johannes Berg
2013-02-18 15:38         ` Antonio Quartulli
2013-02-18 15:43           ` Johannes Berg
2013-02-18 15:49             ` Antonio Quartulli
2013-02-18 15:58               ` Johannes Berg
2013-02-18 16:07                 ` Antonio Quartulli
2013-02-18 16:51                   ` Johannes Berg
2013-02-18 19:36                     ` Mathias Kretschmer
2013-02-20 17:19                     ` Simon Wunderlich
2013-02-20 19:10                       ` Thomas Pedersen
2013-02-21 17:19                         ` Simon Wunderlich
2013-02-19  9:32 ` Thomas Hühn
2013-02-20 17:49   ` Simon Wunderlich
2013-02-20 18:04   ` Mathias Kretschmer
2013-02-22 10:07 ` Zefir Kurtisi
2013-02-22 11:43   ` Simon Wunderlich
2013-02-22 12:34     ` Zefir Kurtisi
2013-02-22 16:21 ` Felix Fietkau
2013-02-22 16:36   ` Antonio Quartulli
2013-02-22 17:03     ` Felix Fietkau [this message]
2013-02-22 17:42       ` Adrian Chadd
2013-02-25 10:28         ` Simon Wunderlich
2013-03-08 14:13           ` Simon Wunderlich
2013-03-11 12:01             ` Zefir Kurtisi
2013-03-25 14:43               ` Simon Wunderlich
2013-02-22 17:42       ` Thomas Pedersen

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=5127A4E0.8080101@openwrt.org \
    --to=nbd@openwrt.org \
    --cc=antonio@open-mesh.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=marek@open-mesh.com \
    --cc=mathias.kretschmer@fokus.fraunhofer.de \
    --cc=simon.wunderlich@s2003.tu-chemnitz.de \
    --cc=thomas@cozybit.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).