Re: [DNSOP] HTTP dns-alt-svc draft

Ben Schwartz <bemasc@google.com> Sat, 23 June 2018 17:23 UTC

Return-Path: <bemasc@google.com>
X-Original-To: dnsop@ietfa.amsl.com
Delivered-To: dnsop@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CC298130FF5 for <dnsop@ietfa.amsl.com>; Sat, 23 Jun 2018 10:23:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.508
X-Spam-Level:
X-Spam-Status: No, score=-17.508 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, WEIRD_PORT=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 fieHh-7broh7 for <dnsop@ietfa.amsl.com>; Sat, 23 Jun 2018 10:23:51 -0700 (PDT)
Received: from mail-it0-x235.google.com (mail-it0-x235.google.com [IPv6:2607:f8b0:4001:c0b::235]) (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 6D4A3130EB1 for <dnsop@ietf.org>; Sat, 23 Jun 2018 10:23:51 -0700 (PDT)
Received: by mail-it0-x235.google.com with SMTP id 76-v6so6968614itx.4 for <dnsop@ietf.org>; Sat, 23 Jun 2018 10:23:51 -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=8SdayWwK7u5vLCVGxkMR2OUsa19PI1ifsKHmkGbnrH8=; b=SaSN01iMnmGl982+Fp6BmFAiWP2IUvNqje8A5QgWng+rhaeQ4zL4AmHA3TLM7uXVFk c2XOb1efOQ3hrL43juwn5mCnu84C3ktl/AQ00Xp3YX/nT+p/oZiCeo9pxEuzdUiCmqVw 1tJ/JwhmGMFs4wV+Yhl1/sRNdBTBcFgZcSK20YxdiR189zoDifFzaB0pJuHdhbkYOQg7 sCShDe4iA4bAJKMFo2OfTPRz/wEm/VtCc+JDj+VEQpFeddnvy70iaNK+7FQUkVMIxbrL nIxqtvdn7XF3mtZaqIYk2rlOt8dx2K6eMCQ9Okx2h4tQTPHtIgu/y2BhtnuAnBowAH13 /LDw==
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=8SdayWwK7u5vLCVGxkMR2OUsa19PI1ifsKHmkGbnrH8=; b=uaUQUGjL175gK2mH/nFTUZ0A8Bdl/wP9GZp90cYEa2xPqj4Oi2MsZ7z3isT2IdUfGr kXEe3Zr7uasZ9lwWqwTPz3QwRwSwldgsYCs1ezl5C4LIcgy6uaxo95ez6V+7iKXH+FSS EfDcSfR2jhQ9HTIXXsBwPzquqeFTLHZbFKwiATNhGY4lP/L9Kp0FWTBKFdovAoTUXXLE YNr/ZLenBCvtp/ViUilrXx8rmRNMywGXo/TQ13fChkKp7o6lipUQwa5GELUlZLeqNVpg +ALXEI+Mft4B4SyAELzdyOb69D7GS0U3QH5oe4zbcP9VXeq7hF3+a8gSA9ZNtTlwng71 nFmg==
X-Gm-Message-State: APt69E3yH4W9bD8f29J8dQXc+xJM/A6JAqJ6pZ6jyPk5wzx7QpHxveU7 TLSEIoNbwlz3k2kAbCB2L+yvj9RRz70IukhOiJGvYA==
X-Google-Smtp-Source: AAOMgpdCyX8xxlxYpJg/54zGLQkryMPmC+eUhqI+lE7Dtrc1KO/QDzmj4YgoAMWk0PHp0gxweL2fWW6jo79b2iK53ZQ=
X-Received: by 2002:a24:6fc4:: with SMTP id x187-v6mr664680itb.87.1529774630102; Sat, 23 Jun 2018 10:23:50 -0700 (PDT)
MIME-Version: 1.0
References: <CAHPuVdU6XO6uhxDZpP59FUS6P5L+uG6PHvrr8gd8xDojzavqiw@mail.gmail.com> <CAHPuVdXGtLN0MU8Vnorita+-9PX6507xyiQvWjmP6AJAJqc5Rg@mail.gmail.com>
In-Reply-To: <CAHPuVdXGtLN0MU8Vnorita+-9PX6507xyiQvWjmP6AJAJqc5Rg@mail.gmail.com>
From: Ben Schwartz <bemasc@google.com>
Date: Sat, 23 Jun 2018 13:23:39 -0400
Message-ID: <CAHbrMsC495qHBvq5p1_M4_7uE9Oe4aj6VfjeHpA2h9TBwO90pQ@mail.gmail.com>
To: shuque@gmail.com
Cc: dnsop@ietf.org
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="000000000000739f56056f526998"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/ATOyKHFo0AWNzvRhEHa__HkirOE>
Subject: Re: [DNSOP] HTTP dns-alt-svc draft
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsop>, <mailto:dnsop-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsop/>
List-Post: <mailto:dnsop@ietf.org>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsop>, <mailto:dnsop-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 23 Jun 2018 17:23:54 -0000

On Sat, Jun 23, 2018 at 6:51 AM Shumon Huque <shuque@gmail.com> wrote:

> On Sat, Jun 23, 2018 at 12:00 AM Shumon Huque <shuque@gmail.com> wrote:
>
>> In other threads, Erik Nygren suggested that we review the proposed
>> DNS record for HTTP Alternative Services draft:
>>
>>     https://tools.ietf.org/html/draft-schwartz-httpbis-dns-alt-svc-02
>>     (You might also want to read RFC7838 for background).
>>
>
> Another comment on this draft:
>
> I noticed that RFC7838 says:
>
>    The Alt-Svc field value can have multiple values:
>
>    Alt-Svc: h2="alt.example.com:8000", h2=":443"
>
> So, presumably my example in the last message was not quite correct
> for representing multiple target hosts for the service:
>
> Instead of:
>
>  _443._https.example.com. 900 IN ALTSVC "h2=\"cdn1.example.org:443\""
>  _443._https.example.com. 900 IN ALTSVC "h2=\"cdn2.example.org:8443\""
>
> It probably is:
>
>  _443._https.example.com. 900 IN ALTSVC "h2=\"cdn1.example.org:443\",
> h2=\"cdn2.example.org:443\""
>
>
> It also says:
>
>    When multiple values are present, the order of the values reflects
>    the server's preference (with the first value being the most
>    preferred alternative).
>
> The preference order of the values does not permit load balancing.
> So, if a site wants to do load balancing, as many do today, I assume
> they would have to employ only one target hostname, with multiple address
> records,
>

It seems to me that a site could publish multiple ALTSVC RRs, each of which
could contain multiple targets.


> and still rely on random/shuffle ordered return of the address
> record set from name resolution functions.
>

At the stage of processing ALTSVC responses, we are talking about new
client logic, so the significance of ordering is up to us.  The draft is a
bit hazy on this point, but we could add an explicit requirement that
clients shuffle the ALTSVC RRSET before processing it.  Would that help?


> In this sense, SRV is more
> flexible since it supports both priority and proportional load balancing.
>

Yes, that's true.  So far, no one has asked us for this kind of explicit
percentage load-balancing.  However, because the format is extensible, we
can add it later as a new Alt-Svc parameter.


>
> Shumon.
>
> _______________________________________________
> DNSOP mailing list
> DNSOP@ietf.org
> https://www.ietf.org/mailman/listinfo/dnsop
>