Re: [AVTCORE] RFC3550: RTP Jitter value calculation

Nataraja Hosahalli <Nataraja.Hosahalli@dspg.com> Thu, 27 March 2014 17:33 UTC

Return-Path: <Nataraja.Hosahalli@dspg.com>
X-Original-To: avt@ietfa.amsl.com
Delivered-To: avt@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 31B6D1A032F for <avt@ietfa.amsl.com>; Thu, 27 Mar 2014 10:33:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, UNPARSEABLE_RELAY=0.001] 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 3J8CiwVdXJTG for <avt@ietfa.amsl.com>; Thu, 27 Mar 2014 10:33:20 -0700 (PDT)
Received: from mail1.bemta12.messagelabs.com (mail1.bemta12.messagelabs.com [216.82.251.4]) by ietfa.amsl.com (Postfix) with ESMTP id 451CF1A01B5 for <avt@ietf.org>; Thu, 27 Mar 2014 10:33:19 -0700 (PDT)
Received: from [216.82.249.211:51105] by server-4.bemta-12.messagelabs.com id 89/61-03559-DD064335; Thu, 27 Mar 2014 17:33:17 +0000
X-Env-Sender: Nataraja.Hosahalli@dspg.com
X-Msg-Ref: server-12.tower-53.messagelabs.com!1395941591!2145213!1
X-Originating-IP: [194.90.94.169]
X-StarScan-Received:
X-StarScan-Version: 6.11.1; banners=dspg.com,-,-
X-VirusChecked: Checked
Received: (qmail 6026 invoked from network); 27 Mar 2014 17:33:13 -0000
Received: from smtpout.dsp.co.il (HELO IL-EXCH-02.dspg.com) (194.90.94.169) by server-12.tower-53.messagelabs.com with AES128-SHA encrypted SMTP; 27 Mar 2014 17:33:13 -0000
Received: from IL-EXCH-01.dspg.com ([fe80::6485:7965:b11c:4f5d]) by IL-EXCH-02.dspg.com ([fe80::f8d1:ac24:f562:3b8b%11]) with mapi id 14.02.0309.002; Thu, 27 Mar 2014 19:33:10 +0200
From: Nataraja Hosahalli <Nataraja.Hosahalli@dspg.com>
To: Stephen Casner <casner@acm.org>
Thread-Topic: [AVTCORE] RFC3550: RTP Jitter value calculation
Thread-Index: Ac9J4kErW9qu/M++T+ylqTUddYYUCw==
Date: Thu, 27 Mar 2014 17:33:10 +0000
Message-ID: <349A84ECFABF2A4F98D9102C4AFD83FA55D658CC@IL-EXCH-01.dspg.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-originating-ip: [194.90.94.168]
Content-Type: multipart/mixed; boundary="_002_349A84ECFABF2A4F98D9102C4AFD83FA55D658CCILEXCH01dspgcom_"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/avt/DaxwO-J3iqQfARjoxUrXnTg91_s
Cc: "avt@ietf.org" <avt@ietf.org>
Subject: Re: [AVTCORE] RFC3550: RTP Jitter value calculation
X-BeenThere: avt@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Audio/Video Transport Core Maintenance <avt.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/avt>, <mailto:avt-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/avt/>
List-Post: <mailto:avt@ietf.org>
List-Help: <mailto:avt-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/avt>, <mailto:avt-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 27 Mar 2014 17:33:22 -0000

Hi Steve,

Thanks for the clarification. Now I got a better understanding of the significance of the jitter.

In order to understand the topic bit further I have added both the calculations into excel sheet, I have calculated the rr->jitter for 500 iterations with a constant value of "d" for both fixed and floating point formula. 
Please have a quick look on the attached excel sheet. You can edit the cell A6 for a different "d" value.

In the excel results, jitter value with both formulae is differing by 1 RTP TS unit. But I assume it is very much negligible.

Thank you.

Regards,
Nataraj

-----Original Message-----
From: Stephen Casner [mailto:casner@acm.org] 
Sent: Wednesday, 26 March, 2014 10:56 PM
To: Nataraja Hosahalli
Cc: Kevin Gross; avt@ietf.org
Subject: Re: [AVTCORE] RFC3550: RTP Jitter value calculation

On Wed, 26 Mar 2014, Nataraja Hosahalli wrote:

> Hi Kevin,
>
> Yes you are right. I ran both the formulae and also your improved
> formula for 500 times with constant d value, the value rr->jitter is
> converging near to average delay d after couple of iterations (~100
> for d=2 for example).
> However your new formula below is resulting to more accurate average.
> rr->jitter = (s->jitter + 8) >> 4;
> Older formula is almost always lagging by nearly 1 ms (0.5 ms
> floating value) with the average delay.
>
> May be your new formula can be updated in RFC.

That difference in accuracy is unimportant because the value is not
intended to be interpreted quantitatively.  This is an important
paragraph from RFC 3550:

   The interarrival jitter field provides a second short-term measure of
   network congestion.  Packet loss tracks persistent congestion while
   the jitter measure tracks transient congestion.  The jitter measure
   may indicate congestion before it leads to packet loss.  The
   interarrival jitter field is only a snapshot of the jitter at the
   time of a report and is not intended to be taken quantitatively.
   Rather, it is intended for comparison across a number of reports from
   one receiver over time or from multiple receivers, e.g., within a
   single network, at the same time.  To allow comparison across
   receivers, it is important the the jitter be calculated according to
   the same formula by all receivers.

The integer calculation was kept as simple as possible for use in
environments with constrained processing power.  In a modern DSP with
fast floating point calculations, this is not an issue, but 30-40
years ago we had to use fixed-point arithmetic in our array processors
and early DSPs.  The jitter calculation using a scaled value is an
example of that.

                                                        -- Steve

______________________________________________________________________
DSP Group, Inc. automatically scans all emails and attachments using MessageLabs Email Security System.
_____________________________________________________________________

______________________________________________________________________
DSP Group, Inc. automatically scans all emails and attachments using MessageLabs Email Security System.
_____________________________________________________________________