Re: [mif] Small nit on route option draft

Tomek Mrugalski <tomasz.mrugalski@gmail.com> Mon, 14 November 2011 02:39 UTC

Return-Path: <tomasz.mrugalski@gmail.com>
X-Original-To: mif@ietfa.amsl.com
Delivered-To: mif@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 092A911E8182 for <mif@ietfa.amsl.com>; Sun, 13 Nov 2011 18:39:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 5H8OpV6acx9U for <mif@ietfa.amsl.com>; Sun, 13 Nov 2011 18:39:12 -0800 (PST)
Received: from mail-yw0-f44.google.com (mail-yw0-f44.google.com [209.85.213.44]) by ietfa.amsl.com (Postfix) with ESMTP id 4439011E815C for <mif@ietf.org>; Sun, 13 Nov 2011 18:39:12 -0800 (PST)
Received: by ywt34 with SMTP id 34so4218313ywt.31 for <mif@ietf.org>; Sun, 13 Nov 2011 18:39:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=LsHCsh6cMX+IqvEY0zGPp5F6M01eWDWxQmwP73K+CSc=; b=OIgNz4oegEevdYSi2zkQ8pZZp9xZ0btzX11KBlX6gVZK6mtXROF0fKBTbx8B93tWen ENcB4wpxkAQepMO6bO3KeSBPKu4Mv8U+ui4W9g0mKWVzEtS/hjRp6VZZY1JJOzgI69in g+jVklVKnPr84B+g7nZRr7m53wKxeZC1q4z+s=
Received: by 10.236.178.9 with SMTP id e9mr11207972yhm.77.1321238351907; Sun, 13 Nov 2011 18:39:11 -0800 (PST)
Received: from dhcp-41d0.meeting.ietf.org ([2001:df8:0:64:de2b:61ff:fee5:409c]) by mx.google.com with ESMTPS id 36sm56981380anz.2.2011.11.13.18.39.09 (version=SSLv3 cipher=OTHER); Sun, 13 Nov 2011 18:39:11 -0800 (PST)
Message-ID: <4EC07F4B.6020705@gmail.com>
Date: Mon, 14 Nov 2011 10:39:07 +0800
From: Tomek Mrugalski <tomasz.mrugalski@gmail.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: mif@ietf.org
References: <EB74BFAE-C81B-4B5A-B8CF-3A3DC7554475@nominum.com>
In-Reply-To: <EB74BFAE-C81B-4B5A-B8CF-3A3DC7554475@nominum.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Subject: Re: [mif] Small nit on route option draft
X-BeenThere: mif@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Multiple Interface Discussion List <mif.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mif>, <mailto:mif-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/mif>
List-Post: <mailto:mif@ietf.org>
List-Help: <mailto:mif-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mif>, <mailto:mif-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 14 Nov 2011 02:39:13 -0000

On 11-11-14 09:13, Ted Lemon wrote:
> I would like to ask that you reverse the prefix length and metric
> fields in the option.  The reason for this is that the prefix length
> and prefix look like they are going to become a common encoding
> (they are also used in a proposed source address configuration
> option). They are essentially a single value, expressed as two
> fields. I have asked the source address draft authors to group the
> prefix length and prefix together; I think it makes sense to do the
> same thing here. This will speed adoption of both drafts, I think.
>
> In order for this to be useful, of course, it would be necessary for
> you to adopt the variable length format for the prefix that is used
> in that draft.  The draft is called
> draft-ietf-6man-address-select-opt-01.

Reordering fields to have prefix length immediately followed by prefix
is very much ok. I'll do that. However, I'm a bit hesitant about having
prefix encoded as variable length. I admit that I haven't read
address-select-opt yet, some maybe there is a text somewhere that
justifies variable length format.

I have 3 objections regarding variable length format.

1. It is against DHC WG item regarding option guidelines, at least that 
is how I understand the text. See draft-ietf-dhc-option-guidelines-07, 
section 5. If I'm reading option-guidelines wrong, perhaps it could use 
more explicit wording? Also, if we decide to go with variable length, we 
should consider updating option-guidelines to remain consistent.

2. What about similarity to existing and widely deployed option, i.e. 
IAPREFIX? See RFC3633, section 10. IAPREFIX encodes prefix as 16 
octects, regardless of the actual prefix length. Please do note that 
validation of such options correctness is trivial. Option has to have at 
least X octets, otherwise it is truncated. With variable length format 
it is not so simple anymore. I admit that it's not that complicated 
either, so I can live with that. I never heard anyone complaining about 
this format. Of course that doesn't mean that there are no such 
complaints. Perhaps I'm ignorant and just never heard them.

3. The case in 6man-addr-select-opt is a bit different. I haven't read 
that draft yet, but according to the description, prefix-len field
and its relation to length of the actual prefix field is a bit strange. 
Length is rounded up to the next quad octet boundary. This makes the 
prefix field to have length 0,4,8,12 or 16 octets. For example, for 
prefix lenth 33 bits you send 8 bytes of prefix. If we choose to go with 
variable lengths, perhaps more convenient would to round up to the next 
octet boundary? 33 bits prefix would be stored as 40 bits (5 octets)?

These are very strong arguments against variable length approach. 
Personally, I would prefer fixed fields, but I won't insist on it.

On a related note if we choose to go with variable format, 
draft-mdt-softwire-map-dhcp-option-01 has to be updated as well. That 
draft also conveys IPv4 prefix. If we go variable, we should probably do 
that for both v4 and v6. That in turn makes the option validation even 
nastier as there would be 2 variable length fields.

> I do apologize for interjecting this so late in the process, but I
> think it's a substantial win to use the same format for the same
> data across different options.
No problem at all. I appreciate any feedback we can get on this.

Tomek