Re: [rtcweb] Data channel: Handling of packets on unknown channels

Justin Uberti <juberti@google.com> Fri, 29 June 2018 03:57 UTC

Return-Path: <juberti@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 EB969130E61 for <rtcweb@ietfa.amsl.com>; Thu, 28 Jun 2018 20:57:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.51
X-Spam-Level:
X-Spam-Status: No, score=-17.51 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] 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 LdhoxEV6t1dt for <rtcweb@ietfa.amsl.com>; Thu, 28 Jun 2018 20:57:36 -0700 (PDT)
Received: from mail-it0-x230.google.com (mail-it0-x230.google.com [IPv6:2607:f8b0:4001:c0b::230]) (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 1B2D0130E53 for <rtcweb@ietf.org>; Thu, 28 Jun 2018 20:57:36 -0700 (PDT)
Received: by mail-it0-x230.google.com with SMTP id a195-v6so996708itd.3 for <rtcweb@ietf.org>; Thu, 28 Jun 2018 20:57:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YBTiXKsL9dXMrF/viVPjnMD01kxceMkHr+xDZ7pb0L8=; b=U7feuGtuzcdr+TRqkJrWCcTYLFVCZADPVV7MS5/F9wSJwFdQqaLH9KQEQ04lpOEKOx mu8GnJZFSpNjADtdGlhteyEVhNv4DZYiq8fqueHuT9ADnUwjt25vLqoCrVpKVH+2c4IX MkU6Hx4GIgFn3CgwhShlQ6eNsvFtWJRJ3cIpJk5nopYbVOJ2nWuezm2g6KE6P0VY9bj5 IAdD1RDGKcJ1DOB5pHzJ1mtb/26VZeEbxCMu1+1iNRqjj2fdQlg6KDcdg95qNPzEL2+n l9SD9vilZMrYIXcwtWdthQcbEqYQ1gvi+gopdK2g7KOCNVfmXzX94TM16UE00jfWo8TS PFjg==
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=YBTiXKsL9dXMrF/viVPjnMD01kxceMkHr+xDZ7pb0L8=; b=eQHu+vRX06ia93zs+q0bSkcDQW45iuA8wEa13BzFhfc3nHSfd0Mf1vYFKFj2ElYFFf Cou5ha49lgUJynZUon22g7gEKNutZp8iOTZ3f9LAatx+/FFXiTux3AV9upXlVn0MPemp 57ZPNGEMdtySX4PCxsC24yrkRXFQKJveSjH1z/1EOmFwPqUdqT+SV5E/UozJ1TWe4m8n HsUcmAuGF+RkxdhCbjmzi5MykKDDUpiDnxs/cGWLS7SW7DjewQ1dEL66G5PBfuhFI9Um YrcdNt3MAOoe57V3IPMGpQKgcxJBhrD3ThRTqftc+M33Lih1luIHwuLdVG+yGd4IHeBJ kQ0g==
X-Gm-Message-State: APt69E0K2Cv6h25ebOmM+BBy5NNjhubJE4/kz4Llgi4WDliqO4bxzxsT lx54+BTMhYWTZUuek/3oSf3qZ07n8YEAu6a/HWffFD60
X-Google-Smtp-Source: AAOMgpe9GzZAInaAHtOj3VgbNvdJA3oMAej+VqEehiKxToLevNqB//YZz3RmMeQJa7l31fi+8NyhCcfNRksBwAdxITY=
X-Received: by 2002:a02:9c33:: with SMTP id q48-v6mr9562751jak.103.1530244650306; Thu, 28 Jun 2018 20:57:30 -0700 (PDT)
MIME-Version: 1.0
References: <5e7eebae-a08e-8c21-5c22-3b26b7385a7a@alvestrand.no> <4A875994-54C3-422B-8E6F-9284D273BE0E@lurchi.franken.de> <85a4defc-e432-eed3-f5fb-e1d0df2bf326@alvestrand.no> <87B266DF-5AE5-4B22-B21F-B2FC37EB3FF2@lurchi.franken.de> <596309ba-2aeb-7699-6bc6-ef7e461b5295@alvestrand.no> <2C11444C-6CC8-45E7-B699-02738D845BF0@lurchi.franken.de> <CAK35n0b2T+2omKfi-BeRM6pBz63FXbVGvQEF=2+i3rJf=c0HjQ@mail.gmail.com>
In-Reply-To: <CAK35n0b2T+2omKfi-BeRM6pBz63FXbVGvQEF=2+i3rJf=c0HjQ@mail.gmail.com>
From: Justin Uberti <juberti@google.com>
Date: Thu, 28 Jun 2018 20:57:18 -0700
Message-ID: <CAOJ7v-27yy18bibK2TWuCp5Yd+6QKp+7d5=B_PQDjpCkDr6MMw@mail.gmail.com>
To: deadbeef=40google.com@dmarc.ietf.org
Cc: Michael Tüxen <michael.tuexen@lurchi.franken.de>, RTCWeb IETF <rtcweb@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000cd9ded056fbfd814"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/J_7CkXmTGWCu2_QOTd46DrFyNec>
Subject: Re: [rtcweb] Data channel: Handling of packets on unknown channels
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.26
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: Fri, 29 Jun 2018 03:57:44 -0000

Taylor is correct. In that thread, we agreed that the PeerConnection doc
should say "tough luck".

On Thu, Jun 28, 2018 at 10:38 AM Taylor Brandstetter <deadbeef=
40google.com@dmarc.ietf.org> wrote:

> Note that I started a thread about this last month:
> https://mailarchive.ietf.org/arch/msg/rtcweb/lIuiu91_L2nOh935eAqifrs_ius
>
> On Thu, Jun 28, 2018 at 8:19 AM, Michael Tuexen <
> michael.tuexen@lurchi.franken.de> wrote:
>
>>
>>
>> > On 28. Jun 2018, at 17:01, Harald Alvestrand <harald@alvestrand.no>
>> wrote:
>> >
>> > Den 28. juni 2018 16:35, skrev Michael Tuexen:
>> >>> On 28. Jun 2018, at 16:22, Harald Alvestrand <harald@alvestrand.no>
>> wrote:
>> >>>
>> >>> Den 28. juni 2018 14:51, skrev Michael Tuexen:
>> >>>>> On 28. Jun 2018, at 13:30, Harald Alvestrand <harald@alvestrand.no>
>> wrote:
>> >>>>>
>> >>>>> In considering the datachannel API, we encountered one interesting
>> race
>> >>>>> condition:
>> >>>>>
>> >>>>> A: <configure for datachannel>
>> >>>>>
>> >>>>> A: CreateOffer(), SetLocalDescription(), send SDP
>> >>>>>
>> >>>>> B: SetRemoteDescription, CreateAnswer, SetLocalDescription, send SDP
>> >>>>>
>> >>>>> B: Configure an externally defined data channel, with #3249
>> >>>>>
>> >>>>> B: Send a message on #3249
>> >>>>>
>> >>>>> A: SetRemoteDescription
>> >>>>>
>> >>>>> A: Wait a while (THE PAUSE)
>> >>>>>
>> >>>>> A: Configure #3249
>> >>>>>
>> >>>>> Now, if a message comes in to A on #3249 during THE PAUSE, what is
>> the
>> >>>>> implementation to do?
>> >>>> Isn't that some kind or error condition?
>> >>>>
>> >>>> If that it true, one could apply:
>> >>>>
>> >>>>  If a message with an unsupported PPID is received or some error
>> >>>>  condition related to the received message is detected by the
>> receiver
>> >>>>  (for example, illegal ordering), the receiver SHOULD close the
>> >>>>  corresponding data channel.  This implies in particular that
>> >>>>  extensions using additional PPIDs can't be used without prior
>> >>>>  negotiation.
>> >>>
>> >>>
>> >>> The receiver can't close the datachannel if the datachannel doesn't
>> >>> exist yet, so this doesn't work for that case.
>> >> I was assuming that the SCTP receives a user message on a stream. When
>> >> this message is delivered to its upper layer, doesn't this layer know
>> >> that there is no data channel? I would assume that this layer triggers
>> >> the stream reset procedure. I'm not saying that the user (for example
>> >> via a JS API) is involved... I'm more talking about implementing this
>> >> iside the browser..
>> >
>> >
>> > Exactly, it could close the stream, but it can't close the data channel
>> > since it doesn't exist.
>> Well, I can run the procedure and the peer will get an indication that
>> something isn't working well.
>> >
>> > I think closing the stream would be a mistake, since that would make the
>> > outcome about whether you end up with the datachannel or not racy;
>> > discarding data will give you a working datachannel once A gets around
>> > to configuring it.
>> But if the user configures a reliable data channel, the user does not
>> get the service that was required...
>>
>> Best regards
>> Michael
>> >
>>
>> _______________________________________________
>> rtcweb mailing list
>> rtcweb@ietf.org
>> https://www.ietf.org/mailman/listinfo/rtcweb
>>
>
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
>