Re: More on demultiplexing

Jana Iyengar <jri@google.com> Thu, 07 December 2017 20:00 UTC

Return-Path: <jri@google.com>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 09CFA1294F5 for <quic@ietfa.amsl.com>; Thu, 7 Dec 2017 12:00:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=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 u_0lvb0tanQw for <quic@ietfa.amsl.com>; Thu, 7 Dec 2017 12:00:54 -0800 (PST)
Received: from mail-yb0-x229.google.com (mail-yb0-x229.google.com [IPv6:2607:f8b0:4002:c09::229]) (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 3E4AC129512 for <quic@ietf.org>; Thu, 7 Dec 2017 12:00:41 -0800 (PST)
Received: by mail-yb0-x229.google.com with SMTP id 184so3440865ybw.12 for <quic@ietf.org>; Thu, 07 Dec 2017 12:00:41 -0800 (PST)
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=+0E26XqY9kCq9AfbdaD4jPlyCPQov0XOQqO3rF3jXKQ=; b=eJQ/4KSXwHdSZqpfWiTQuxuVxzaWxCzn5KgSTcWAnqtnfVRyvDW2di2QWlaljleWzr 3b0cuqH1+N6RKT9UYthXftGnBM+nFbeCqR20yo269jiLH1nG1ojG6TEg5z3DA10uEc1q w6uQ5eFJtXeaxuOATPTNnLfIZLAW29ic9cwPSFAr1qcJel1vuUDM/xNLuoCXN0IDjzM8 YnZWnaDkR+E0WYUWPV8jMF23j78Txd8Fc6gdCGMuqvkkYWxogtYJUWHkWF1Crw7QTCUI icPfIpa6tm3d8xl8odoUDNKAlTG9Itecxc/M4mk5cVXWcbLnHDCq7ZCU4oPA7/yAN12/ EFuQ==
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=+0E26XqY9kCq9AfbdaD4jPlyCPQov0XOQqO3rF3jXKQ=; b=emmOS/Xr6oK8Ff1NTISV+ohtFr5onOtyQgLy5Klg9V2j0Vw9VvCzPIPoqeKh5wZops RM3Awj0Jd3ZsPhM+thHYihQowleq1trhHGeR8yhvim5y5cRCaQeFx8pqHrQSNxY6pxVl ihwg3rsHwgUBTOELJvWlKOZOI9J9SQEXjX/wv41Sy2NyGKoaFWOY6BQBjbAYTuhTHxh9 5kQGr1CQeUQw/ccHh9f81QmtA6HkngUJMOFH+UZ0f65ykB9+dRp4A26dDL8onHn7tK9L aPVm5khnVCi1gz4aVMYfmoUJBA2BHanuxdGkAfzL3edddteU9nnTDvhIWjJkL1rlv5K5 Rh7w==
X-Gm-Message-State: AJaThX7Amdz/L/1BdrhC7cUGUXw0YQd++Cu8Hkq5wwmtFk3kCtmI3BqW TQct2IxSO1rHVxjFlvYMfWuJ0d9KfuthWSB5OMuOmQ==
X-Google-Smtp-Source: AGs4zMbvuw4WVom0DLNZYm7VChxA2hvIffTPtl6EKT5YQGdBn4wFC7WeCPf7xp5Gk2YgUsduy+bcWqmKDD1OOMWi4yM=
X-Received: by 10.37.192.196 with SMTP id c187mr19717776ybf.366.1512676840069; Thu, 07 Dec 2017 12:00:40 -0800 (PST)
MIME-Version: 1.0
Received: by 10.37.42.78 with HTTP; Thu, 7 Dec 2017 12:00:39 -0800 (PST)
In-Reply-To: <65c4d1cd-8927-1a96-a45c-734e743279ac@huitema.net>
References: <CABcZeBO=WCTLuuxaOJXKzQdiBduOxLdoqNtMpvPatBOAwNjZkQ@mail.gmail.com> <CA+9kkMAc3NopLuEGQvuvu82X2LpuL-RiCoKzdfiWYUSfzfhRKA@mail.gmail.com> <1726D0F2-CE76-418C-BE24-CA3492F4CC27@iii.ca> <65c4d1cd-8927-1a96-a45c-734e743279ac@huitema.net>
From: Jana Iyengar <jri@google.com>
Date: Thu, 07 Dec 2017 12:00:39 -0800
Message-ID: <CAGD1bZZNJQ-V=nvTc0RVigKg5gLRg2tj7w+rRgbfdjLhND1k0A@mail.gmail.com>
Subject: Re: More on demultiplexing
To: Christian Huitema <huitema@huitema.net>
Cc: Cullen Jennings <fluffy@iii.ca>, Ted Hardie <ted.ietf@gmail.com>, Eric Rescorla <ekr@rtfm.com>, IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="001a113d4b1cb72a5d055fc58593"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/GZGCjW2apv8ug5zsEEtBIZbnGf8>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Dec 2017 20:00:57 -0000

On Thu, Dec 7, 2017 at 11:51 AM, Christian Huitema <huitema@huitema.net>
wrote:

> On 12/7/2017 10:59 AM, Cullen Jennings wrote:
>
> >> On Dec 6, 2017, at 12:15 PM, Ted Hardie <ted.ietf@gmail.com> wrote:
> >>
> >> I think if you bundled all the media on one 5-tuple and had QUIC on
> another, the core NAT exhaustion problem would not be that bad.
> > It would be twice as bad :-) When creating the offer, the device that
> creates it does not know if it will be getting QUIC based stuff or not so
> you want to include both in the offer. For the same reason we don't want to
> gather two ports for RTC and RTCP, I think we will want to run both on same
> port. I think google's data showed that nat traversal success rates were
> worse when using two ports instead of one.
> >
> > So my preference would be to be able to multiplex WebRTC using QUIC and
> and WebRTC not using QUIC on the same port.
> >
> +1. When dealing with NAT, there is a cost per port to "opening a hole
> for the port", in terms of messages to open the port, risks to cause
> resource exhaustion in a local NAT, and requirement to keep the port
> alive. Everything on one port is nice.
>

I agree on this point. It's more than just nice -- it avoids strange
partial failures when one part of the communication works (over one port)
but the other part (over the other port) doesn't.


> By the way, how strongly do we feel about making decisions based on
> first byte alone? In the case of QUIC, the connection ID provides a
> pretty big clue. If we use that, demux becomes significantly simpler.
> There are still issues during the connection phase, as the first message
> from the peer carries an unknown connection ID, but that could be
> handled with special logic. Also, don't STUN messages carry a magic
> number precisely to help demuxing?
>

Why have the same conversation once in one place when we can have it twice
in two places :-) I raised this  point in #426
<https://github.com/quicwg/base-drafts/issues/426>, and Colin responded
there, you may want to take a look. He does suggest using connection ID,
but it's not yet clear to me that the C bit needs to be changed in that
case.