Re: [Wish] Proposal: Triggering ICE Restart

Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com> Sat, 31 July 2021 07:35 UTC

Return-Path: <sergio.garcia.murillo@gmail.com>
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 4E9BF3A1AF6 for <wish@ietfa.amsl.com>; Sat, 31 Jul 2021 00:35:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 8-bFVs0Zb5x0 for <wish@ietfa.amsl.com>; Sat, 31 Jul 2021 00:35:23 -0700 (PDT)
Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) (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 AA76D3A1AF4 for <wish@ietf.org>; Sat, 31 Jul 2021 00:35:23 -0700 (PDT)
Received: by mail-pl1-x630.google.com with SMTP id t21so13737084plr.13 for <wish@ietf.org>; Sat, 31 Jul 2021 00:35:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IIH8I04DZN5+r21Ri9zvT6da44lA1Z9BKpsR7+tDNTM=; b=jzxstKkaB5mBgS8sS3BwyYN2dgt+6CAGyWSXGnfKi0LIyqeqktJRBIN0s38vIbJgiZ vj45n57/OJgtQbJf4OVdqxx56w8LyJ3LEHNtayYmWBCnzGHPoG6xRdQWeaAmkkHBVlNK i8wBTitb+B3aOCzxcVJ+2+urPcGU4/5qi4O0As52R8fgbZGS7F+8SWBnu3Bkk+ck/5uU 0aeVaITc+2ihiXpXn6XUEXdqSHJFjDU7t7k6X6zPdM7nJApbiNT10l6klOqCsW0Q8g2Z Kype8m+s+noXbjjHzpqN45SsZRLqQGdFKXVi1f2F7wTvV5wGUTFKDAzxel/iiX099MKG CA0g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IIH8I04DZN5+r21Ri9zvT6da44lA1Z9BKpsR7+tDNTM=; b=ZV2xywIt7+4UeWmq/HBf8GRfvqvIk9TqHiMKJ0cOedJeQNqoAGCrMsAHiX0o/pAKyl RNvpw8V2DmnpQFfYvSZnK8FL6gB9e9LfnVPwSje/VdV9bJmEu5UxLU5pH16Fp/AE0iOy XQcHoImYlHnvbWSALBQWz0Bq1nJhRg4utDIcZIGqm+Y3igSnm4opkgMomPrFiI9Urs2o Jnk3MT4iWn8V3WyJB2Hb6Juag68BG1XJCUd2WOfSbxPWgDesuqnfhfHmw1lqeXDVx7On sbt9iejZIIx5JMv4A8hcgQ2lHJ1AZ+GtSnU4N2wS6fkzytcJVxLIlEDNw0SoyjBN7tdT SzAg==
X-Gm-Message-State: AOAM532s3FOfqSq/4lt+V6sQ4a2e8xxWb168bzGwOsrMEVfqauVsAils MU6PnK6xa+0F3ul7iVp4FOOusms/otmoS4YrK057+hO+PFU=
X-Google-Smtp-Source: ABdhPJzizK07uioZnbXA7CStsYDdHpjG+cn+L8QuMz2hb1Bby9gvkwFDzvbe4N7XoB5qRrDsKKuMjYpaOfLJs5ziAtw=
X-Received: by 2002:a63:3601:: with SMTP id d1mr5670819pga.299.1627716921532; Sat, 31 Jul 2021 00:35:21 -0700 (PDT)
MIME-Version: 1.0
References: <bd38b2af-a7a7-e992-ab46-a9fe4f06b305@nostrum.com> <CA+ag07Zy-CGzfWMHQ9kL6j3hS1JhB3P02FJRvMd8Fb7D9HCXKA@mail.gmail.com> <1a723b61-ff83-a9e4-c7e9-45950914ba44@nostrum.com>
In-Reply-To: <1a723b61-ff83-a9e4-c7e9-45950914ba44@nostrum.com>
From: Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com>
Date: Sat, 31 Jul 2021 09:35:11 +0200
Message-ID: <CA+ag07Z=v6uvQsP9dkrC2zrBk53mxOWWrqow+LHXuPZKM0tURw@mail.gmail.com>
To: Adam Roach <adam@nostrum.com>
Cc: WISH List <wish@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000e7230805c8666019"
Archived-At: <https://mailarchive.ietf.org/arch/msg/wish/HCc0cum8fBlJjT38HEwxsdMMPn4>
Subject: Re: [Wish] Proposal: Triggering 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: Sat, 31 Jul 2021 07:35:28 -0000

El sáb., 31 jul. 2021 1:17, Adam Roach <adam@nostrum.com> escribió:

> On 7/30/21 17:40, Sergio Garcia Murillo wrote:
> > I am not sure if I agree with the idea of mapping the operations with
> > jsep. Sure we will make life a bit easier for clients integrating
> > libwebrtc but we may make it much harder to get it implemented in
> > others (like ffmpeg for example).
> >
> > What i dislike about the idea of generating a new SDP O/A  for ICE
> > restart is that we force the clients/servers to parse the whole sdp
> > for changes that are not just the ice parameters.
>
>
> Can you expand on this concern? The clients will have code for parsing
> full SDP in order to handle session setup; and the actual parsing
> operation itself is computationally straightforward, so I can't imagine
> it's the parsing itself.
>
> Is the concern that the SDP might change session parameters that the
> server would then need to make adjustments for? If so, we can
> normatively forbid doing so in WHIP (or possibly normatively forbid
> doing so in the absence of explicit indication of server support).
>

The parsing of the initial SDP is done at the whip enpoint while the
parsing of the restart would be done at the whip resource, which may be
completely different components/servers.

My main concern is indeed any of both sides changing session parameters not
related to ICE. While it could be possible to forbid it at spec level, I
think it opens a potential source of bugs and may even make servers/client
to have to verify that those parameters have not actually changed.

On the other side mapping the sdp frag info to an actual sdp o/a is a
trivial string replacement for the sdp answer, you can get the local
username and frag from the ice transport object and add the server new
candidates via the addCandidate method.

Best regards
Sergio