Re: [Moq] Latency @ Twitch

Piers O'Hanlon <piers.ohanlon@bbc.co.uk> Thu, 04 November 2021 10:58 UTC

Return-Path: <piers.ohanlon@bbc.co.uk>
X-Original-To: moq@ietfa.amsl.com
Delivered-To: moq@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C5B803A0FD4 for <moq@ietfa.amsl.com>; Thu, 4 Nov 2021 03:58:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 mKJpTf5ol9b2 for <moq@ietfa.amsl.com>; Thu, 4 Nov 2021 03:58:40 -0700 (PDT)
Received: from mailout0.cwwtf.bbc.co.uk (mailout0.cwwtf.bbc.co.uk [132.185.160.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 47B983A0FCF for <moq@ietf.org>; Thu, 4 Nov 2021 03:58:40 -0700 (PDT)
Received: from BGB01XI1006.national.core.bbc.co.uk ([10.184.50.56]) by mailout0.cwwtf.bbc.co.uk (8.15.2/8.15.2) with ESMTP id 1A4AwX5F005751; Thu, 4 Nov 2021 10:58:33 GMT
Received: from BGB01XH1003.national.core.bbc.co.uk (10.118.80.1) by BGB01XI1006.national.core.bbc.co.uk (10.184.50.56) with Microsoft SMTP Server (TLS) id 14.3.498.0; Thu, 4 Nov 2021 10:58:33 +0000
Received: from BGB01XH1004.national.core.bbc.co.uk (10.118.80.2) by BGB01XH1003.national.core.bbc.co.uk (10.118.80.1) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 4 Nov 2021 10:58:32 +0000
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (104.47.14.58) by BGB01XH1004.national.core.bbc.co.uk (172.22.64.34) with Microsoft SMTP Server (TLS) id 15.0.1497.18 via Frontend Transport; Thu, 4 Nov 2021 10:58:32 +0000
Received: from AM7PR01MB6738.eurprd01.prod.exchangelabs.com (2603:10a6:20b:1a2::9) by AM6PR0102MB3078.eurprd01.prod.exchangelabs.com (2603:10a6:209:11::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.18; Thu, 4 Nov 2021 10:58:31 +0000
Received: from AM7PR01MB6738.eurprd01.prod.exchangelabs.com ([fe80::9a4:4582:1500:e4d5]) by AM7PR01MB6738.eurprd01.prod.exchangelabs.com ([fe80::9a4:4582:1500:e4d5%8]) with mapi id 15.20.4669.011; Thu, 4 Nov 2021 10:58:31 +0000
From: Piers O'Hanlon <piers.ohanlon@bbc.co.uk>
To: Luke Curley <kixelated@gmail.com>
CC: Ian Swett <ianswett@google.com>, "Ali C. Begen" <ali.begen@networked.media>, Bo Zhang <bzgmuj@yahoo.com>, MOQ Mailing List <moq@ietf.org>, Yuriy Reznik <yreznik@brightcove.com>, Thiago Teixeira <tteixeira@brightcove.com>
Thread-Topic: [Moq] Latency @ Twitch
Thread-Index: AQHXz4Iha1HowypueUeGgLSGNgqcS6vwtIiAgAFBZICAABT1AIAAPBSAgAAJGgCAAAl+AIAA3TuA
Date: Thu, 04 Nov 2021 10:58:31 +0000
Message-ID: <6904CE31-940F-4D10-B312-4AEB67E9F9CB@bbc.co.uk>
References: <CAHVo=ZnXNnT2uod6oxHXTRoyA58cpn35BrV6eOXXnGUOFbcvSQ@mail.gmail.com> <0ADDD7B3-B49E-40E1-99E9-278EF0EA9B85@networked.media> <AF32886D-0524-45D4-9577-FCEFD601A0A1@bbc.co.uk> <73C6FFEB-CE81-4DE7-B110-55892D746927@networked.media> <CAHVo=Znu7F18fj4Anxz3j1byM+9aQmJ6N4DdFjUZk9fGjG8iXg@mail.gmail.com> <CAKcm_gM=bcALtqoLd8mYLdCiTK=ZfEF0RkXBkw17bPR6MjoMhA@mail.gmail.com> <CAHVo=ZngW+Z4-wGqAb4fRYQiSz6O4tOq1+nuto3PJaYLj1iWFg@mail.gmail.com>
In-Reply-To: <CAHVo=ZngW+Z4-wGqAb4fRYQiSz6O4tOq1+nuto3PJaYLj1iWFg@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=bbc.co.uk;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 0e918a24-a1f6-4362-9cde-08d99f820a27
x-ms-traffictypediagnostic: AM6PR0102MB3078:
x-microsoft-antispam-prvs: <AM6PR0102MB30788448E57C36BA94927D75BD8D9@AM6PR0102MB3078.eurprd01.prod.exchangelabs.com>
x-ms-oob-tlc-oobclassifiers: OLM:8882;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: zehKuF/F2KsIgBl+k5jsuTaBDg0mwBL174Z0DnO96yW10sy+IaakZb2tDetkizVx+KqFNvvvgVGmo7mbwFC+Fuj6yaAX6zqPJS1VIbv8UkX8CmWwZ4ApulO/O62Lk7YIHWvHduO5apjMTGdzm1OLnNg7Ip2Mf8nSiuIUWN7YsYeEYBG3xmKWRhs+n5F4S/WKnv09dnCmlE7tEPMdnxRUFwZBARhjR53iW5R6ZYJOo/crNharUiVp2LhcqeZIQGQRnOWkODTLI0pZIeAAQV5ZnU5SolXCtHvdEgSGJbVhYBV8INvYLn7FWZW55ZNLsaADgBYWCsU0e7vcqKPgLCucUW8360L+ekKWf6tLX6cqw5RXAL8pRDpYWaaAjv+DnJpnV3S91cxvT9ivm43erTs8kIXeKKVy/dmvPIWlt71P73KpTFsQnYCeK88IdBgsbimEXfOXEcLJyuwXGDOPgA40p7F6cJwIi3fE7OQVjsBCSr5ci6Ctj59M07FyN49htWNKnfXuRGw0415iKxKF6l+r5HDjA7nxQ92tssBLlaBJk//F5CrwhjGP92cmrQ9NbSgDmA6MEFdOFaMSXiDeNSVdfwWuJg89QUXVpa7+qZ7NC1JroP+C6ddv+84wWU1Q8vfTXZFkMQb+YYcLwMuGlOj6bx5y36OUR/aGFABp1EQoRYkw1Vf045DPzs2MdCw7VhX9Bgsc68cP83gNqC5RwknSe+f0ksYhrX76GAH+XbuWk+CieBlzO3/BaNDMKgaWS+XElk0PlrF51a1zxC8rSK7Mnus+b1a3r2W2n/khwH4Dt7dQ/VrzYYJ5CMpqQ8A34N0mPJZvIcZ5gMWPW/cVZyAjwepNMzaOhdg44WC9DsD3G8k=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR01MB6738.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(34552001)(66946007)(508600001)(166002)(66574015)(66476007)(66446008)(54906003)(64756008)(966005)(6506007)(38070700005)(8936002)(33656002)(122000001)(38100700002)(6512007)(6916009)(5660300002)(86362001)(8676002)(2906002)(83380400001)(36756003)(4326008)(53546011)(66556008)(71200400001)(2616005)(186003)(316002)(6486002)(91956017)(76116006); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: Zli+BFM7my/Y2xscoLBckvCSwmUMkIvcaY8d3W1s0t9lJ7mD55NAYYygxgyI2SYP7RbN3ishBFQEIQH/DSG/vrbHAD96rzgzL/JW7M00vn7uVgNrhfw5X5x+XNKAR+tpn7Wgt4nzbgun11SVobqYHoRuA6YzFpKj58CnobkomBUZDY+VjJosT1SptysnwfCYZQFA2+4mbt4ogNYYsSlOVB4UYhVReySTXiVWghs/Vk1X/pi6n0KipCA5bWt95D3uQgZl4JB4gG9a6nEztpzj6LPxIp1/u0kDuL60gcRi9loI2jXg9ECZ8A8XchK8zUG5czAZTuTA1HoJWVkDfwORVbvnEHLgppqm/IvglE61jhoki8yEVixTp8qH0yIPSUtSPziYPeJwbRke9/llG/htuV8IU3WpppWpwRTBphHk8MEN2N32zbiHbcVz9Yj8RRDOX9nKz32FrFv8X5RekC99xnyPPA4xP7CAurUIjEX4YNBa5OToB3lbSPKqAJS5FM2xqg95QBYsrTf168z1lRFQkcjZOtqPw3gMMPa3mrmHy9RTyigl4kMSsjbeMH91RZv3/YT5Wl37mttcGhmkVr2Syt2P8YayBr1MkKwE6wujkmzg48/SaDBU7NBhPoltGxONTSZytfwBxTUL2yA6Et/juiOo56LQLVzFBx+CsbJC21eNZmUzwmcgi9Lsf2DJ36T0H/7gkh1KGjvw9dEUnQxmyKiD4LOEECQ4vGqA139UPlOagFFsxOT316oEn9PlYnMqhjObcj7CZYqRXzxiOD9diy0iCr6f8YV+6YUsAF42nrLb5IKOMlz/xByKIcltaylT369Ai3NYKDFLq5XDg0so6wzYG2+1NkC5bpSUCBMknO6yDiP4JvMApgWcdeZN13TTPGRHKF6WJJyClejSUTXN2NHcgyKLAGDTq6MgwkIErHUYZmWH3/HEx4LrWMnBH9tZTNYHA26PLiv1Q/4wTxd5jTieI1CxcPIQoyJ94IYQ8XAtUBabjbB9/fMKSKM8fK9QPVS7W0ji3V4Xp6rAD3IZlBDeEzL+WBA23o4z7cFMsam83nn2jsLJ8Yd0EGlbu1/Mag7nEeO//uUsVSFPhV9zbWfh9QNqz2B7hEh80bdPUdr7Y6I5CVU7aDfRNtfiFEGMNVMlNknISWMc5CP1NLIH2rfhT8t23H4RkRMoOttFZwS/IVlFlRtLZ6oleTTMn9ChtWNYVOTFS9whC0I0nPBPrjLf94iVjNPQHjzOgnLdizOoED8lSypKhYhsdJ4YMDjCZjArfZWsCufkckVvCFsLkxAXPT4p99QEqKD/25KamUcGRTjqNxIPLcTbS37QPIok8FrExtUsk87qkxw0i2EgPsPycfLFAoEsdvdF65WbwvIjHdAXKaM7ibWcBIqSri2r/VSR5X0v5tOLQDk7WNSAw6juyEwkxWFgqA82x3tlO16Wx2GWUZMsLbqrSQrh3VR2Opx2gy0ezy8MSFjvEj/8d0zVfOw6l/ZXqCI62hoyAUXZA6H8BGYyaI0J9hn7HuenIvSUemcMNi753VWApFOq3hmHgthfGNBjnok3etI112s/wZ5Gb5aqBmGpoVIMfnvQlJmgwUYF1f13EbWNBe5B6HBNAED8gxx1OulXKaMmgbILPEHr30poF9SNdcc+BgysDWqis2qDesbiArdTjmsNrJg7oflaIyA2oFUvqUGcB9M=
arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=afgyO7ak08+Um0sZB9k18y537zuZ/iX3ZiI2hfWQOiJ/g1ONB7bN+WJX+CLoTANARkoO+2HyKmJ1rT8F29kQy44dr02VCKZxyIrs/uQQwUbAcW0K6Kz9hQBxBculpZUeDIG98HE7+5Yx60M34jNHM3z6LfT88br1CbgVP+g2aJQSAkk5+fHUy6JiSPb7aiqiFCI4nL/ZvaP26VeqCgMrAn85cW+bxZInsvv8+/Rk3H/Nof1DjmOlhvjyiHTADU9FX8fsRrnGRoI4Uc/sskyVlN/qYeMvy/gZK70U8tHdeOt86a4ZiVJpcftrdLFuy9jPYkCZ1voI4lpC2QYMhy+Sjw==
arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=emhMSiiihRImSKP2G7CtJgS0aZphpe/clFuSv7t1OuY=; b=XF6ztotTOX373esHEaL30++Wq1tGo9s34PJknO2IQF9+JfYSK2euacMxSM6EHu5NA4H1VYzzeyFRNvICR+RrhVZOtQ578ElcbA6ZYkI8HWmYZEAt2UnyQ8ecv1Fx/THkJjMZQJD8gEAv1RvH6aczFPFyfynq002WgwWr5BcMdt47y96KzV/jWKg/g48x3DfUJiiJivc5NV1QTm1ZJJFifr8CMd6V0FViAi4ILwTarWycWEu/Y2e4c25dJhCT+wR4sqMYG8Qd9pHMdnFFKf5v9OUD26cI+EkhtGLdmDk+V8THYY73dKHq0hVDOTf+9dlhG5TvbIMYKwkSHrYVrhMscg==
arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bbc.co.uk; dmarc=pass action=none header.from=bbc.co.uk; dkim=pass header.d=bbc.co.uk; arc=none
x-ms-exchange-crosstenant-authas: Internal
x-ms-exchange-crosstenant-authsource: AM7PR01MB6738.eurprd01.prod.exchangelabs.com
x-ms-exchange-crosstenant-network-message-id: 0e918a24-a1f6-4362-9cde-08d99f820a27
x-ms-exchange-crosstenant-originalarrivaltime: 04 Nov 2021 10:58:31.3593 (UTC)
x-ms-exchange-crosstenant-fromentityheader: Hosted
x-ms-exchange-crosstenant-id: 0e587133-568e-44d6-801d-2266bc52e5cf
x-ms-exchange-crosstenant-mailboxtype: HOSTED
x-ms-exchange-crosstenant-userprincipalname: 27lLrKzqd47erwX2RvtCmcV0YroFlJCKquLKBB/yC8qSttNq/nda2FORJ+FebgIW2pElenOSEhBPqH2Oid376Q==
x-ms-exchange-transport-crosstenantheadersstamped: AM6PR0102MB3078
Content-Type: multipart/alternative; boundary="_000_6904CE31940F4D10B3124AEB67E9F9CBbbccouk_"
MIME-Version: 1.0
X-OriginatorOrg: bbc.co.uk
X-EXCLAIMER-MD-CONFIG: c91d45b2-6e10-4209-9543-d9970fac71b7
X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.6.1018-24052.007
X-TM-AS-Result: No-22.745400-8.000000-10
X-TMASE-MatchedRID: HQYVVRq48RxbJCKOm3VRCeVs8DNq02hC4yvE00R84ZlGXQjns6ya1EUX 21o3YWa6a6E59IxHGX9CnGIuUMP0VUbbuL7Y47c0FLWvi0IBGTDc0tYs904R6pxJDmzNDyBLuOw i+0htYJEvebl6MJ1oUfVFR4sC8dPyUAjrAJWsTe/f6k11wzzzCOxgV4GaRi5c3uE1tjZVXBaIY1 02U/vYqODocHyqS9Hw3FqOVb7PDEIF15s6prCIu31ZAf3L+lJdT3Rjcc0BoKi0sAMMft5JQLx0s hAVkobXYDU5HvnqItezLnNN4Vs425PWrYhEvfadir7SL98lyQlnUdymW7X2SHmlUtzn4xssrPxU s3T0cMS9iV3Km3epD9+G9ND+fWcZ1kqyrcMalqU+gR+s21UkWE6+GUWVGrgv4Exn4Lm0eojAcFo 2YvArH5G468S7yeiwrDFtme53KvuVq+okl1rYDwFbHA9TqNLQ1fExUN/jo8KqaCNIMhjCUL+NGX TE0PnNq5wdsVG87AsP14j8bBe+ZnDpOzrHGXeoqr3CBdU3C2Aoz6xsvHPzK7dj4mVqEt6e0mNsG DnJtPH8RdJT8TVSZCS2coL+R8zlEOqYpzM+g1mQT7PT7W8wAr1P55wwlnQMzNgRJynxKmQ3dwzn BKDiR6nYP7KwFAZ5ZRXMZqv8088UkWvaqUqLH7rtDe4+j0ojYrCSOW2MWiMssN9BpK1joq3R1hA x5/WzWCOR5XQ1a0YlcqT+ugT9ELn4fV+jW8tHnejL6nki/2yxFeTkNc4QOkaAQ82u9KiOz7NGHF k6+CjZFZgMSVeSFh03I0O1uBQRX48k2RH+v9ebKItl61J/yfmS+aPr0Ve8SlnU38LCY8tp7Kxue u/Ditbu4Wm+Rqop1sULACB0qRI/C5kCfaWDUCTcUGtmSDkcryMe+RBslutcLfyW7QSyqyNHg9rv 7ho8Xa9tqXF/HBproHGEH3N4QtcuW6wyf8p0TASLC7sdit5+3BndfXUhXQ==
X-TM-AS-User-Approved-Sender: Yes
X-TM-AS-User-Blocked-Sender: No
X-TMASE-Result: 10--22.745400-8.000000
X-TMASE-Version: SMEX-12.5.0.1300-8.6.1018-24052.007
Archived-At: <https://mailarchive.ietf.org/arch/msg/moq/JONpCXUk-HpiRz-DHff5n2kDFCk>
Subject: Re: [Moq] Latency @ Twitch
X-BeenThere: moq@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Media over QUIC <moq.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/moq>, <mailto:moq-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/moq/>
List-Post: <mailto:moq@ietf.org>
List-Help: <mailto:moq-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/moq>, <mailto:moq-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Nov 2021 10:58:46 -0000

On 3 Nov 2021, at 21:46, Luke Curley <kixelated@gmail.com<mailto:kixelated@gmail.com>> wrote:

Yeah, there's definitely some funky behavior in BBR when application limited but it's nowhere near as bad as Cubic/Reno. With those algorithms you need to burst enough packets to fully utilize the congestion window before it can be grown. With BBR I believe you need to burst just enough to fully utilize the pacer, and even then this condition<https://source.chromium.org/chromium/chromium/src/+/master:net/third_party/quiche/src/quic/core/congestion_control/bbr_sender.cc;l=393> lets you use application-limited samples if they would increase the send rate.

And there’s also the idle cwnd collapse/reset behaviour to consider if you’re sending a number of frames together and their inter-data gap exceeds the RTO - I’m not quite sure how the various QUIC stacks have translated RFC2861/7661 advice on this…?

I started with BBR first because it's simpler, but I'm going to try out BBR2 at some point because of the aforementioned PROBE_RTT issue. I don't follow the congestion control space closely enough; are there any notable algorithms that would better fit the live video use-case?

I guess Google’s Goog_CC appears to be well used in the WebRTC space (e.g. WEBRTC<https://webrtc.googlesource.com/src/+/refs/heads/main/modules/congestion_controller/goog_cc> and aiortc<https://github.com/aiortc/aiortc/blob/1a192386b721861f27b0476dae23686f8f9bb2bc/src/aiortc/rate.py#L271>) despite the draft<https://datatracker.ietf.org/doc/html/draft-ietf-rmcat-gcc> never making it to RFC status… There's also SCREAM<https://datatracker.ietf.org/doc/rfc8298/> which has an open source implementation<https://github.com/EricssonResearch/scream> but not sure how widely deployed it is.


On Wed, Nov 3, 2021 at 2:12 PM Ian Swett <ianswett@google.com<mailto:ianswett@google.com>> wrote:
From personal experience, BBR has some issues with application limited behavior, but it is still able to grow the congestion window, at least slightly, so it's likely an improvement over Cubic or Reno.

On Wed, Nov 3, 2021 at 4:40 PM Luke Curley <kixelated@gmail.com<mailto:kixelated@gmail.com>> wrote:
I think resync points are an interesting idea although we haven't evaluated them. Twitch did push for S-frames in AV1 which will be another option in the future instead of encoding a full IDR frame at these resync boundaries.

An issue is you have to make the hard decision to abort the current download and frantically try to pick up the pieces before the buffer depletes. It's a one-way door (maybe your algorithm overreacted) and you're going to be throwing out some media just to redownload it at a lower bitrate.

Ideally, you could download segments in parallel without causing contention. The idea is to spend any available bandwidth on the new segment to fix the problem, and any excess bandwidth on the old segment in the event it arrives before the player buffer actually depletes. That's more or less the core concept for what we've built using QUIC, and it's compatible with resync points if we later go down that route.


And you're exactly right Piers. The fundamental issue is that a web player lacks the low level timing information required to infer the delivery rate. You would want something like BBR's rate estimation<https://datatracker.ietf.org/doc/html/draft-cheng-iccrg-delivery-rate-estimation> which inspects the time delta between packets to determine the send rate. That gets really difficult when the OS and browser delay flushing data to the application, be it for performance reasons or due to packet loss (to maintain head-of-line blocking).

I did run into CUBIC/Reno not being able to grow the congestion window when frames are sent one at a time (application limited). I don't believe BBR suffers from the same problem though due to the aforementioned rate estimator.

On Wed, Nov 3, 2021 at 10:05 AM Ali C. Begen <ali.begen@networked.media<mailto:ali.begen@networked.media>> wrote:


> On Nov 3, 2021, at 6:50 PM, Piers O'Hanlon <piers.ohanlon@bbc.co.uk<mailto:piers.ohanlon@bbc.co.uk>> wrote:
>
>
>
>> On 2 Nov 2021, at 20:39, Ali C. Begen <ali.begen=40networked.media@dmarc.ietf.org<mailto:40networked.media@dmarc.ietf.org>> wrote:
>>
>>
>>
>>> On Nov 2, 2021, at 3:39 AM, Luke Curley <kixelated@gmail.com<mailto:kixelated@gmail.com>> wrote:
>>>
>>> Hey folks, I wanted to quickly summarize the problems we've run into at Twitch that have led us to QUIC.
>>>
>>>
>>> Twitch is a live one-to-many product. We primarily focus on video quality due to the graphical fidelity of video games. Viewers can participate in a chat room, which the broadcaster reads and can respond to via video. This means that latency is also somewhat important to facilitate this social interaction.
>>>
>>> A looong time ago we were using RTMP for both ingest and distribution (Flash player). We switched to HLS for distribution to gain the benefit of 3rd party CDNs, at the cost of dramatically increasing latency. A later project lowered the latency of HLS using chunked-transfer delivery, very similar to LL-DASH (and not LL-HLS). We're still using RTMP for contribution.
>>>
> I guess Apple do also have their BYTERANGE/CTE mode for LL-HLS which is pretty similar to LL-DASH.

Yes, Apple can list the parts (chunks in LL-DASH) as byteranges in the playlist but the frequent playlist refresh and part retrieval process is inevitable in LL-HLS, which is one of the main differences from LL-DASH (no need for manifest refresh and request per segment not chunk).

>
>>>
>>> To summarize the issues with our current distribution system:
>>>
>>> 1. HLS suffers from head-of-line blocking.
>>> During congestion, the current segment stalls and is delivered slower than the encoded bitrate. The player has no recourse than to wait for the segment to finish downloading, risking depleting the buffer. It can switch down to a lower rendition at segment boundaries, but these boundaries occur too infrequently (every 2s) to handle sudden congestion. Trying to switch earlier, either by canceling the current segment or downloading the lower rendition in parallel, only exacerbates the issue.
>>
> Isn't the HoL limitation more down to the use of HTTP/1.1?
>
>> DASH has the concept of Resync points that were designed exactly for this purpose (allowing you to emergency downshift in the middle of a segment).
>>
> I was curious if there are any studies or experience of how resync points perform in practice?

Resync points are pretty fresh out of the oven. dash.js has it in the roadmap but not yet implemented (and we also need to generate test streams). So, there is no data available yet with the real clients. But, I suppose you can imagine how in-segment switching can help in sudden bw drops especially for long segments.

>
>>> 2. HLS has poor "auto" quality (ABR).
>>> The player is responsible for choosing the rendition to download. This is a problem when media is delivered frame-by-frame (ie. HTTP chunked-transfer), as we're effectively application-limited by the encoder bitrate. The player can only measure the arrival timestamp of data and does not know when the network can sustain a higher bitrate without just trying it. We hosted an ACM challenge for this issue in particular.
>>
> The limitation here may also be down to the lack of access to sufficiently accurate timing information about data arrivals in the browser - unfortunately the Streams API, which provides data from the fetch API, doesn’t directly timestamp the data arrivals so the JS app has to timestamp it which can suffer from noise such as scheduling etc - especially a problem for small/fast data arrivals.

Yes, you need to get rid of that noise (see LoL+).

> I guess another issue could be that if the system is only sending single frames then the network transport may be operating in application limited mode so the cwnd doesn’t grow sufficiently to take advantage of the available capacity.

Unless the video bitrate is too low, this should not be an issue most of the time.

>
>> That exact challenge had three competing solutions, two of which are now part of the official dash.js code. And yes, the player can figure what the network can sustain *without* trying higher bitrate renditions.
>> https://github.com/Dash-Industry-Forum/dash.js/wiki/Low-Latency-streaming
>> Or read the paper that even had “twitch” in its title here: https://ieeexplore.ieee.org/document/9429986
>>
> There was a recent study that seems to show that none of the current algorithms are that great for low latency, and the two new dash.js ones appear to lead to much higher levels of rebuffering:
> https://dl.acm.org/doi/pdf/10.1145/3458305.3478442

Brightcove’s paper uses the LoL and L2A algorithms from the challenge where low latency was the primary goal. For Twitch’s own evaluation, I suggest you watch:
https://www.youtube.com/watch?v=rcXFVDotpy4
We later addressed the rebuffering issue, developed LoL+, which is the version included in dash.js now and explained at the ieeexplore link I gave above.

Copying the authors in case they want to add anything for the paper you cited.

-acbegen


>
> Piers
>
>>> I believe this is why LL-HLS opts to burst small chunks of data (sub-segments) at the cost of higher latency.
>>>
>>>
>>> Both of these necessitate a larger player buffer, which increases latency. The contribution system it's own problems, but let me sync up with that team first before I try to enumerate them.
>>> --
>>> Moq mailing list
>>> Moq@ietf.org<mailto:Moq@ietf.org>
>>> https://www.ietf.org/mailman/listinfo/moq
>>
>> --
>> Moq mailing list
>> Moq@ietf.org<mailto:Moq@ietf.org>
>> https://www.ietf.org/mailman/listinfo/moq

--
Moq mailing list
Moq@ietf.org<mailto:Moq@ietf.org>
https://www.ietf.org/mailman/listinfo/moq