Lets make wifi fast again!
 help / color / mirror / Atom feed
From: "Toke Høiland-Jørgensen" <toke@redhat.com>
To: Sebastian Moeller <moeller0@gmx.de>,
	Johannes Berg <johannes@sipsolutions.net>
Cc: Kan Yan <kyan@google.com>,
	Make-Wifi-fast <make-wifi-fast@lists.bufferbloat.net>
Subject: Re: [Make-wifi-fast] [PATCH v2 4/4] mac80211: Use Airtime-based Queue Limits (AQL) on packet dequeue
Date: Sat, 19 Oct 2019 18:56:51 +0200	[thread overview]
Message-ID: <87a79wd67g.fsf@toke.dk> (raw)
In-Reply-To: <C49B06DC-E5B4-4970-9C69-1E045EBC71D4@gmx.de>

Sebastian Moeller <moeller0@gmx.de> writes:

> On October 19, 2019 2:14:42 PM GMT+02:00, "Toke Høiland-Jørgensen" <toke@redhat.com> wrote:
>>Sebastian Moeller <moeller0@gmx.de> writes:
>>
>>>> On Oct 18, 2019, at 16:15, Johannes Berg <johannes@sipsolutions.net>
>>wrote:
>>>> 
>>>> On Thu, 2019-10-17 at 18:11 -0700, Kan Yan wrote:
>>>>> I don't think it is hard to take care of extra header size for
>>frames
>>>>> with VLAN tags
>>>> 
>>>> VLAN tags are payload as far as wifi is concerned, so no need to
>>take
>>>> that into account ...
>>>
>>> 	Ah, good to know; but just out of curiosity is any of the
>>> 	following 7 Byte Preamble + 1 Byte start of frame delimiter
>>> 	(SFD) + 12 Byte inter frame gap (IFG) actually packaged into
>>> 	ethernet frames inside 802.11 packets? I would have guessed that
>>> 	at least the IFG would be dropped as it does not really exist as
>>> 	"data"?
>>
>>No, those are accounted in the airtime calculation in airtime.c (Felix'
>>code). E.g.,:
>>
>>		duration = 20 + 16; /* premable + SIFS */
>
>
> Looks like apples and pears to me. These seem to be the wifi preamble
> and short interframe space in microseconds. Sure you need to add those
> to the airtime estimate as these will hog airtime.
>
> But the 12 byte interframe gap of the Ethernet packets that are
> transmitted over a 802.11 link surely will not be actually transmitted
> as a stretch of zeros? Same for the Ethernet preamble and the start of
> frame marker, as those can/will be trivially added by the Ethernet NIC
> that will handle the encapsulated Ethernet frame after the wifi link,
> no?
>
> As far as I can tell, the wifi SIFS is constant time independent of
> wifi link speed while the IFG size is constant but it's duration is
> not?
>
> Again, I am trying to understand this conceptually, which seems
> orthogonal to the question of whether 38 is the correct number....
>
> Best Regards
>         Sebastian
>
> P.S.: Is there a repository I could look into to try to figure this
> out myself?

This paper has a fairly comprehensive description of how frames look
when transmitted over the air: http://dx.doi.org/10.1155/2015/548109
(see Figure 1 and Table 2, and the text in Section 2).

Otherwise you'll have to go read the standards, I guess (though I can't
say I'd recommend it as light reading :P)

-Toke


  reply	other threads:[~2019-10-19 16:56 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-15 17:18 [Make-wifi-fast] [PATCH v2 0/4] Add Airtime Queue Limits (AQL) to mac80211 Toke Høiland-Jørgensen
2019-10-15 17:18 ` [Make-wifi-fast] [PATCH v2 1/4] mac80211: Rearrange ieee80211_tx_info to make room for tx_time_est Toke Høiland-Jørgensen
2019-10-18  0:50   ` Kan Yan
2019-10-18 10:15     ` Toke Høiland-Jørgensen
2019-10-18 12:21       ` Johannes Berg
2019-10-18 13:31         ` Toke Høiland-Jørgensen
2019-10-18 13:48           ` Johannes Berg
2019-10-18 14:01             ` Toke Høiland-Jørgensen
2019-10-18 14:07               ` Johannes Berg
2019-10-18 14:22                 ` Toke Høiland-Jørgensen
2019-10-18 14:14               ` Johannes Berg
2019-10-18 14:30                 ` Toke Høiland-Jørgensen
2019-10-18 12:35       ` Johannes Berg
2019-10-15 17:18 ` [Make-wifi-fast] [PATCH v2 2/4] mac80211: Import airtime calculation code from mt76 Toke Høiland-Jørgensen
2019-10-15 17:19 ` [Make-wifi-fast] [PATCH v2 3/4] mac80211: Implement Airtime-based Queue Limit (AQL) Toke Høiland-Jørgensen
2019-10-15 17:19 ` [Make-wifi-fast] [PATCH v2 4/4] mac80211: Use Airtime-based Queue Limits (AQL) on packet dequeue Toke Høiland-Jørgensen
2019-10-17  0:33   ` Kan Yan
2019-10-17  9:44     ` Toke Høiland-Jørgensen
2019-10-17  9:57       ` Sebastian Moeller
2019-10-17 10:24         ` Toke Høiland-Jørgensen
2019-10-17 10:25           ` Sebastian Moeller
2019-10-18  1:11             ` Kan Yan
2019-10-18 14:15               ` Johannes Berg
2019-10-19 11:37                 ` Sebastian Moeller
2019-10-19 12:14                   ` Toke Høiland-Jørgensen
2019-10-19 14:01                     ` Sebastian Moeller
2019-10-19 16:56                       ` Toke Høiland-Jørgensen [this message]
2019-10-19 21:22                         ` Sebastian Moeller

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=87a79wd67g.fsf@toke.dk \
    --to=toke@redhat.com \
    --cc=johannes@sipsolutions.net \
    --cc=kyan@google.com \
    --cc=make-wifi-fast@lists.bufferbloat.net \
    --cc=moeller0@gmx.de \
    /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