linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@adurom.com>
To: Severin Kacianka <severin.kacianka@aau.at>
Cc: linux-wireless@vger.kernel.org
Subject: Re: A question about monitor mode
Date: Wed, 04 Jun 2014 15:48:20 +0300	[thread overview]
Message-ID: <87ha40263v.fsf@purkki.adurom.net> (raw)
In-Reply-To: <538EBB1C.3060106@aau.at> (Severin Kacianka's message of "Wed, 04 Jun 2014 08:22:20 +0200")

Severin Kacianka <severin.kacianka@aau.at> writes:

> I have a question about monitor mode and the monitor interface: When
> will a frame show up in the monitor interface?

The question doesn't really make sense, at least not to me. But I'll try
to answer anyway :)

To simplify, the path when a frame is received with a monitor interface is:

1. hardware
2. firmware
3. driver (eg. ath9k or ath10k)
4. mac80211
5. netdevice
6. user space

And all steps above can cause different amount of latency. So there is
not really a good answer how long it will take the frame to reach user
space.

> If I understand 802.11 correctly, there will first be a Request to
> Send (RTS), then a Clear to Send (CTS) signal. Then the actual frame
> will be send followed by an ACK. I did some testing and it seems, that
> the frame shows up in the monitoring interface after the ACK is
> received.
>
> My test setup was to record the socket.send call of an UDP packet with
> an unique ID and then measure the time it takes for that packet to be
> read on the monitor interface. As the measured time was not constant,
> but seemed to vary in relation to the network conditions I suppose
> that the frame only shows up after its delivery was acknowledged.

There is a strict timing requirements when the ack frame must be sent so
in most of the designs hardware or firmware transmits the ack, host
software (driver/mac80211) cannot provide such accuracy.

-- 
Kalle Valo

  reply	other threads:[~2014-06-04 12:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-04  6:22 A question about monitor mode Severin Kacianka
2014-06-04 12:48 ` Kalle Valo [this message]
2014-06-04 14:47   ` Severin Kacianka

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=87ha40263v.fsf@purkki.adurom.net \
    --to=kvalo@adurom.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=severin.kacianka@aau.at \
    /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).