From: David Miller <davem@davemloft.net>
To: ysseung@google.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH net-next] netem: slotting with non-uniform distribution
Date: Thu, 28 Jun 2018 22:07:00 +0900 (KST) [thread overview]
Message-ID: <20180628.220700.2197626700312750888.davem@davemloft.net> (raw)
In-Reply-To: <20180627173219.112027-1-ysseung@google.com>
From: Yousuk Seung <ysseung@google.com>
Date: Wed, 27 Jun 2018 10:32:19 -0700
> Extend slotting with support for non-uniform distributions. This is
> similar to netem's non-uniform distribution delay feature.
>
> Commit f043efeae2f1 ("netem: support delivering packets in delayed
> time slots") added the slotting feature to approximate the behaviors
> of media with packet aggregation but only supported a uniform
> distribution for delays between transmission attempts. Tests with TCP
> BBR with emulated wifi links with non-uniform distributions produced
> more useful results.
>
> Syntax:
> slot dist DISTRIBUTION DELAY JITTER [packets MAX_PACKETS] \
> [bytes MAX_BYTES]
>
> The syntax and use of the distribution table is the same as in the
> non-uniform distribution delay feature. A file DISTRIBUTION must be
> present in TC_LIB_DIR (e.g. /usr/lib/tc) containing numbers scaled by
> NETEM_DIST_SCALE. A random value x is selected from the table and it
> takes DELAY + ( x * JITTER ) as delay. Correlation between values is not
> supported.
>
> Examples:
> Normal distribution delay with mean = 800us and stdev = 100us.
> > tc qdisc add dev eth0 root netem slot dist normal 800us 100us
>
> Optionally set the max slot size in bytes and/or packets.
> > tc qdisc add dev eth0 root netem slot dist normal 800us 100us \
> bytes 64k packets 42
>
> Signed-off-by: Yousuk Seung <ysseung@google.com>
> Acked-by: Eric Dumazet <edumazet@google.com>
> Acked-by: Neal Cardwell <ncardwell@google.com>
Applied.
prev parent reply other threads:[~2018-06-28 13:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-27 17:32 [PATCH net-next] netem: slotting with non-uniform distribution Yousuk Seung
2018-06-28 13:07 ` David Miller [this message]
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=20180628.220700.2197626700312750888.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=ysseung@google.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