From: Alexander Aring <alex.aring@gmail.com>
To: Martin Townsend <martin.townsend@xsilon.com>
Cc: linux-wpan@vger.kernel.org
Subject: Re: Promiscuous patches
Date: Thu, 18 Sep 2014 22:34:46 +0200 [thread overview]
Message-ID: <20140918203445.GA14182@omega> (raw)
In-Reply-To: <20140918185348.GA12931@omega>
On Thu, Sep 18, 2014 at 08:53:48PM +0200, Alexander Aring wrote:
> On Thu, Sep 18, 2014 at 07:30:34PM +0100, Martin Townsend wrote:
> ...
> > >and I hope we clarified now that promiscuous mode with NODE/WPAN type
> > >doesn't make any sense than increasing cpu load. You don't get more
> > >frames into userspace.
> > We are implementing 802.15.4 on powerline. If we had say a peer to peer
> > network involving 4 different PANs and because we aren't restricted by
> > distance as much as wireless we could potentially put one of the Coordinator
> > nodes into promiscuous mode and then capture traffic from all 4 PAN's
> > whereas if we are filtering we only see the traffic for the PAN(s) we are
> > involved in. Wouldn't this be more frames that just the filter?
> >
>
> I can't follow, with monitor interface you will get any frame from pans,
> also all frame types like ACK's etc... you can also send some frames
> (okay the 802.15.4 standard doesn't say that) but at86rf231 seems to
> allow this.
>
> I need to show you moooore implementation details, then you know what a
> WPAN/NODE type does on receiving and MONITOR will do on receiving.
>
> WPAN/NODE/COORD -> have hardwware filtering, addresses, FCS etc..
>
> MONITOR -> Doesn't filter anything, okay it filters when a SFD was
> receivied but nothing more.
>
> Now LINUX the "mac802154" does also do filtering stuff, but only on
> WPAN/NODE/COORD because these are to interact practical in a network,
> not just sniffing.
>
> On WPAN/NODE/COORD we have filter in mac802154, see [0]. This shows
> frame parsing of data frames. You can more look into this how this works.
> Now if you have address filter on PHY you will decreasing the load of
> mac802154, because most of these frames are already filtered by the phy.
>
> NOW if you set promiscuous mode on WPAN/NODE you increasing workload but
> the most frames will dropped at [0]. You don't get more frames into the
> interface (userspace). You only increasing the workload of the cpu.
>
>
> On Monitor interface the PHY doesn't filter anything and the filtering
> of [0] is disabled. It's directly send it to the interface so you can
> see all frames, also frames which doesn't belong to you.
> What a monitor interface does on receiving is [1]. Don't check anything
> directly send it to the MONITOR interface. That's why I said "the
> monitor interface is a big userspace playground - no filtering on PHY
> and kernel is involved".
>
Is there maybe some practical use for being in promiscuous mode and
operate as coordinator/node? Is that what you want?
Because at the moment you need to ifconfig down/ip set link dev foo0
down on all non monitor interfaces and up then a monitor interfaces to
get all unfiltered frames. After that you can do wireshark -i monitor0
or something else... to debug network traffic.
I see no sense to run promiscuous mode while coordinator/node. I think
more to handle this correctly would make the stack much complicated.
- Alex
next prev parent reply other threads:[~2014-09-18 20:34 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5412F199.7010803@xsilon.com>
2014-09-14 23:45 ` Promiscuous patches Alexander Aring
2014-09-14 23:56 ` Alexander Aring
2014-09-15 11:56 ` Alexander Aring
2014-09-15 12:01 ` Alexander Aring
2014-09-18 8:57 ` Martin Townsend
2014-09-18 9:41 ` Alexander Aring
2014-09-18 10:04 ` Martin Townsend
2014-09-18 10:43 ` Alexander Aring
2014-09-18 12:00 ` Martin Townsend
2014-09-18 12:21 ` Alexander Aring
2014-09-18 12:30 ` Alexander Aring
2014-09-18 12:44 ` Alexander Aring
2014-09-18 13:25 ` Martin Townsend
2014-09-18 13:34 ` Alexander Aring
2014-09-18 13:42 ` Alexander Aring
2014-09-18 14:36 ` Martin Townsend
2014-09-18 16:05 ` Alexander Aring
2014-09-18 16:54 ` Martin Townsend
2014-09-18 17:07 ` Alexander Aring
2014-09-18 17:54 ` Alexander Aring
2014-09-18 17:56 ` Alexander Aring
2014-09-18 18:30 ` Martin Townsend
2014-09-18 18:53 ` Alexander Aring
2014-09-18 20:34 ` Alexander Aring [this message]
2014-09-19 10:11 ` Alexander Aring
2014-09-20 7:03 ` Martin Townsend
2014-09-21 10:06 ` Alexander Aring
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=20140918203445.GA14182@omega \
--to=alex.aring@gmail.com \
--cc=linux-wpan@vger.kernel.org \
--cc=martin.townsend@xsilon.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