Re: [Wish] New draft version draft-murillo-whip-01

Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com> Fri, 28 May 2021 14:32 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 EA2A93A2888 for <wish@ietfa.amsl.com>; Fri, 28 May 2021 07:32:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 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, RCVD_IN_DNSWL_BLOCKED=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 qNH6dAv8Aprd for <wish@ietfa.amsl.com>; Fri, 28 May 2021 07:32:45 -0700 (PDT)
Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 8EFAF3A2AB6 for <wish@ietf.org>; Fri, 28 May 2021 07:32:45 -0700 (PDT)
Received: by mail-wr1-x432.google.com with SMTP id n2so3588516wrm.0 for <wish@ietf.org>; Fri, 28 May 2021 07:32:45 -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=7ERSyyOq0HHYkaWlqLPpgPk/6dODF0TYt5Xjt6eS1ik=; b=N17f95kuTrzCucYAwpMFZMLWaRFjkgHTPufEct+ZgbjOey/AH5HTuSct85YwOYef12 3omMc5ljt/JziHimfQ5iPssZpTemrh+yxZX7FFWiYSu/+pDUf//YqmDi3CVlhVeLHu0G mlnYfxDG9AAXc90DVw/QtguDyZA5zwq+BQlDIFNkH58fI/v8uxN59cFTkE3Jed/JrknQ 11nz2yQvpqzHlHWOwkqGbTCikMSWo+8AhLvh0Qu53MdyoCygB7bdfbjdSh6XXMIvZb70 JJJgkZkhi5Nv+tuCw7ZxqGbaCD08raznHMxmVhMgQcBqhfxA+2vi4X9y/sTK9uCxu1Tv AHSg==
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=7ERSyyOq0HHYkaWlqLPpgPk/6dODF0TYt5Xjt6eS1ik=; b=czh4c6wQhP3wIBOXS/bY+eIvvxlr4XdgSFqpvMQqDgJv4Pa1q139tQDrT4eUEkvPNB Azcuk2MEb5e93K7MsCtq4TSu0vzkuDglolWNb5iFqqMtVcAag58i8F6HP/z6dHt+2rGf Jg22zP9Sw6qi/6QDlRUITmeDA+ChhYErUly+TxItB4Djb7cclO/9m3x1LMUfu4HEwgjU 86o8/cXB3hHF9SwbKI2X8z3e/6Ea3h+1p0SGzCmFioNAc0Aj0bfPIH/cilK048uGEkin YiTR16NQBwC6mHw3TRWW6DsymzPxVFtqmV9mNdpuOPHnRms7Bp5cXZur/dzQSZ+RALi7 uUVA==
X-Gm-Message-State: AOAM531sbnjrsYQp8ON9E5eW1Vj6p9lsMTg9iFCAdBQqfMrlCG56H8+P v9zpoVxOoX86nLZ8M8eaQcJzzkBD5MOlfJc+25I=
X-Google-Smtp-Source: ABdhPJz918ds5f2gl5ulVmIhTRSbGCL8iH6I0xrpdKAmDZhBtmn/L5Tpe8FGV6KGGBWLNrnszspqzvHHH0Uln3FOfY0=
X-Received: by 2002:adf:dd51:: with SMTP id u17mr9286341wrm.87.1622212362013; Fri, 28 May 2021 07:32:42 -0700 (PDT)
MIME-Version: 1.0
References: <CA+ag07aArqZfdNEDLvm-T1+RN7Xf8PzU0yLoVXdjJbyAHCTZ-Q@mail.gmail.com> <87mtsfni5p.wl-jch@irif.fr> <CA+ag07axaTxz0hRkZfpMZUYMWmFeYmHrv7bb8z7JfxbXTpF46w@mail.gmail.com> <87bl8vndq8.wl-jch@irif.fr>
In-Reply-To: <87bl8vndq8.wl-jch@irif.fr>
From: Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com>
Date: Fri, 28 May 2021 16:32:31 +0200
Message-ID: <CA+ag07bfkvg1TNDGieN9=FbRZeWqbC0gWiC7DWGp84sP7-EkgA@mail.gmail.com>
To: Juliusz Chroboczek <jch@irif.fr>
Cc: wish@ietf.org
Content-Type: multipart/alternative; boundary="000000000000968f9305c364bf6a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/wish/sqBQIfvoz7HccfF7oFnsIIModHU>
Subject: Re: [Wish] New draft version draft-murillo-whip-01
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: Fri, 28 May 2021 14:32:50 -0000

El vie, 28 may 2021 a las 16:18, Juliusz Chroboczek (<jch@irif.fr>)
escribió:

> > A WHIP endpoint is an entity able to receive the HTTP POST request from a
> > client. The URL may be a "factory" one returning an unique url on the
> Location
> > header or have an unique URL for each stream. It is up to the server
> > implementation.
>
> Perfect.
>
> Could you please spell out the exact protocol you envision?  The server
> replies 200 with the SDP answer and a Location header, or the server
> replies 308 which causes the client to send the SDP offer again?
>
> This requires special-case handling in the client (candidates and restarts
> need to be sent to the right endpoint, not to the multiplexer), so please
> spell it out in the draft.
>

It is explicitly stated that the HTTP PATCH request with the sdp fragment
body containing the ICE candidates/restart info must be sent to the WHIP
Resource URI returned on the Location header of the 201 create response to
the original HTTP PUT request.

How do you think it should be further explained?


>
> >> On a related note, what happens if the client is on a restrictive
> network
> >> that doesn't allow UDP?  Are you assuming it has learned the address of
> >> a TURN server out of band, or are you relying on passive TCP candidates?
> >> (Either would be fine, but it needs to be spelled out.)
>
> > Anyway, on my implementation, I don't even require to exchange
> > candidates with the server in that case as the server will learn the new
> > candidates from the STUN requests sent by the client.
>
> What happens if the client is on a restrictive network that doesn't allow
> UDP?
>

When the client allocates a relay candidate on the TURN server to connect
on a restricted network, it will send a STUN request via it to the server
host candidates. The server will receive the STUN request and get the relay
candidate info from the remote ip address/port.


>
> >>> A WHIP resource MAY not support either trickle ICE (i.e. ICE lite media
> >>> servers) or ICE restart,
>
> >> Does the client know beforehand whether that's the case?
>
> > I would say that a server should be either able to work in full ice, or
> not
> > require the trickle candidate exchange at all to not have to ask the
> client to
> > implement a fallback mode. In this case, the server may just reject the
> PATCH
> > request without any consecuence.
>
> Sorry if I'm being obtuse.  Client does trickle, so it sends an SDP offer
> with incomplete candidates.  After contacting its STUN server, it attempts
> to PATCH its offer, and receives 405.
>
> What should the client do in that situation?
>

It is stated on the draft:

   A WHIP client receiving a 405 response for an HTTP PATCH request
   SHALL not send further request for ICE trickle or restart.  If the
   WHIP client gathers additional candidates (via STUN/TURN) after the
   SDP offer is sent, it MUST send STUN request to the ICE candidates
   received from the media server as per [RFC8838
<https://datatracker.ietf.org/doc/html/rfc8838>] regardless if the



Murillo & Gouaillard    Expires November 20, 2021               [Page 5]

------------------------------

Internet-Draft                    whip                          May 2021


   HTTP PATCH is supported by either the WHIP client or the WHIP
   resource.



 Best regards
Sergio