Re: [rtcweb] Issue with "priority" defined in rtcweb-transports

Taylor Brandstetter <deadbeef@google.com> Tue, 17 October 2017 22:10 UTC

Return-Path: <deadbeef@google.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AB82013209C for <rtcweb@ietfa.amsl.com>; Tue, 17 Oct 2017 15:10:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
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 KYotym74pPOg for <rtcweb@ietfa.amsl.com>; Tue, 17 Oct 2017 15:10:04 -0700 (PDT)
Received: from mail-vk0-x22a.google.com (mail-vk0-x22a.google.com [IPv6:2607:f8b0:400c:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 21A17126B7E for <rtcweb@ietf.org>; Tue, 17 Oct 2017 15:10:04 -0700 (PDT)
Received: by mail-vk0-x22a.google.com with SMTP id q13so2127799vkb.2 for <rtcweb@ietf.org>; Tue, 17 Oct 2017 15:10:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KQ3XZMBgVkGBM0C8uXoMjoGZBbC7jOFWdMbsyGz9/Z0=; b=oPN7JBSZbZooOUPRmGy42e3p+5eEPPOZ+dNm+u2SMDXDXl6GTXr44XzPkBCfeFyILV IGjOyFVugRKVbu8YXzokUcT6hWfzC1GrURj+rE9R2zBh/ioZGml74br7/8J24MwFPk3G Veu+E+GNwD63adgpyfzgAd0XDew/F4itvO6rYpATdHuQPc3Vh7JqfD//nf4P4RrElBD0 MMoHcTS5MoCnlPCw2IW4xWh25kd7YyF3omaw8Bu7wrLySKKceVXYUP9WqcftwE0NfaRF g7dB7VGZnY5ZvKGFCs6OimbLT3iPJ4dnegneNbgmthjTYdZTq6/5/wE3xmw+RGxiNDwK //Vw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KQ3XZMBgVkGBM0C8uXoMjoGZBbC7jOFWdMbsyGz9/Z0=; b=XN+AzZsQazFJ3LQl5BL822HT3OxYBpPFRFcQZcuuDEK7fkbT0ZTQ33A68oZbwjoQ8B yi6j65XrvaXvHUAf0JNP1Kr9NzDnC0ff4HnM+ZHoyg/vV7FDT/0ynIDoZxMD4VVovpdz iSOu9jN6xMAuI0hBuymnozp/M2yOxe7NPtQKultnBvTidZOAm35F5I5GZo7Wg63cKwgO yTkpHvkZyMsg0fkktPzfdc0xbRUj4zJ6qGTdkj2vRa85qhtU1d9sbVoeIlzcx4LaHSPX eLoKebHKGOiLvARAiRr2UML0NR47BuGYcKrqynQLI0QEoMMxeHlAc916XEwZQalMkKU8 EbKQ==
X-Gm-Message-State: AMCzsaWaz00lUTgpv9Tliw25H5eRUiIu2LMAYB+JdBte0JHHSkOR76IF JsmpJz5HORcO8DUUB6HyTGMzLuk8tFpEEua7qVSVJg==
X-Google-Smtp-Source: ABhQp+T+crUBs+LicmS1tNfcRNlk5uiEBvqnNzKDZzbTpwe1iWo5ydfEsNthBCKMYC5XKx3tdz2em5YqY0/ZKNi6RPE=
X-Received: by 10.31.16.35 with SMTP id g35mr4356428vki.131.1508278202793; Tue, 17 Oct 2017 15:10:02 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.31.169.130 with HTTP; Tue, 17 Oct 2017 15:10:01 -0700 (PDT)
In-Reply-To: <6da0d797-e1db-a8e7-65d1-0e632ee55c6a@alvestrand.no>
References: <CAK35n0Z6_N9iMZ3F2y1QXG1M9Efx4ha9sm8CBcahzjYtHwWSEg@mail.gmail.com> <183cc5c2-470b-0dab-d474-7f22134f867a@ericsson.com> <CAK35n0Y90137Y5hsMgS-1XoLsW5V9hkMpd1MNf9JUT7OrJKGcw@mail.gmail.com> <85ff04f8-bcae-8561-9866-48d5c16bf0a1@alvestrand.no> <CAK35n0Zu70z6nSFSMX05O913cUj_73W9V8FNK54LZrsMEdQPgg@mail.gmail.com> <6da0d797-e1db-a8e7-65d1-0e632ee55c6a@alvestrand.no>
From: Taylor Brandstetter <deadbeef@google.com>
Date: Tue, 17 Oct 2017 15:10:01 -0700
Message-ID: <CAK35n0ZkmvRyGGw5Zc2XoZ4WsF+XJ5qBbxa4wt+j1wtjZJinBw@mail.gmail.com>
To: Harald Alvestrand <harald@alvestrand.no>
Cc: Magnus Westerlund <magnus.westerlund@ericsson.com>, RTCWeb IETF <rtcweb@ietf.org>
Content-Type: multipart/alternative; boundary="001a1143195e808e12055bc56248"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/grfttN2ajxWCyu_6m7Y0XyOXy18>
Subject: Re: [rtcweb] Issue with "priority" defined in rtcweb-transports
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtcweb/>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Oct 2017 22:10:06 -0000

I think the issue is that the example leads you to get the wrong idea about
what the priority is intended to effect. Does it affect encoding, or just
transport? Is the advice meant to say "give the codecs a 1:2 split of the
available bandwidth"? Or "give the codecs some split of the available
bandwidth determined elsewhere, then as packets are queued for
transmission, send them with a 1:2 weighted round-robin scheme or something
equivalent"? I interpreted it as the former. It may just be that I'm not
interpreting this as intended, and there really isn't an issue, other than
possibly needing some clarification.

On Tue, Oct 17, 2017 at 1:18 PM, Harald Alvestrand <harald@alvestrand.no>
wrote:

> Den 17. okt. 2017 18:59, skrev Taylor Brandstetter:
> >     For instance, screenshare-type video varies enormously in
> >     bandwidth (very low at static images, enormous at slide change) - if
> it
> >     competes against audio, a "relative" bitrate ratio will not be
> useful at
> >     all.
> >
> >
> > I think that's where it's important to get the terminology right; for
> > example, rtcweb-transports uses the term "capacity", which implies that
> > it's possible to use fewer bits than the capacity. Maybe that's the best
> > way to think of this. We also can allow some implementation flexibility.
> >
> >     Is there a way we can punt this?
> >
> >
> > If we do punt this, I still think we should remove the part of
> > rtcweb-transports that talks about the priority causing codecs to be
> > configured with send rates at these 1:2:4:8 ratios:
> >
> >        o  When the available bandwidth is known from the congestion
> control
> >           algorithm, configure each codec and each data channel with a
> >           target send rate that is appropriate to its share of the
> available
> >           bandwidth.
> >
> >
> > We should make it clear that the priority only affects the delivery of
> > packets (pacing decisions, QoS, SCTP priority), and not how the packets
> > are generated upstream. Assuming others agree.
>
> The words about configuring the codecs were intended as advice - most
> codecs are terrible at dealing with random lost packets (even with FEC
> and NACK and all that), so if the pacer is going to throw their packets
> away, the best thing to do is to not generate them.
>
> (Hierarchical coding schemes with frames that have no references to them
> work fine as long as you throw away complete frames, though. So
> sometimes it works.)
>
> This section is already headed with the words "Two example
> implementation strategies are:", so it should already be clear that it's
> advice, not normative language.
>
> I'm happy to weaken the words even more, but wouldn't want to lose the
> advice entirely.
>