From: Stefano Salsano <stefano.salsano@uniroma2.it>
To: Hagen Paul Pfeifer <hagen@jauu.net>
Cc: Stephen Hemminger <shemminger@vyatta.com>,
David Miller <davem@davemloft.net>,
Fabio Ludovici <fabio.ludovici@yahoo.it>,
netdev@vger.kernel.org, netem@lists.linuxfoundation.org
Subject: Re: [RFC] netem: correlated loss generation (v3)
Date: Thu, 20 May 2010 02:22:07 +0200 [thread overview]
Message-ID: <4BF480AF.4090308@uniroma2.it> (raw)
In-Reply-To: <20100519230433.GE5146@nuttenaction>
Hagen Paul Pfeifer wrote:
> * Stefano Salsano | 2010-05-20 00:52:00 [+0200]:
>
>> So my opinion is that the need to emulate "correlated" loss patterns
>> is not academic, but it is a real need from industry... of course we
>> can debate if it is a "niche" requirement or not
>
> netem is not in the processing hot path, so there is no issue to add an
> additional component. If there are some[TM] users and it is usable, I am
> fine with this patch!
>
>> tc qdisc change dev wlan0 root netem loss 2 10
>>
>> because this produces broken results...
>
> How to model this specific network characteristic (2% loss, correlation 10%)
> with your modifications? Can you give us an example?
>
The definition of "correlation" for the correlated loss was
intrinsically broken.
We can now use two models to introduce correlated loss events.
One is called GI (General and Intuitive), where the "burst lenght" of
consecutive loss events is used to measure correlation, so the second
(optional) parameter is not the "correlation" but the burst lenght:
tc qdisc add dev wlan0 root netem loss_GI ploss burst_length
for example if ploss = 2% then the burst lenght for uncorrelated loss
will be 1/(1-ploss) = 1 / 0.98 ~= 1.02
this means that you will have almost always isolated loss events if
burst_lengh is 1.02
everything greater than 1.02 for burst_lenght will add a correlation in
the loss patterns, for example:
tc qdisc add dev wlan0 root netem loss_GI 2 3
will mean that the loss events will be grouped in bursts of average
lenght 3 (to keep the 2% loss this will result in less frequent loss
bursts, but with more consecutive losses per bursts)
The second model is called Gilbert-Elliot model, you have to input two
parameters p and r:
tc qdisc add dev eth0 root netem loss_gilb_ell p r
p and r are related to ploss and burst_length in the following way:
ploss = p/(p+r)
burst_length = 1/r
Cheers,
Stefano
PS Thank you for your question! It was important to clarify with such an
example the new approach. We will soon add this discussion to the
documentation available at
http://netgroup.uniroma2.it/twiki/bin/view.cgi/Main/NetemCLG
> Cheers, Hagen
>
--
*******************************************************************
Stefano Salsano
Dipartimento Ingegneria Elettronica
Universita' di Roma "Tor Vergata"
Via del Politecnico, 1 - 00133 Roma - ITALY
http://netgroup.uniroma2.it/Stefano_Salsano/
E-mail : stefano.salsano@uniroma2.it
Cell. : +39 320 4307310
Office : (Tel.) +39 06 72597770 (Fax.) +39 06 72597435
*******************************************************************
prev parent reply other threads:[~2010-05-20 0:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4BD84428.30904@uniroma2.it>
2010-05-18 3:56 ` [RFC] netem: correlated loss generation (v3) Stephen Hemminger
2010-05-18 5:19 ` Eric Dumazet
2010-05-19 21:42 ` Hagen Paul Pfeifer
2010-05-19 22:52 ` Stefano Salsano
2010-05-19 23:04 ` Hagen Paul Pfeifer
2010-05-20 0:17 ` Stephen Hemminger
2010-05-20 0:43 ` Hagen Paul Pfeifer
2010-05-20 0:22 ` Stefano Salsano [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=4BF480AF.4090308@uniroma2.it \
--to=stefano.salsano@uniroma2.it \
--cc=davem@davemloft.net \
--cc=fabio.ludovici@yahoo.it \
--cc=hagen@jauu.net \
--cc=netdev@vger.kernel.org \
--cc=netem@lists.linuxfoundation.org \
--cc=shemminger@vyatta.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.