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

Michael Tuexen <michael.tuexen@lurchi.franken.de> Thu, 28 June 2018 12:51 UTC

Return-Path: <michael.tuexen@lurchi.franken.de>
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 C51FB130F99 for <rtcweb@ietfa.amsl.com>; Thu, 28 Jun 2018 05:51:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, URIBL_BLOCKED=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 H7A-0W6BT9zF for <rtcweb@ietfa.amsl.com>; Thu, 28 Jun 2018 05:51:28 -0700 (PDT)
Received: from drew.franken.de (mail-n.franken.de [193.175.24.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 88950130F88 for <rtcweb@ietf.org>; Thu, 28 Jun 2018 05:51:28 -0700 (PDT)
Received: from [IPv6:2003:cd:6f1a:9700:3c96:aa9c:3349:e44d] (p200300CD6F1A97003C96AA9C3349E44D.dip0.t-ipconnect.de [IPv6:2003:cd:6f1a:9700:3c96:aa9c:3349:e44d]) (Authenticated sender: lurchi) by drew.franken.de (Postfix) with ESMTPSA id 6493D721E2822; Thu, 28 Jun 2018 14:51:25 +0200 (CEST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\))
From: Michael Tuexen <michael.tuexen@lurchi.franken.de>
In-Reply-To: <5e7eebae-a08e-8c21-5c22-3b26b7385a7a@alvestrand.no>
Date: Thu, 28 Jun 2018 14:51:24 +0200
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <4A875994-54C3-422B-8E6F-9284D273BE0E@lurchi.franken.de>
References: <5e7eebae-a08e-8c21-5c22-3b26b7385a7a@alvestrand.no>
To: Harald Alvestrand <harald@alvestrand.no>
X-Mailer: Apple Mail (2.3445.8.2)
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/XLowM1HmhVomcZ5pfppP_OGFWb4>
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 12:51:33 -0000

> 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.

> I studied draft-ietf-rtcweb-data-channel-13 for at least 3 minutes
> before concluding that it doesn't say.
> 
> What I'd PREFER it to say is "these messages will be dropped on the
> floor. Tough luck."
> 
> I would prefer it to say so explicitly.
> 
> Can we do this?
Not sure about the procedural thing... That ID is stuck in the RFC editor queue
for a long time...

Best regards
Michael
> 
> -- 
> Surveillance is pervasive. Go Dark.
> 
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb