Re: [DNSOP] Ask for advice of 3 new RRs for precise traffic scheduling

"zuopeng@cnnic.cn" <zuopeng@cnnic.cn> Wed, 13 December 2017 09:31 UTC

Return-Path: <zuopeng@cnnic.cn>
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 421FE1270A7 for <dnsop@ietfa.amsl.com>; Wed, 13 Dec 2017 01:31:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-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 oQ1maTGoxFPd for <dnsop@ietfa.amsl.com>; Wed, 13 Dec 2017 01:31:11 -0800 (PST)
Received: from cnnic.cn (smtp13.cnnic.cn [218.241.118.13]) by ietfa.amsl.com (Postfix) with ESMTP id 2F6EA124217 for <dnsop@ietf.org>; Wed, 13 Dec 2017 01:31:09 -0800 (PST)
Received: from CNNIC-THINK (unknown [218.241.103.198]) by ocmail02.zx.nicx.cn (Coremail) with SMTP id AQAAf0DJ0Ohb8zBagNo7AA--.24784S2; Wed, 13 Dec 2017 17:31:07 +0800 (CST)
Date: Wed, 13 Dec 2017 17:31:06 +0800
From: "zuopeng@cnnic.cn" <zuopeng@cnnic.cn>
To: bert hubert <bert.hubert@powerdns.com>, Stephane Bortzmeyer <bortzmeyer@nic.fr>
Cc: dnsop <dnsop@ietf.org>
References: <2017121315404971736813@cnnic.cn>, <20171213081823.GA8970@laperouse.bortzmeyer.org>, <20171213084342.GA30523@server.ds9a.nl>
X-Priority: 3
X-Has-Attach: no
X-Mailer: Foxmail 7, 2, 7, 166[cn]
Mime-Version: 1.0
Message-ID: <201712131731058457451@cnnic.cn>
Content-Type: multipart/alternative; boundary="----=_001_NextPart722701125202_=----"
X-CM-TRANSID: AQAAf0DJ0Ohb8zBagNo7AA--.24784S2
X-Coremail-Antispam: 1UD129KBjvJXoW7Zw47Jry7Kry7JFW7tr4Utwb_yoW8Cw18pF WfurZIkrs8WFyxuFWDu3WUGa4Fka47uFyxJr98W3yjvw45W3W7Wr1UGF4jvFy7JF10kayf tr48Jrn5Gas0vaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUmIb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG62kEwI0E Y4vaYxAvb48xMc02F40E42I26xC2a48xMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87 Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lFcxC0VAY jxAxZF0Ew4CEw7xC0wACY4xI67k04243AVC20s07Mx8GjcxK6IxK0xIIj40E5I8CrwCY02 Avz4vE14v_GFWl42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAq x4xG67AKxVWUGVWUWwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1Y6r 17MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF 7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWrZr1j6s0DMIIF0xvEx4A2jsIE14 v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_Gr1l6VACY4xI67k04243AbIYCTnI WIevJa73UjIFyTuYvjxUyLZcUUUUU
X-CM-SenderInfo: x2xr1vlqj6u0xqlfhubq/
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/bOZmBKDGI4P16hoDsZdYNV06nRk>
Subject: Re: [DNSOP] Ask for advice of 3 new RRs for precise traffic scheduling
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.22
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: Wed, 13 Dec 2017 09:31:14 -0000

thanks for your comments!

According to my understanding, here are 2 main differences between RFC2782 and this idea :

(1) RFC2782 does not solve the problem of using multi-CDN  (multiple CNAME cannot coexist);
    here we can use multipile weighted CNMAEXs (need to coexist with CNAME) to accomplish this;
    besides, weighted CNAMEXs can control traffic ratio among several CDN providers;

(2) RFC2782 requires browser's support;
    Using this method, a browser has no idea about weighted AX/AAAAXs. 
    It requires no change of browsers.



zuopeng@cnnic.cn
 
From: bert hubert
Date: 2017-12-13 16:43
To: Stephane Bortzmeyer
CC: zuopeng@cnnic.cn; dnsop
Subject: Re: [DNSOP] Ask for advice of 3 new RRs for precise traffic scheduling
On Wed, Dec 13, 2017 at 09:18:23AM +0100, Stephane Bortzmeyer wrote:
> >  For example, a CDN provider can’t schedule 70% of traffic to node A
> >  and 30% of traffic to node B [...] adding a “weight” attribute
> 
> First, the obvious question: why reinventing RFC 2782?
 
Implementing this worthwhile capability can be done in four ways/places:
 
1) Get browsers to honour RFC 2782
 
2) Get resolvers and auths to support a weighted A/AAAA record (as proposed
in this thread)
 
3) Serve up multiple copies of the same A record, and weigh like this:
www IN A 1.2.3.4
www IN A 1.2.3.4
www IN A 10.11.12.13
And hope that record shuffling will deliver the 2:1 ratio
 
4) Get authoritative servers to serve A/AAAA with weighted frequency and
short TTL
 
Getting browsers to move is a 5 year project at least. You could get the
resolver/auth landscape moving somewhat more quickly ('we know these
people'), but it will still take a long time and support will be spotty.
 
The 'multiple IP address listings' thing is done in practice, but some
server remove duplicates, so it doesn't work that well.
 
And the last possibility is what CDNs are actually doing. It does not quite
spread out traffic perfectly, but it is good enough.
 
In PowerDNS Authoritative Server 4.1.1 (upcoming in January), this looks
like:
 
@ IN LUA A "wrandom{{2, '1.2.3.4'}, {1, '10.11.12.13'}}"
 
Or even:
 
@ IN LUA A "whashed{{2, '1.2.3.4'}, {1, '10.11.12.13'}}"
 
Which will keep the same IP address going to the same record.
 
This is documented in https://powerdns.org/auth-4.1.1-docs/lua-records.html
- which also lists things like @ IN LUA A "closest{'1.2.3.4', '10.11.12.13'}"
which will attempt to serve up the geographically closest address.
 
     Bert