Lets make wifi fast again!
 help / color / mirror / Atom feed
From: Dave Taht <dave.taht@gmail.com>
To: Make-Wifi-fast <make-wifi-fast@lists.bufferbloat.net>
Subject: [Make-wifi-fast] Fwd: Tool to debug wifi pkt sniffs?
Date: Wed, 10 Oct 2018 10:21:01 -0700	[thread overview]
Message-ID: <CAA93jw6qLu+rPZgmG9rp_C4Pe0+iV4cW4YEzfHiYZA+EojYbUw@mail.gmail.com> (raw)
In-Reply-To: <01b77936-f6d4-271a-d7d2-0fd2cf70f7bd@candelatech.com>

---------- Forwarded message ---------
From: Ben Greear <greearb@candelatech.com>
Date: Wed, Oct 10, 2018 at 10:10 AM
Subject: Re: Tool to debug wifi pkt sniffs?
To: Dave Taht <dave.taht@gmail.com>, Toke Høiland-Jørgensen <toke@toke.dk>
Cc: linux-wireless <linux-wireless@vger.kernel.org>


On 10/03/2018 01:29 PM, Dave Taht wrote:
> On Wed, Oct 3, 2018 at 1:16 PM Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>>
>> Ben Greear <greearb@candelatech.com> writes:
>>
>>> Hello,
>>>
>>> I often find myself wanting to figure out what equipment is to blame (and why)
>>> in a wifi environment.
>>>
>>> I am thinking writing a tool that would parse a pcap file and look at frames
>>> in enough detail to flag block-ack bugs, rate-ctrl bugs, guess at the sniffer's
>>> capture ability, etc.
>>>
>>> Does anyone have anything already written that they would like to share, or know
>>> of projects that might already do some of this?
>>
>> Not sure if this fits your criteria, but Sven's tool to create airtime
>> charts from packet sniffing data immediately came to mind:
>>
>> https://github.com/cloudtrax/airtime-pie-chart
>
> I have used that. Oy, it's a PITA. Some of kathie's code over here
> (example: https://github.com/pollere/pping ) uses the slightly less
> painful http://libtins.github.io/ library for parsing packets.

I couldn't find anything that did what I wanted, so I wrote my own.

The (perl) code is in the wifi-diag directory of this public repo:

https://github.com/greearb/lanforge-scripts

The rest of the scripts in that repo are not related to the wifi-diag
script, so just ignore those.

Here is example output for what I have so far:

https://www.candelatech.com/oss/wifi-diag/netgear-up-5s/index.html

The general idea is to get a performance test going, and then use
tshark or similar
to grab a short sample (my script is slow, it can process only about
400 packets per second
on my desktop, so a 5 sec capture at full speed takes around 5 minutes
to process),
and then pipe that decoded pcap into my script.

It tries to pay attention to latencies between block-ack and next AMPDU frame,
MCS distributions, packet-type distributions, retries, and other
such things.  I'm guessing tweaking wmm settings (or changing QoS in
the generated traffic)
would be visible in this kind of metric, for instance.

The goal is to be able to answer the question of why one AP is faster
or slower than another
when running the same test case.

Feedback (and even patches) is welcome...what other things can I
report that would
be helpful?


Thanks,
Ben

--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



-- 

Dave Täht
CTO, TekLibre, LLC
http://www.teklibre.com
Tel: 1-831-205-9740

           reply	other threads:[~2018-10-10 17:21 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <01b77936-f6d4-271a-d7d2-0fd2cf70f7bd@candelatech.com>]

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

  List information: https://lists.bufferbloat.net/postorius/lists/make-wifi-fast.lists.bufferbloat.net/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAA93jw6qLu+rPZgmG9rp_C4Pe0+iV4cW4YEzfHiYZA+EojYbUw@mail.gmail.com \
    --to=dave.taht@gmail.com \
    --cc=make-wifi-fast@lists.bufferbloat.net \
    /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