Re: [codec] #16: Multicast?

"Raymond (Juin-Hwey) Chen" <rchen@broadcom.com> Tue, 04 May 2010 23:27 UTC

Return-Path: <rchen@broadcom.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 BAE183A6985 for <codec@core3.amsl.com>; Tue, 4 May 2010 16:27:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.222
X-Spam-Level:
X-Spam-Status: No, score=-0.222 tagged_above=-999 required=5 tests=[AWL=-0.223, BAYES_50=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 cUoG5xtm95ox for <codec@core3.amsl.com>; Tue, 4 May 2010 16:27:16 -0700 (PDT)
Received: from MMS3.broadcom.com (mms3.broadcom.com [216.31.210.19]) by core3.amsl.com (Postfix) with ESMTP id ED3C63A6A24 for <codec@ietf.org>; Tue, 4 May 2010 16:01:11 -0700 (PDT)
Received: from [10.9.200.133] by MMS3.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.2)); Tue, 04 May 2010 16:00:45 -0700
X-Server-Uuid: B55A25B1-5D7D-41F8-BC53-C57E7AD3C201
Received: from IRVEXCHCCR01.corp.ad.broadcom.com ([10.252.49.31]) by IRVEXCHHUB02.corp.ad.broadcom.com ([10.9.200.133]) with mapi; Tue, 4 May 2010 16:02:08 -0700
From: "Raymond (Juin-Hwey) Chen" <rchen@broadcom.com>
To: Christian Hoene <hoene@uni-tuebingen.de>
Date: Tue, 04 May 2010 16:00:42 -0700
Thread-Topic: [codec] #16: Multicast?
Thread-Index: AcrimhyNUh3NLsf5RvSfcmuOhmvRfwBUwYUAAVLFoDAApwRsUA==
Message-ID: <CB68DF4CFBEF4942881AD37AE1A7E8C74B903454B3@IRVEXCHCCR01.corp.ad.broadcom.com>
References: <062.7439ee5d5fd36480e73548f37cb10207@tools.ietf.org> <3E1D8AD1-B28F-41C5-81C6-478A15432224@csperkins.org> <D6C2F445-BE4A-4571-A56D-8712C16887F1@americafree.tv> <C0347188-A2A1-4681-9F1E-0D2ECC4BDB3B@csperkins.org> <u2x6e9223711004210733g823b4777y404b02330c49dec1@mail.gmail.com> <000001cae173$dba012f0$92e038d0$@de> <r2q6e9223711004211010gfdee1a70q972e8239fef10435@mail.gmail.com> <001101cae177$e8aa6780$b9ff3680$@de> <t2t6e9223711004211119i6b107798pa01fc4b1d33debf1@mail.gmail.com> <002d01cae188$a330b2c0$e9921840$@de> <CB68DF4CFBEF4942881AD37AE1A7E8C74AB3F4A017@IRVEXCHCCR01.corp.ad.broadcom.com> <4BD11C50.2020206@usherbrooke.ca> <CB68DF4CFBEF4942881AD37AE1A7E8C74AB3F4A287@IRVEXCHCCR01.corp.ad.broadcom.com> <002c01cae939$5c01f400$1405dc00$@de>
In-Reply-To: <002c01cae939$5c01f400$1405dc00$@de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
MIME-Version: 1.0
X-WSS-ID: 67FE789731G114354521-01-01
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Cc: "codec@ietf.org" <codec@ietf.org>
Subject: Re: [codec] #16: Multicast?
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: Tue, 04 May 2010 23:27:21 -0000

Hi Christian,

Sorry for the delay of my response.  I was busy with other things and not available to respond to IETF emails until now.

You wrote:
> The arguments on costs of the gateways is raised often. Thus, it is worthwhile to 
> consider in-depth.

> May I ask you for more information about the design of VoIP Gateways. Particular, I am > interested in the partition between audio
> processing and protocol stack on DSP and CPU.

> Does DSP take over all codec processing? May the CPU do some parts of the computation > before, during or after DSP does the signal
> processing?

[Raymond]: I asked an engineering manager who was deeply involved in the design of high-density VoIP gateways. He said that in such gateways, due to the high number of voice channels (thousands) per box, a large number of DSPs and micro-controllers are used, and they are usually structured in a hierarchical way.  The DSPs typically take care of all speech codec processing, echo cancellation, DMTF tone detection, and fax, etc.  The DSPs are usually divided into groups, with each groups of DSPs controlled by a single micro-controller, which handles things like RTP, jitter buffering, packetization, QoS statistics, and moving the voice traffic to and from the DSPs in the group.  Then, on top of that there may be higher-performance controllers, each connected to many such groups of micro-controller + DSPs.  These higher-performance controllers may handle things like call setup, UDP/IP/RTP, routing to and from internal processor groups, and routing to and from external networks/devices.

> How do you count number of channels? Do all voice channels have the same weight 
> regardless their sampling rate?
> Say suppose, if the mixing is done for 48kHz instead of 8kHz, how many resource are we 
> allowed to consume more?

[Raymond]: I am not sure what you meant. The channel count is just counting the actual physical voice channels that the gateway can handle simultaneously; it is not a weighted sum. Are you thinking that a 48 kHz channel should be counted more than an 8 kHz channel because it requires more computational resources? Typical VoIP gateways only support 8 kHz telephone-bandwidth speech, so 48 kHz is out of the picture.  
With that said, the complexity difference between speech codecs can make a big difference in the channel density.  Let's say a VoIP gateway supports X simultaneous voice channels running the G.711 codec.  Since the complexity of G.711 PCM is next to nothing, the complexity of each voice channel is dominated by the echo canceller (EC).  Now if you replace the G.711 codec by the G.729A codec which takes about 10 MIPS of computational complexity for a full-duplex codec, that can easily decrease the channel density to X/2.5 per gateway, depending on the EC and other things.  If you replace the G.711 codec by the G.728 codec that takes 30+ MIPS, the channel density can easily go down to X/4 ~ X/5 or worse.  
Thus, if you choose a high-complexity codec, you would need to buy a lot more VoIP gateways to support the same number of voice channels than if you use a low-complexity codec. The cost difference is very real and can be very big.

Raymond