Re: [pcp] draft-ietf-pcp-dhcp-05.txt

Stuart Cheshire <cheshire@apple.com> Wed, 07 November 2012 06:20 UTC

Return-Path: <cheshire@apple.com>
X-Original-To: pcp@ietfa.amsl.com
Delivered-To: pcp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 515B621F8B73 for <pcp@ietfa.amsl.com>; Tue, 6 Nov 2012 22:20:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -110.599
X-Spam-Level:
X-Spam-Status: No, score=-110.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tf3jsc+8o3Qq for <pcp@ietfa.amsl.com>; Tue, 6 Nov 2012 22:20:00 -0800 (PST)
Received: from mail-out.apple.com (mail-out.apple.com [17.151.62.51]) by ietfa.amsl.com (Postfix) with ESMTP id 779F621F8595 for <pcp@ietf.org>; Tue, 6 Nov 2012 22:20:00 -0800 (PST)
MIME-version: 1.0
Content-transfer-encoding: 7bit
Content-type: text/plain; CHARSET="US-ASCII"
Received: from relay14.apple.com ([17.128.113.52]) by mail-out.apple.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPS id <0MD3008HLTJY8X00@mail-out.apple.com> for pcp@ietf.org; Tue, 06 Nov 2012 22:19:28 -0800 (PST)
X-AuditID: 11807134-b7fe96d000000e2b-6b-5099fd70f4eb
Received: from jimbu (jimbu.apple.com [17.151.62.37]) (using TLS with cipher RC4-MD5 (RC4-MD5/128 bits)) (Client did not present a certificate) by relay14.apple.com (Apple SCV relay) with SMTP id 27.64.03627.07DF9905; Tue, 06 Nov 2012 22:19:28 -0800 (PST)
Received: from dhcp-44f3.meeting.ietf.org (dhcp-44f3.meeting.ietf.org [130.129.68.243]) by jimbu.apple.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPSA id <0MD30008ATKFHM70@jimbu.apple.com> for pcp@ietf.org; Tue, 06 Nov 2012 22:19:28 -0800 (PST)
From: Stuart Cheshire <cheshire@apple.com>
In-reply-to: <94C682931C08B048B7A8645303FDC9F36E6B369954@PUEXCB1B.nanterre.francetelecom.fr>
Date: Tue, 06 Nov 2012 22:19:26 -0800
Message-id: <67C94DFF-503C-47A3-8AC3-837C1CCD17D8@apple.com>
References: <8C13E205-F40B-495C-B1FC-4BA495E458CB@apple.com> <94C682931C08B048B7A8645303FDC9F36E6B369954@PUEXCB1B.nanterre.francetelecom.fr>
To: mohamed.boucadair@orange.com
X-Mailer: Apple Mail (2.1085)
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOLMWRmVeSWpSXmKPExsUiON1OVbfg78wAg4PnNCwmH/vN6sDosWTJ T6YAxigum5TUnMyy1CJ9uwSujF0Lz7AXtEhUvOmta2B8LtTFyMkhIWAisWrFaiYIW0ziwr31 bF2MXBxCAq1MEn/mbGWFcHYySbQ8escGUiUsoCtx9eQ8ZhCbV8BQYsn1LewgNrOAlsT6ncfB JrEB2S8+XwGr5xSIk3j8vg2shkVAVeLFhy4WiHoxib/zLjNB2NoST95dYIWYaSPRNbeVEWJx H6NEw6lesCIRAQWJfW39LBCnykrsvHOaZQKjwCwkd8xCcscsJHMXMDKvYhQsSs1JrDQ00Uss KMhJ1UvOz93ECAq+hkKTHYwHf/IfYhTgYFTi4W2KnBkgxJpYVlyZe4hRgoNZSYT3yCegEG9K YmVValF+fFFpTmrxIUZpDhYlcd7bW4BSAumJJanZqakFqUUwWSYOTqkGRr1FU8+X1hrweOf7 VV9XUDuoY1fU6FRqqxt886F1gGWO8YV1Hk7aU927ed+LRUW+adsYzqxSUntlcVOGK8uv/5oR XwOs/5Q9L3mrt+e08iTBDWl3EhP5k67opSWoz5iofaO1RXVVX84s00M3bEstJ7HssFXcarrk ccseGf/ArDgzG+OVh/8psRRnJBpqMRcVJwIAU6D8kToCAAA=
Cc: PCP <pcp@ietf.org>
Subject: Re: [pcp] draft-ietf-pcp-dhcp-05.txt
X-BeenThere: pcp@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: PCP wg discussion list <pcp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pcp>, <mailto:pcp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pcp>
List-Post: <mailto:pcp@ietf.org>
List-Help: <mailto:pcp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pcp>, <mailto:pcp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Nov 2012 06:20:01 -0000

On 6 Nov 2012, at 3:41, mohamed.boucadair@orange.com wrote:

> Med: The new text in my local copy is as follows:
> 
>   o  Name is a string that can be passed to getaddrinfo (Section 6.1 of
>      [RFC3493]), such as a DNS name, address literals, etc.  The name
>      MUST NOT contain spaces or nulls.

It would be helpful to spell out exactly what strings are legal, for example:
 Dotted decimal IPv4 addresses - e.g. "10.1.2.3"
 IPv6 addresses in RFC 2373 text representation format - e.g. "FE80::A"
  - IPv6 addresses containing a scope identifier ("%en0") MUST be silently ignored
 Fully-Qualified Domain Names (ending with a dot) - e.g. "natgateway-7.isp.net."
  - Domain Names not ending in a trailing dot MUST be silently ignored

>>   Motivations for defining PCP option as a name and not an IP address
>>   are discussed in Appendix A.
> 
> Med: The sentence above is to say the option is not encoded as an IP address but as a name.

When I write the IP address "10.1.2.3" using ASCII characters it's still an IP address, not a name. Calling "10.1.2.3" a "name" is confusing to most readers. Call it an address.

> What about changing:
> 
> OLD:
> 
>   Motivations for defining PCP option as a name and not an IP address
>   are discussed in Appendix A.
> 
> NEW:
> 
>   Motivations for not defining PCP option as an IP address
>   are discussed in Appendix A

How about:
   Motivations for expressing the PCP option as a textual string rather than a 32- or 128-bit binary address are discussed in Appendix A.

> Med: 1035 encoding was abandoned as per the last IETF meeting. I added a reference to RFC3629. The new text is:
> 
>      The name is encoded as a UTF-8 [RFC3629] string.  When several
>      names are included, a space character is used as separator.

I suggest Net-Unicode [RFC5198].

Is the string null-terminated like a conventional C string?

Is there any precedent in DHCP for using space-separated strings in an option? I'm not aware of any DHCP precedent.

I'd suggest specifying that it's multiple null-terminated Net-Unicode strings packed into the option. Alternatively, define the option to hold exactly one string (no need for null-terminator) and allow the DHCP message to contain multiple occurrences of the option if multiple PCP server strings are being specified.

As a final observation, most existing DHCP options pass an IP address to the client rather than a name string, on the basis that the DHCP server is typically better connected than the DHCP client, so the server can look up a host name faster than the client can, and passing the resulting IP address to the client typically takes less space in the packet than the host name would have. The DHCP server configuration still uses a host name, but the DHCP server resolves it on demand and passes the resulting address(es) to the client in the DHCP OFFER.

Is there a reason that the PCP DHCP option needs to be different?

Stuart Cheshire