Re: [P2PSIP] AD evaluation: draft-ietf-p2psip-diagnostics-17 - crazy send math ....

"Songhaibin (A)" <haibin.song@huawei.com> Mon, 14 December 2015 01:06 UTC

Return-Path: <haibin.song@huawei.com>
X-Original-To: p2psip@ietfa.amsl.com
Delivered-To: p2psip@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2EA551A8AEB for <p2psip@ietfa.amsl.com>; Sun, 13 Dec 2015 17:06:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.211
X-Spam-Level:
X-Spam-Status: No, score=-4.211 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KUsmR1xGy8Ze for <p2psip@ietfa.amsl.com>; Sun, 13 Dec 2015 17:06:01 -0800 (PST)
Received: from lhrrgout.huawei.com (lhrrgout.huawei.com [194.213.3.17]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1722A1A8AE9 for <p2psip@ietf.org>; Sun, 13 Dec 2015 17:06:00 -0800 (PST)
Received: from 172.18.7.190 (EHLO lhreml406-hub.china.huawei.com) ([172.18.7.190]) by lhrrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CFJ79933; Mon, 14 Dec 2015 01:05:57 +0000 (GMT)
Received: from NKGEML408-HUB.china.huawei.com (10.98.56.39) by lhreml406-hub.china.huawei.com (10.201.5.243) with Microsoft SMTP Server (TLS) id 14.3.235.1; Mon, 14 Dec 2015 01:05:57 +0000
Received: from NKGEML513-MBX.china.huawei.com ([169.254.1.252]) by nkgeml408-hub.china.huawei.com ([10.98.56.39]) with mapi id 14.03.0235.001; Mon, 14 Dec 2015 09:05:52 +0800
From: "Songhaibin (A)" <haibin.song@huawei.com>
To: Alissa Cooper <alissa@cooperw.in>, Cullen Jennings <fluffy@cisco.com>
Thread-Topic: [P2PSIP] AD evaluation: draft-ietf-p2psip-diagnostics-17 - crazy send math ....
Thread-Index: AQHRMdLqcSlsPm6cuEG3isYlW8SklJ7Is1MAgAD/woA=
Date: Mon, 14 Dec 2015 01:05:51 +0000
Message-ID: <E33E01DFD5BEA24B9F3F18671078951F65DA70EC@nkgeml513-mbx.china.huawei.com>
References: <37059182-6C51-49E3-83A0-D27F2C15A366@cooperw.in> <CADqQgCQ_hEacxApiauKLYD0Y+ahkXGDi9uXFvLN1XjqLpzjh0Q@mail.gmail.com> <5C131A2D-2519-4CD5-AAB0-1E01563C9665@cooperw.in> <E33E01DFD5BEA24B9F3F18671078951F65345644@nkgeml501-mbs.china.huawei.com> <B30B3C53-F230-4607-878F-12BFBBE2D277@cooperw.in> <EE06F5C7-0499-49A1-86A7-2234C54D3EB1@cooperw.in> <E33E01DFD5BEA24B9F3F18671078951F653A9E39@nkgeml501-mbs.china.huawei.com> <52C1D77C-4E21-4C1B-A16E-D20B638B38FF@cooperw.in> <4541D978-85FB-483A-A66C-F8D22D8619F7@cisco.com> <2AAB9C16-3E6E-42E7-849B-195F1BAD6737@cooperw.in>
In-Reply-To: <2AAB9C16-3E6E-42E7-849B-195F1BAD6737@cooperw.in>
Accept-Language: en-US, zh-CN
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.136.79.145]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-CFilter-Loop: Reflected
X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020205.566E15F6.00AC, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=169.254.1.252, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32
X-Mirapoint-Loop-Id: 4c383aabe28bef8974401179f19060d0
Archived-At: <http://mailarchive.ietf.org/arch/msg/p2psip/27YFL93h5cB0ms6xRr88-Uj5p0k>
Cc: p2psip <p2psip@ietf.org>, "draft-ietf-p2psip-diagnostics@tools.ietf.org" <draft-ietf-p2psip-diagnostics@tools.ietf.org>
Subject: Re: [P2PSIP] AD evaluation: draft-ietf-p2psip-diagnostics-17 - crazy send math ....
X-BeenThere: p2psip@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Peer-to-Peer SIP working group discussion list <p2psip.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/p2psip>, <mailto:p2psip-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/p2psip/>
List-Post: <mailto:p2psip@ietf.org>
List-Help: <mailto:p2psip-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/p2psip>, <mailto:p2psip-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 14 Dec 2015 01:06:04 -0000

> -----Original Message-----
> From: Alissa Cooper [mailto:alissa@cooperw.in]
> Sent: Monday, December 14, 2015 1:49 AM
> To: Cullen Jennings
> Cc: Songhaibin (A); p2psip; draft-ietf-p2psip-diagnostics@tools.ietf.org
> Subject: Re: [P2PSIP] AD evaluation: draft-ietf-p2psip-diagnostics-17 - crazy
> send math ....
> 
> 
> > On Dec 8, 2015, at 8:10 AM, Cullen Jennings (fluffy) <fluffy@cisco.com>
> wrote:
> >
> >
> >> On Nov 11, 2015, at 4:09 PM, Alissa Cooper <alissa@cooperw.in> wrote:
> >>
> >>>
> >>> The definitions of EWMA_BYTES_SENT and EWMA_BYTES_RCVD seem
> problematic.
> >>>
> >>> sent = alpha x sent_present + (1 - alpha) x sent rcvd = alpha x
> >>> rcvd_present + (1 - alpha) x rcvd
> >>>
> >>> As written these equations are not right because sent/rcvd appear on both
> sides. It would be clearer to use last_sent and last_rcvd or some such on the
> right-hand side of these equations. But this begs some bigger questions:
> >>>
> >>> - Does this place a requirement on all nodes implementing this
> specification to have to calculate these values every 5 seconds?
> >>> - How are the values calculated the first time?
> >>> - How was the value of 5 seconds chosen?
> >>>
> >>> [Haibin] This is incorporated from the early RELOAD document. Maybe
> some author of the RELOAD protocol can give a better explanation.
> >>
> >> This still has not been explained.
> >>
> >
> > I'm sure I know what this was meant to represent when it was written ....
> >
> > sent for time period t should be set to the value of alpha times the amount
> sent in this time period plus (1-alpha) times the value of send for the previous
> time period.
> >
> > The value sent for the very first time period should simply be the amount that
> was sent in that time period. That is not computable before the end of the time
> period. I doubt anyone cares what the values before the end of the first time
> period. Note that alpha is a constant that is probably compiled into the
> application and not something we expect end users to set.
> 
> Thanks Cullen.
> 
> I think the draft needs some text to explain the above. Haibin, do you think you
> could draft something up?
> 

Yes. That's also my understanding of the text. I can write some text down.

BR,
-Haibin

> Alissa
> 
> >
> > Basically this is a somewhat crappy infinite impulse response (IIR) filter
> approximation of finite impulse response (FIR) filter for computing the weighted
> moving average of the data transmission rate.
> >
> > Dito for rcvd.
> >
> > Hope that helps,
> >
> > Cullen
> >
> >
> > As an irrelevant side note  .. In practice, I have found that just
> > reporting the raw totals number of bytes sent since the box booted
> > then letting the management system filter and smooth that values works
> > out better than using this
> >
> >
> >
> >
> >