Re: [Wish] Trickle ICE and ICE restart

Juliusz Chroboczek <jch@irif.fr> Mon, 13 September 2021 16:02 UTC

Return-Path: <jch@irif.fr>
X-Original-To: wish@ietfa.amsl.com
Delivered-To: wish@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3CF6D3A012A for <wish@ietfa.amsl.com>; Mon, 13 Sep 2021 09:02:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-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 npUNdmQGW6ak for <wish@ietfa.amsl.com>; Mon, 13 Sep 2021 09:02:25 -0700 (PDT)
Received: from korolev.univ-paris7.fr (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]) (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 75C853A00D8 for <wish@ietf.org>; Mon, 13 Sep 2021 09:02:24 -0700 (PDT)
Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/82085) with ESMTP id 18DG2FQH024949; Mon, 13 Sep 2021 18:02:15 +0200
Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id C646EE6AB8; Mon, 13 Sep 2021 18:02:20 +0200 (CEST)
X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr
Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id aFCfb9mGu9SO; Mon, 13 Sep 2021 18:02:19 +0200 (CEST)
Received: from lanthane.irif.fr (unknown [172.23.36.89]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id DD9B7E6AB3; Mon, 13 Sep 2021 18:02:17 +0200 (CEST)
Date: Mon, 13 Sep 2021 18:02:12 +0200
Message-ID: <87h7eofoqj.wl-jch@irif.fr>
From: Juliusz Chroboczek <jch@irif.fr>
To: Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com>
Cc: WISH List <wish@ietf.org>, Christer Holmberg <christer.holmberg@ericsson.com>
In-Reply-To: <CA+ag07Y1NBSAqSgiV7SXj2chuQ6PSYbha9n9OmLZ8250yxTbkA@mail.gmail.com>
References: <CA+ag07Y1NBSAqSgiV7SXj2chuQ6PSYbha9n9OmLZ8250yxTbkA@mail.gmail.com>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.1 Mule/6.0
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset=US-ASCII
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [194.254.61.138]); Mon, 13 Sep 2021 18:02:15 +0200 (CEST)
X-Miltered: at korolev with ID 613F7607.001 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)!
X-j-chkmail-Enveloppe: 613F7607.001 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/<jch@irif.fr>
X-j-chkmail-Score: MSGID : 613F7607.001 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000
X-j-chkmail-Status: Ham
Archived-At: <https://mailarchive.ietf.org/arch/msg/wish/u3UbIDH6FEactyvRHX1brS06FNk>
Subject: Re: [Wish] Trickle ICE and ICE restart
X-BeenThere: wish@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: WebRTC Ingest Signaling over HTTPS <wish.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/wish>, <mailto:wish-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/wish/>
List-Post: <mailto:wish@ietf.org>
List-Help: <mailto:wish-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/wish>, <mailto:wish-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Sep 2021 16:02:40 -0000

> If we could just extend the ABNF grammar, we could just send the candidates at
> session level, and maybe even omit the ice-pwd attribute:

Agreed on both counts.  Galene currently ignores both the m-line and the ice-pwd.

> 2) There is a potential race condition between 2 PATCH requests, one for
> updating candidates and another one for ice restart.

> We have 3 different ways of solving this:
> - Force the client to send the PATCH request sequentially and not allow it to
> have 2 in-flight requests (which can cause problems if the first request is
> sent while there was poor connectivity and the ice restart is sent just after
> the connectivity is restored).

I agree, it's important to be able to send a restart at any time.

> - Force the server to remember past usernames for the client and discard
> requests with past usernames. (This is the one I am going to implement)
> - Remove the ice-pwd field from the sdp fragment so the server can
> differentiate between both.

I think it should be possible for the server to differentiate between the
two before even starting to parse the SDP.  We could use different MIME
types, different HTTP requests, use a custom HTTP header, or add an extra
line at the beginning of the body.

> 4) There is a bug in chrome that returns a different value for the ice username
> on the ice transport api than the one set on the local description.

I think there are more bugs in Chrome :-/

-- Juliusz