Re: [Masque] Comments on draft-age-masque-connect-ip-01

Eric Rescorla <ekr@rtfm.com> Mon, 08 November 2021 18:33 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: masque@ietfa.amsl.com
Delivered-To: masque@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 907933A0E55 for <masque@ietfa.amsl.com>; Mon, 8 Nov 2021 10:33:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=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=rtfm-com.20210112.gappssmtp.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 kbNKyfZLlM1z for <masque@ietfa.amsl.com>; Mon, 8 Nov 2021 10:33:41 -0800 (PST)
Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) (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 BC97E3A0E2F for <masque@ietf.org>; Mon, 8 Nov 2021 10:33:41 -0800 (PST)
Received: by mail-io1-xd31.google.com with SMTP id c3so6644714iob.6 for <masque@ietf.org>; Mon, 08 Nov 2021 10:33:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zlIMIMbNkKDKmFBRcxYOKCeBX9nVxi7f6DLkA65ef90=; b=KRzIsUudvttw6J9TmSlDSB2lD/HCWO+4lqUmUoB9UKL7gFszQfqA/pasaXzABXX09f B2cYafX6pjIriS4nNAAsdXjQ+NEkXq238i2dkdYCixfzX6vfKpSUvIu2LLskQcyHlLi6 olhHgWCugIiKUIhjosHIwswTWyzlskx3+QsEIQ1TYzRKCaPo1EUkPQTmujZwvI0pZc9B aSc9C5r1FjG/X+9T6TKxV19alvsSPPkCY6KxHd+7jXrCsWzUk7BVZKDMqukOXAQ/NGnk EkpRejteq588er3kG9u4CteNsdFuulDzJSHrONBOTJTVwMaoJqaP+dGocdycuXyy8JPX hcQQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zlIMIMbNkKDKmFBRcxYOKCeBX9nVxi7f6DLkA65ef90=; b=3H47MEobd8/5n52WatLBgEmdcfTqb5/kBlWZJ8hD5HKBbxEArmHNYTNhn+5hk0VByY iwxKbNwp+e8tZMydg+eF/QCkSMo1CX2S1vSQ2F7rr6swJbbgP/XeNffBg8/Vant26SFh 2FXHbMt8Jkl5I82j8+u4oDt9FuskqD76VcoISdNuAA/70rsrHp9PlJjLP98f1dXWXhZW R6iWTZcZayBCrlTArqcsU8fZgl8HhxN2NA2Et+bGe4RvNHy3a5M7qNS77wyLH/CN9zq3 o3XfYlTXjqVaa63yYhrFD50AMXmo0GI3PDSo6+Vb6hpc3JYUMogNdni27LurfySUeTrW OucQ==
X-Gm-Message-State: AOAM532lKcVYYzAKcCz/GNHLjGqbN9Brlfb0Mef51NB36I0EvcLy2pOr W1nyxb1wHjJOtJ/k2fdsx8UfKSApDWTcKEU+EHOclQ==
X-Google-Smtp-Source: ABdhPJyy0cJ+82UzPOfT/fCmsCSok154zdvZPMAftJvDvIVdl+S2FU0bARAAQZHoH5N5vT/71Pglh9lge9VGRsDvWBI=
X-Received: by 2002:a5d:8e07:: with SMTP id e7mr843557iod.148.1636396419315; Mon, 08 Nov 2021 10:33:39 -0800 (PST)
MIME-Version: 1.0
References: <CABcZeBMSe7JJ41EC+f1pyAFrm_+9TU2h=SY-_Xy5vX5wu8TgOQ@mail.gmail.com> <7C41DE50-EE9B-4084-8A1D-88471664E23E@apple.com> <CAHbrMsA2Sfx8Wran_J7bS=h7MN7Z2VxVgBHn=6YzxAVeZrBSYg@mail.gmail.com>
In-Reply-To: <CAHbrMsA2Sfx8Wran_J7bS=h7MN7Z2VxVgBHn=6YzxAVeZrBSYg@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Mon, 08 Nov 2021 10:33:03 -0800
Message-ID: <CABcZeBP+VQKtwTCWyDkkpRySy7ECzLA6c_s4VXB_gB7xo3++rw@mail.gmail.com>
To: Ben Schwartz <bemasc@google.com>
Cc: Tommy Pauly <tpauly=40apple.com@dmarc.ietf.org>, MASQUE <masque@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000049130e05d04b3bf7"
Archived-At: <https://mailarchive.ietf.org/arch/msg/masque/XI7n9XOOccX8P5kyVe7hh_EGDm4>
Subject: Re: [Masque] Comments on draft-age-masque-connect-ip-01
X-BeenThere: masque@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Multiplexed Application Substrate over QUIC Encryption <masque.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/masque>, <mailto:masque-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/masque/>
List-Post: <mailto:masque@ietf.org>
List-Help: <mailto:masque-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/masque>, <mailto:masque-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Nov 2021 18:33:47 -0000

On Mon, Nov 8, 2021 at 10:26 AM Ben Schwartz <bemasc@google.com> wrote:

>
>
> On Mon, Nov 8, 2021 at 10:52 AM Tommy Pauly <tpauly=
> 40apple.com@dmarc.ietf.org> wrote:
>
>>
>>
>> On Nov 7, 2021, at 3:12 PM, Eric Rescorla <ekr@rtfm.com> wrote:
>>
>> ...
>
>>
>> Given that this is an IP layer mechanism, I would simply remove the
>> DNS option; clients can always do DNS over the tunnel.
>>
>>
>>
>> I can see this either way.
>>
>> For cases where I don’t want a full tunnel, but just want to talk to one
>> host, I would need to open an IP flow for a DNS server. I could of course
>> open one, and then open a proxied flow to each target address, and request
>> the same local address I got on the first.
>>
>> This would work, but is more back-and-forth, and also doesn’t give me a
>> way to just ask the proxy to use it’s own DNS cache.
>>
>
> I think we need to be clear about what the alternatives are.  Suppose we
> compare
>
> A. CONNECT-IP supports DNS names. [current draft]
> B. CONNECT-IP doesn't support hostnames but is co-located with a DoH
> server.
>
> Then either way, the client benefits from a DNS cache at the proxy.
>
>
>> For cases like CONNECT and CONNECT-UDP, we’ve found it very useful for
>> latency to have the DNS cache run on the proxy, so that we benefit from all
>> clients going through the proxy sharing the same cache, and not needing a
>> round trip back to the client.
>>
>
> That benefit does not apply to CONNECT-IP, because the client must specify
> an IP address, but it doesn't know what IP address to specify.  It
> therefore has to wait the same full roundtrip anyway.  Compare
>
> A.
>  - [C->S] CONNECT-IP
> https://proxy.example/ip?target_host=target.example.com
>  - [S->C] 200 OK, ROUTE_ADVERTISEMENT [192.0.2.1]
>  - [C->S] IP Packet to 192.0.2.1
>
>
Ironically, because of Issue #43. If you were allowed to have
dst_addr=0.0.0.0 or something, then this would work.

-Ekr