General list for discussing Bufferbloat
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Aaron Wood <woody77@gmail.com>
Cc: bloat <Bloat@lists.bufferbloat.net>
Subject: Re: [Bloat] sch_fq pacing rate: Xbps, but at which layer in the network stack?
Date: Fri, 14 Apr 2017 11:00:44 -0700	[thread overview]
Message-ID: <1492192844.10587.78.camel@edumazet-glaptop3.roam.corp.google.com> (raw)
In-Reply-To: <CALQXh-MyNW-DnQZNVp9q-=5o1eye0u8T38vwEB-+3Q4jEEdvUQ@mail.gmail.com>

On Thu, 2017-04-13 at 20:12 -0700, Aaron Wood wrote:
> When I was testing with my iPerf changes, I realized that the sch_fq
> pacing (which in iperf is set via setsockopt()), is pacing at a
> bandwidth that's set at a pretty low level in the stack (which makes
> sense).  This is different from the application pacing that iperf does
> (which is pacing the goodput).
> 
> 
> But it's not clear to me where the X bps determination is being made.
> My current guess is that it's at the interface level (since that's
> where sch_fq is), and so it's approximately "bytes on the wire", minus
> preambles and inter-packet spacing, and whatnot.  And so it's
> including all the 802.x headers involved (vlan tags, qos tags,
> source/dest macs, etc).  Is this correct?
> 
Like other qdisc having rate limits (TBF, HTB ....), FQ sees packets
with all headers (including Ethernet one)

This is why the default quantum is 3028, which is exactly 2 regular
Ethernet frames (MTU=1500 + 14 bytes of Ethernet header)

If you have VLAN tag, it is generally not included in the calculation,
as many devices provide 'hardware tagging'.






  reply	other threads:[~2017-04-14 18:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-14  3:12 Aaron Wood
2017-04-14 18:00 ` Eric Dumazet [this message]
2017-04-14 23:38   ` Aaron Wood

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/bloat.lists.bufferbloat.net/

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

  git send-email \
    --in-reply-to=1492192844.10587.78.camel@edumazet-glaptop3.roam.corp.google.com \
    --to=eric.dumazet@gmail.com \
    --cc=Bloat@lists.bufferbloat.net \
    --cc=woody77@gmail.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