netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: fabio.ludovici@yahoo.it
Cc: netdev@vger.kernel.org
Subject: Re: [RESEND PATCH 1/3] netem/iproute2 solving correlated loss issue
Date: Sun, 03 Jan 2010 21:50:20 -0800 (PST)	[thread overview]
Message-ID: <20100103.215020.190259610.davem@davemloft.net> (raw)
In-Reply-To: <4B3A5FF5.30602@yahoo.it>

From: Fabio Ludovici <fabio.ludovici@yahoo.it>
Date: Tue, 29 Dec 2009 21:00:53 +0100

> enhances netem module as follows:
> 
> - add deterministic loss generation according to a pattern that can be
> - specified in a file in the iproute2 command line
> - new statistical models for generation of correlated loss (the existing
> - model does not work), including loss models commonly used in
> - literature (bernoulli, Gilbert, Gilbert Elliot) and the new GI
> - (General and Intuitive model)
> - enhanced logging functionality for loss events in dmesg
> 
> Signed-off-by: Stefano Salsano <stefano.salsano@uniroma2.it>
> Signed-off-by: Fabio Ludovici <fabio.ludovici@yahoo.it>
> ---
>  include/linux/pkt_sched.h |   33 ++++++
>  net/sched/sch_netem.c | 277
>  +++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 310 insertions(+), 0 deletions(-)
> 
> diff --git a/include/linux/pkt_sched.h b/include/linux/pkt_sched.h
> index d51a2b3..b492fd3 100644
> --- a/include/linux/pkt_sched.h
> +++ b/include/linux/pkt_sched.h
> @@ -466,6 +466,10 @@ enum
>      TCA_NETEM_DELAY_DIST,
>      TCA_NETEM_REORDER,
>      TCA_NETEM_CORRUPT,
> +    TCA_NETEM_LOSS_GI,
> +    TCA_NETEM_LOSS_GILBELL,
> +    TCA_NETEM_LOSS_PATTERN,
> +    TCA_NETEM_LOGGING,
>      __TCA_NETEM_MAX,

Mail client has turned tabs into spaces, corrupting the patch.

> +    __u32    p32;
> +    __u32    p23;
> +    __u32   p14;

Inconsistent formatting, probably also caused by your email
client.

> +        // GI loss model transition probabilities

Please no C++ style comments.

> +    u32 p13;
> +    u32 p31;
> +    u32 p23;
> +    u32 p32;
> +    u32 p14;
> +    // Gilbert and Gilbert-Elliot loss models parameters
> +    u32 p;
> +    u32 r;
> +    u32 h;
> +    u32 k;
> +    // Markov chain state for GI, Gilbert and Gilbert-Elliot models
> +    u8 chain_state;
> +    // Deterministic pattern parameters
> +    u16 pattern_length;        //deterministic loss length
> + u32 pattern_repetitions; //deterministic loss pattern repetitions
> +    u32 *kernel_pattern;         //deterministic loss pattern
> +    // Logging parameters and variables
> +    u8 logging_level;
> +    u32 num_of_drops;        //number of dropped packets
> + u32 num_of_transmissions; //number of correctly transmitted packets
> +    u32 pattern_counter;        //deterministic loss counter
> + u32 repetitions_done; //deterministic loss repetitions counter

Do you really need to bloat up this structure with such an
enormous number of new elements?

Stephen can you champion this work, it needs a lot of help?

Thanks.

  reply	other threads:[~2010-01-04  5:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-29 19:59 [RESEND PATCH 0/3] netem/iproute2 solving correlated loss issue Fabio Ludovici
2009-12-29 20:00 ` [RESEND PATCH 1/3] " Fabio Ludovici
2010-01-04  5:50   ` David Miller [this message]
2009-12-29 20:01 ` [RESEND PATCH 2/3] " Fabio Ludovici
2009-12-29 20:02 ` [RESEND PATCH 3/3] " Fabio Ludovici

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=20100103.215020.190259610.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=fabio.ludovici@yahoo.it \
    --cc=netdev@vger.kernel.org \
    /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).