Re: [dnsext] [Technical Errata Reported] RFC2782 (2984)
Marc Petit-Huguenin <petithug@acm.org> Wed, 05 October 2011 14:17 UTC
Return-Path: <petithug@acm.org>
X-Original-To: dnsext@ietfa.amsl.com
Delivered-To: dnsext@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 20C1F21F8D0C for <dnsext@ietfa.amsl.com>; Wed, 5 Oct 2011 07:17:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -99.158
X-Spam-Level:
X-Spam-Status: No, score=-99.158 tagged_above=-999 required=5 tests=[AWL=-2.850, BAYES_00=-2.599, GB_SUMOF=5, MISSING_HEADERS=1.292, NO_RELAYS=-0.001, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t5S4AH9IBqLk for <dnsext@ietfa.amsl.com>; Wed, 5 Oct 2011 07:17:50 -0700 (PDT)
Received: from implementers.org (implementers.org [IPv6:2604:3400:dc1:41:216:3eff:fe5b:8240]) by ietfa.amsl.com (Postfix) with ESMTP id 0844721F8D00 for <dnsext@ietf.org>; Wed, 5 Oct 2011 07:17:50 -0700 (PDT)
Received: from [IPv6:2001:5c0:1111:4e00:213:d4ff:fe04:3e08] (unknown [IPv6:2001:5c0:1111:4e00:213:d4ff:fe04:3e08]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "petithug", Issuer "implementers.org" (verified OK)) by implementers.org (Postfix) with ESMTPS id 47A8720878 for <dnsext@ietf.org>; Wed, 5 Oct 2011 14:13:58 +0000 (UTC)
Message-ID: <4E8C67C7.9050000@acm.org>
Date: Wed, 05 Oct 2011 07:20:55 -0700
From: Marc Petit-Huguenin <petithug@acm.org>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Iceowl/1.0b2 Icedove/3.1.13
MIME-Version: 1.0
CC: dnsext@ietf.org
References: <20111004203900.4016798C25F@rfc-editor.org>
In-Reply-To: <20111004203900.4016798C25F@rfc-editor.org>
X-Enigmail-Version: 1.1.2
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Subject: Re: [dnsext] [Technical Errata Reported] RFC2782 (2984)
X-BeenThere: dnsext@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: DNS Extensions working group discussion list <dnsext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsext>, <mailto:dnsext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dnsext>
List-Post: <mailto:dnsext@ietf.org>
List-Help: <mailto:dnsext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsext>, <mailto:dnsext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 05 Oct 2011 14:17:54 -0000
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The algorithm described in RFC 2782 is what it is, and people know how to configure the values in an SRV RR to achieve what they want. If some disagree with this algorithm, they should work on a rfc2782bis document, but not try to change the meaning of RFC 2782 in an errata. On 10/04/2011 01:39 PM, RFC Errata System wrote: > > The following errata report has been submitted for RFC2782, > "A DNS RR for specifying the location of services (DNS SRV)". > > -------------------------------------- > You may review the report below and at: > http://www.rfc-editor.org/errata_search.php?rfc=2782&eid=2984 > > -------------------------------------- > Type: Technical > Reported by: Jordan Brown <Jordan.Brown@oracle.com> > > Section: Weight > > Original Text > ------------- > To select a target to be contacted next, arrange all SRV RRs > (that have not been ordered yet) in any order, except that all > those with weight 0 are placed at the beginning of the list. > > Compute the sum of the weights of those RRs, and with each RR > associate the running sum in the selected order. Then choose a > uniform random number between 0 and the sum computed > (inclusive), and select the RR whose running sum value is the > first in the selected order which is greater than or equal to > the random number selected. The target host specified in the > selected SRV RR is the next one to be contacted by the client. > Remove this SRV RR from the set of the unordered SRV RRs and > apply the described algorithm to the unordered SRV RRs to select > the next target host. Continue the ordering process until there > are no unordered SRV RRs. This process is repeated for each > Priority. > > Corrected Text > -------------- > Correcting the text requires agreement on what to do with entries with > weight=0, so I don't want to try to craft text until we have agreement there. > > Notes > ----- > The problem with this algorithm is that for a total weight T, it generates a random number 0..T and so allocates T+1 shares and gives the extra share to the first entry. Thus with weights {1, 1}, the first entry is selected 2/3 of the time while the second entry is selected 1/3 of the time. > > I suspect that this is an attempt to do *something* with entries with weight=0, but yields unobvious results there: for {0, 1, 1}, the three entries are each selected 1/3 of the time. > > I suggest: > > - Ordering weight=0 entries to the end. > - Generating random numbers 0..(T-1). > - Using a "greater" test rather than "greater or equal". > - Selecting weight=0 entries in any order when all of the weight!=0 entries have been selected. > > Instructions: > ------------- > This errata is currently posted as "Reported". If necessary, please > use "Reply All" to discuss whether it should be verified or > rejected. When a decision is reached, the verifying party (IESG) > can log in to change the status and edit the report, if necessary. > > -------------------------------------- > RFC2782 (draft-ietf-dnsind-rfc2052bis-05) > -------------------------------------- > Title : A DNS RR for specifying the location of services (DNS SRV) > Publication Date : February 2000 > Author(s) : A. Gulbrandsen, P. Vixie, L. Esibov > Category : PROPOSED STANDARD > Source : DNS Extensions > Area : Internet > Stream : IETF > Verifying Party : IESG > _______________________________________________ > dnsext mailing list > dnsext@ietf.org > https://www.ietf.org/mailman/listinfo/dnsext > - -- Marc Petit-Huguenin Personal email: marc@petit-huguenin.org Professional email: petithug@acm.org Blog: http://blog.marc.petit-huguenin.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk6MZ8UACgkQ9RoMZyVa61dAXwCgnqxR0MkbR96ST1ZmAV6yScbT o8sAoIy9T7BJVbl+uW6PWPIWH3n1EC2K =adBX -----END PGP SIGNATURE-----
- [dnsext] [Technical Errata Reported] RFC2782 (298… RFC Errata System
- Re: [dnsext] [Technical Errata Reported] RFC2782 … Masataka Ohta
- Re: [dnsext] [Technical Errata Reported] RFC2782 … Jordan Brown
- Re: [dnsext] [Technical Errata Reported] RFC2782 … Masataka Ohta
- Re: [dnsext] [Technical Errata Reported] RFC2782 … Douglas Otis
- Re: [dnsext] [Technical Errata Reported] RFC2782 … Masataka Ohta
- Re: [dnsext] [Technical Errata Reported] RFC2782 … Marc Petit-Huguenin
- Re: [dnsext] [Technical Errata Reported] RFC2782 … Masataka Ohta
- Re: [dnsext] [Technical Errata Reported] RFC2782 … Jordan Brown
- Re: [dnsext] [Technical Errata Reported] RFC2782 … Marc Petit-Huguenin
- Re: [dnsext] [Technical Errata Reported] RFC2782 … Jordan Brown
- Re: [dnsext] [Technical Errata Reported] RFC2782 … Marc Petit-Huguenin