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

Taylor Brandstetter <deadbeef@google.com> Thu, 28 June 2018 17:38 UTC

Return-Path: <deadbeef@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 271C1130DFC for <rtcweb@ietfa.amsl.com>; Thu, 28 Jun 2018 10:38:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.509
X-Spam-Level:
X-Spam-Status: No, score=-17.509 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, URIBL_BLOCKED=0.001, 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 mGTw_VpKS5oX for <rtcweb@ietfa.amsl.com>; Thu, 28 Jun 2018 10:38:31 -0700 (PDT)
Received: from mail-vk0-x22d.google.com (mail-vk0-x22d.google.com [IPv6:2607:f8b0:400c:c05::22d]) (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 93DE9130DEE for <rtcweb@ietf.org>; Thu, 28 Jun 2018 10:38:31 -0700 (PDT)
Received: by mail-vk0-x22d.google.com with SMTP id j11-v6so3779525vke.8 for <rtcweb@ietf.org>; Thu, 28 Jun 2018 10:38:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uv18pqbPpwh3LFoGRZXcNav0GY40uYL/TU5Hp4hBFqI=; b=XkHb8nwWtM8TmywCATUEI0pkfM0MOGlIWDRTjpFAoRs+Un1UlP7I2g/Vy48mjJHU10 8hU9WswbkFhe4NMj2arCrvTaUVkrG/b92jnPJdT0K/Gin+1swIUo+VTO03vrEZoKhNJ7 bvngYxP+CVPQNqR/dNTzfeQsH1B4R3DoVFUOnFufsiPs7XAnhotm5Z2V8eLq3bSRd1+M mAA4t8r1V2et9yiLrIkxie0P05XULT2hKF2MTTrupz53AeN/2qYb1/agDwmSaIgqfBAH cS8slfKMPLoS6PAT+nCUSmfpAQ35MhuLpHDRUecTD4HMonMXwW9WOz1YaWFzC971QIf/ iGdQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=uv18pqbPpwh3LFoGRZXcNav0GY40uYL/TU5Hp4hBFqI=; b=gd6LjYu+fTxYrfc+WhQL4/OsCT2I36I5B3/FWSa/lEFmQS7mCrCovMLOJdOHyZEHbB nbhuFNRVs6NTaTY6LkJH44f3+jdcPb8xP9/CAYXORA8d/Gtjegea9v5xiOg9K41iKX+q bSicoKQoZdZPN34OOl57fObrT0TekgyQrD3kWs4HkUeyfJ1uFNm6NbkI/4vhQ1/J8l0j M7BlnqT7eReQ8kztACUaRwWPapnz9EsXbwI6S7vqkCN8Diej/3C62GEfnzunQJGaSxUu AZCDmu51srQdkTTgbPqDz/sYM3QXhfTW2qkSFX03Lr/J8QulDydgliZanJzcTvZILiSW 4TQw==
X-Gm-Message-State: APt69E1t1uip60OouaXWohlGly1gIQ81YnKYk3J9CVtqLN6hA1HbLiw2 dtawECOSWALHd1PK3/Y3IxHrjA/uty3vRrcSYRafICw+crU=
X-Google-Smtp-Source: AAOMgpf3zHuZSSQ8zdyp+AJVBgsZ4Cj/xpvDPiqHpLklaRf0oidvye+9PRCOu9rMtk1Ro70Y4ZG0v3BjTnyVhi4ozck=
X-Received: by 2002:a1f:874a:: with SMTP id j71-v6mr6832576vkd.57.1530207510277; Thu, 28 Jun 2018 10:38:30 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a1f:9302:0:0:0:0:0 with HTTP; Thu, 28 Jun 2018 10:38:29 -0700 (PDT)
In-Reply-To: <2C11444C-6CC8-45E7-B699-02738D845BF0@lurchi.franken.de>
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>
From: Taylor Brandstetter <deadbeef@google.com>
Date: Thu, 28 Jun 2018 10:38:29 -0700
Message-ID: <CAK35n0b2T+2omKfi-BeRM6pBz63FXbVGvQEF=2+i3rJf=c0HjQ@mail.gmail.com>
To: Michael Tuexen <michael.tuexen@lurchi.franken.de>
Cc: Harald Alvestrand <harald@alvestrand.no>, "rtcweb@ietf.org" <rtcweb@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000015d684056fb733ff"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/fVaPMAu_R81vauw7FVMkYi4_0PM>
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: Thu, 28 Jun 2018 17:38:34 -0000

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
>