Re: [codec] #19: How large is the frame size depended delay / the serialization delay?

stephen botzko <stephen.botzko@gmail.com> Sat, 01 May 2010 17:24 UTC

Return-Path: <stephen.botzko@gmail.com>
X-Original-To: codec@core3.amsl.com
Delivered-To: codec@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 844443A6A67 for <codec@core3.amsl.com>; Sat, 1 May 2010 10:24:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.102
X-Spam-Level:
X-Spam-Status: No, score=-1.102 tagged_above=-999 required=5 tests=[AWL=-0.363, BAYES_20=-0.74, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0O8q9T-E4tIE for <codec@core3.amsl.com>; Sat, 1 May 2010 10:24:36 -0700 (PDT)
Received: from mail-ww0-f44.google.com (mail-ww0-f44.google.com [74.125.82.44]) by core3.amsl.com (Postfix) with ESMTP id 6E8E83A68D6 for <codec@ietf.org>; Sat, 1 May 2010 10:24:31 -0700 (PDT)
Received: by wwb24 with SMTP id 24so887226wwb.31 for <codec@ietf.org>; Sat, 01 May 2010 10:24:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=fvC8zod1I8FBudj5tBXS/qNPYEavQ9An/sijPR1j9U4=; b=Qu1jrGP5oE/IMqk/L4qjEpMQ9d4mdiw0kk/g0LWXObo25GFNTqa4L9LTKbdgb6F7fO J9x22IpForcKSwjyM6RUTKZUXYqqJhjeyQbr4tDR1vVIJQcZDPVdjHuiHi5efgophy3T dtMhuofSR+aI8WHrJGVfLbgCdVyWlZJWpj4Y0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ZrXo0Zl/pYiOuQc9pdNyoKfVknkUeM21WoZ2cRVXHVkqel0gxJY11PgyizSU2MnKe4 zbAbAJ96+Jlyu5WiHGCM4FWJtNRCFgu8hXMlhFmyeajWqHXAx5ygKDySpKkK1++FtnzX e+zeUzgRAYJBnnNLh9t4kXT9wL2nLBSwySfSI=
MIME-Version: 1.0
Received: by 10.216.168.71 with SMTP id j49mr3422212wel.175.1272734653455; Sat, 01 May 2010 10:24:13 -0700 (PDT)
Received: by 10.216.28.139 with HTTP; Sat, 1 May 2010 10:24:13 -0700 (PDT)
In-Reply-To: <002f01cae951$6d802d60$48808820$@de>
References: <062.7439ee5d5fd36480e73548f37cb10207@tools.ietf.org> <002d01cae188$a330b2c0$e9921840$@de> <CB68DF4CFBEF4942881AD37AE1A7E8C74AB3F4A017@IRVEXCHCCR01.corp.ad.broadcom.com> <4BD11C50.2020206@usherbrooke.ca> <CB68DF4CFBEF4942881AD37AE1A7E8C74AB3F4A270@IRVEXCHCCR01.corp.ad.broadcom.com> <12151537-165D-426A-B71F-8B3D76BE4854@cisco.com> <CB68DF4CFBEF4942881AD37AE1A7E8C74B901372FE@IRVEXCHCCR01.corp.ad.broadcom.com> <20100430230756.13687lc1s5o89gsc@mail.skype.net> <x2t6e9223711005010631kb53e8d5fmb680b34a43f13416@mail.gmail.com> <002f01cae951$6d802d60$48808820$@de>
Date: Sat, 01 May 2010 13:24:13 -0400
Message-ID: <k2m6e9223711005011024xb4e17002s17d7383c8822847e@mail.gmail.com>
From: stephen botzko <stephen.botzko@gmail.com>
To: Christian Hoene <hoene@uni-tuebingen.de>
Content-Type: multipart/alternative; boundary="0016e649d7c6e9a53804858ba0f1"
Cc: codec@ietf.org
Subject: Re: [codec] #19: How large is the frame size depended delay / the serialization delay?
X-BeenThere: codec@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Codec WG <codec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/codec>, <mailto:codec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/codec>
List-Post: <mailto:codec@ietf.org>
List-Help: <mailto:codec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/codec>, <mailto:codec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 01 May 2010 17:24:38 -0000

>>>
Having said this, I would anyhow suggest to include the processing delay
into the measurement of the end-to-end (acoustic round) trip time.  Those
measurements should be part of the control loop that optimizes the overall
conversation call quality.
>>>

Hi Christian

I don't understand what you have in mind on this control loop idea, or what
the control loop has to do with acoustic round trip time.

Maybe you could outline your thoughts on this control loop generally in more
detail?

Stephen Botzko


On Sat, May 1, 2010 at 1:11 PM, Christian Hoene <hoene@uni-tuebingen.de>wrote:

>  Hi,
>
>
>
> I agree that serialization, processing, and implementation delay should be
> distinguished.
>
>
>
> Assume a low-cost VoIP phone with its processing power being fully utilized
> by one call: Then, the DSP/CPU needs an entire frame duration to encode and
> decode frames. Thus, the latency is increase by one frame length in addition
> to the serialization delay, propagation delay, algorithmic delay,
> dejittering delay, echo cancelling delay, ...  Running the chips at 100%
> load is of course cost saving compared to add some more computational
> resource. But is this still a relevant issue today?
>
>
>
> I am not sure whether it always make sense for mobile device to run at 100%
> load. Of course, from a energy consumption perceptive it make sense to run
> CMOS circuit at the lowest possible frequency as power consumption drops
> quadratic. But maybe running the CPU/DSP at higher speed and switching to
> power save mode if after the a frame has been decoded/encoded is be equally
> energy efficient…
>
>
>
> Even if a gateways DSP is utilized fully, the processing delays must not be
> very large. For example, take a gateway serving 10000 calls and all
> CPUs/DSPs are at 100%. Then, the time needed for encoding/decoding should be
> frame duration/10000, if the encoding/decoding is well scheduled.
>
>
>
> Also, I do not think we shall consider implementation delay, which occurs
> due to suboptimal implementation. For example, some years ago we tested the
> RTT of two Linux softphones link directly together using G.711. It was
> 400ms. The implementation delay could be a good performance metric to
> differentiate two otherwise equal products. Also, the algorithmic processing
> delay might be subject to similar market optimization.
>
>
>
> Having said this, I would anyhow suggest to include the processing delay
> into the measurement of the end-to-end (acoustic round) trip time.  Those
> measurements should be part of the control loop that optimizes the overall
> conversation call quality.
>
>
>
> Christian
>
>
>
> ---------------------------------------------------------------
>
> Dr.-Ing. Christian Hoene
>
> Interactive Communication Systems (ICS), University of Tübingen
>
> Sand 13, 72076 Tübingen, Germany, Phone +49 7071 2970532
> http://www.net.uni-tuebingen.de/
>
>
>
> *From**:* codec-bounces@ietf.org [mailto:codec-bounces@ietf.org] *On
> Behalf Of *stephen botzko
> *Sent:* Saturday, May 01, 2010 3:31 PM
> *To:* Koen Vos
> *Cc:* codec@ietf.org
> *Subject:* Re: [codec] #16: Multicast?
>
>
>
> If the frame-size multiplier is due to serialization, then I agree with
> Koen's assessment.  In fact on many connections the multiplier would be less
> than 1. Dial-up is of course the worst case here, and on those links the
> multiplier ought to be close to 2.  Variations due to congestion (and on
> some links, polling) are (IMHO) better modeled as jitter.
>
> Gateways are another matter, with the delays being highly dependent on the
> product architecture.  Interupt latencies, context switching, bus
> architectures, etc. can dominate, so it is totally possible that reducing
> the frame size might actually increase the latency (since it increases the
> packets per second load on the gateway).  So I agree with Koen on this as
> well.
>
> Anecdotal models based on industry experience can be useful guides - though
> if we are going to use these models to drive requirements, I'd prefer
> something more analytical.
>
> Stephen Botzko
>
> On Sat, May 1, 2010 at 2:07 AM, Koen Vos <koen.vos@skype.net> wrote:
>
> Quoting "Raymond (Juin-Hwey) Chen":
>
>  One-way delay = codec-independent delay + 3*(codec frame size) + (codec
> look-ahead) + (codec filtering delay if any)
>
> This formula was obtained from an experienced engineer who has been working
> on IP phones related fields for more than a decade,
>
>
>
> At Skype We have 100+ years of combined VoIP experience, and a focus on
> minimizing delay as part of our goal to maximize quality.  The consensus
> among our engineers is that the multiplier is closer to 1 than to 2, at
> least for software VoIP applications over typical Internet connections.
>  Some years ago the situation was slightly worse because dial-up was more
> prevalent.
>
>
>
>  Similar 3X multiplier is also observed in VoIP gateways.  Even with a
> fast processor/system optimized from ground up to be low-delay, the measured
> "codec-dependent" one-way delay of such a VoIP gateway using the G.711 codec
> with a 5 ms frame/packet size is between 12 and 17 ms, or around 3X the
> frame size.
>
>
>
> As I've pointed out before, that doesn't say much about how the delay
> increases with larger frame sizes.  Perhaps the 12~17 ms includes a constant
> delay of 7 ms, and the marginal growth of delay with frame size is 1x.
>
> best,
> koen.
>
>
> _______________________________________________
> codec mailing list
> codec@ietf.org
> https://www.ietf.org/mailman/listinfo/codec
>
>
>
> _______________________________________________
> codec mailing list
> codec@ietf.org
> https://www.ietf.org/mailman/listinfo/codec
>
>