Re: [dhcwg] Please review draft-ietf-pcp-dhcp, particularly section 5.

"Bernie Volz (volz)" <volz@cisco.com> Wed, 19 March 2014 13:35 UTC

Return-Path: <volz@cisco.com>
X-Original-To: dhcwg@ietfa.amsl.com
Delivered-To: dhcwg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EFD611A0415 for <dhcwg@ietfa.amsl.com>; Wed, 19 Mar 2014 06:35:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.048
X-Spam-Level:
X-Spam-Status: No, score=-10.048 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.547, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham
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 hEPXiV4ioKhP for <dhcwg@ietfa.amsl.com>; Wed, 19 Mar 2014 06:35:28 -0700 (PDT)
Received: from alln-iport-3.cisco.com (alln-iport-3.cisco.com [173.37.142.90]) by ietfa.amsl.com (Postfix) with ESMTP id 312361A0048 for <dhcwg@ietf.org>; Wed, 19 Mar 2014 06:35:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5927; q=dns/txt; s=iport; t=1395236119; x=1396445719; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=MAOZbHxZqh8SNMuNpikgRT1mCcgqG82iJdGzAq+1lbw=; b=XRwAf+7/qVEuXvQD9NMJ8IpIgD68MA0I1GuXQ07pZN/ZzByxlFy2TFYT qyYprWDajAlhsh2gYsHiGwQKX4ZDhPbo2YhudAZPy0lJV3zgKQQxmM04D 6FH6/4n12EyfnpKG40rXnMhLLxdyAznnwSZdATgFrDJ6Ytk0j5YmLHsPc Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgUFAKubKVOtJXHA/2dsb2JhbABUBoMGO1e7EYc8gRkWdIIlAQEBAwEBAQFrCwUHBAIBCBEEAQEBCh0HJwsUCQgCBA4FCIdpCA3PQReOIhIGKwIFBoMegRQEiRqhXYMtgWkHOw
X-IronPort-AV: E=Sophos;i="4.97,686,1389744000"; d="scan'208";a="28659754"
Received: from rcdn-core2-5.cisco.com ([173.37.113.192]) by alln-iport-3.cisco.com with ESMTP; 19 Mar 2014 13:35:18 +0000
Received: from xhc-rcd-x12.cisco.com (xhc-rcd-x12.cisco.com [173.37.183.86]) by rcdn-core2-5.cisco.com (8.14.5/8.14.5) with ESMTP id s2JDZI8u007603 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 19 Mar 2014 13:35:18 GMT
Received: from xmb-rcd-x04.cisco.com ([169.254.8.92]) by xhc-rcd-x12.cisco.com ([173.37.183.86]) with mapi id 14.03.0123.003; Wed, 19 Mar 2014 08:35:17 -0500
From: "Bernie Volz (volz)" <volz@cisco.com>
To: "mohamed.boucadair@orange.com" <mohamed.boucadair@orange.com>
Thread-Topic: [dhcwg] Please review draft-ietf-pcp-dhcp, particularly section 5.
Thread-Index: AQHPQ3gRGS6zp6HuO0u6GVs38nhhAQ==
Date: Wed, 19 Mar 2014 13:35:17 +0000
Message-ID: <489D13FBFA9B3E41812EA89F188F018E1AF1C1CA@xmb-rcd-x04.cisco.com>
References: <94C682931C08B048B7A8645303FDC9F36F51A2DB17@PUEXCB1B.nanterre.francetelecom.fr> <C7964664-C302-4ABE-9CAC-1AD5D9048699@cisco.com>
In-Reply-To: <C7964664-C302-4ABE-9CAC-1AD5D9048699@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.131.36.64]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/dhcwg/XXw0Vvt-RMhNeB-C0DIc2mEiEUU
Cc: DHC WG <dhcwg@ietf.org>, Ted Lemon <mellon@fugue.com>
Subject: Re: [dhcwg] Please review draft-ietf-pcp-dhcp, particularly section 5.
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <dhcwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dhcwg/>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 19 Mar 2014 13:35:31 -0000

To support 3396, you will likely have to encode the DHCPv4 PCP option as:

	Option Code
	Length of option
	Length of PCP server 1
	IPv4 address(es) based on length of PCP server 1
	<Repeat the following as often as needed>
	Optional length of PCP server n
	     IPv4 address(es) based on PCP server n

So, the 2 PCP servers mentioned below would be encoded as (each line is a byte unless otherwise indicated):

	<PCP Option Code>
	<Length = 1 + 4 + 4 + 1 + 4>
	8 (Length of PCP server 1)
	4 bytes address - 10.1.1.1
	4 bytes address - 10.1.1.2
	4 (Length of PCP server 2)
	4 bytes address - 10.2.2.2

This can be split and there is only ONE instance of the option, but there can be multiple sub-instances.

This would be compatible with what RFC 3925 does.

- Bernie

-----Original Message-----
From: dhcwg [mailto:dhcwg-bounces@ietf.org] On Behalf Of Bernie Volz (volz)
Sent: Wednesday, March 19, 2014 7:39 AM
To: mohamed.boucadair@orange.com
Cc: DHC WG; Ted Lemon
Subject: Re: [dhcwg] Please review draft-ietf-pcp-dhcp, particularly section 5.

No, RFC 3925 vendor options were carefully designed to comply with 3396. They can be split and concentenated.

For your draft you want the multiple instances NOT to be concatenated at least as I understand it. This is so you can tell there are 2 PCP servers, not just one with multiple addresses, if two PCP options are present.

For example if client receives two options:
PCP option with 10.1.1.1 and 10.1.1.2
PCP option with 10.2.2.2

You want that treated as two separate servers, not as a concatenated option of:
PCP option with 10.1.1.1, 10.1.1.2, 10.2.2.2 Which is what would happen if 3396 was applied by a client.

- Bernie (from iPad)

> On Mar 19, 2014, at 5:26 AM, "mohamed.boucadair@orange.com" <mohamed.boucadair@orange.com> wrote:
> 
> Hi Bernie,
> 
> Thanks for the comments.
> 
> Please see inline.
> 
> Cheers,
> Med
> 
>> -----Message d'origine-----
>> De : Bernie Volz (volz) [mailto:volz@cisco.com] Envoyé : mardi 18 
>> mars 2014 23:12 À : Ted Lemon; DHC WG Cc : BOUCADAIR Mohamed IMT/OLN; 
>> Reinaldo Penno (repenno); Dan Wing (dwing) Objet : RE: [dhcwg] Please 
>> review draft-ietf-pcp-dhcp, particularly section 5.
>> 
>> Hi:
>> 
>> If we are to allow this (multiple instances of the same option), I 
>> think it would be prudent to clarify that RFC 3396 does NOT apply for 
>> this option for DHCPv4.
> I think this is the first option we have that cannot use this?
> [Med] This is not new, RFC3925 allows to send multiple instances of the same option.
> 
>> (I'm not sure 3396 was even prepared for this situation, but I could 
>> be
>> wrong.)
> [Med] RFC3396 says the following: 
> 
> "   This specification also applies in any case where a DHCP protocol
>   agent has received a DHCP packet that contains more than one instance
>   of an option of a given type.  In this case, the agent MUST
>   concatenate these separate instances of the same option in the way
>   that we specify here."
> 
> I guess this text covers the case of this draft. No?
> 
> If my interpretation is correct, then the following text can be added to the draft:
> 
>  " The OPTION_PCP_SERVER DHCPv4 option is a concatenation-requiring
>   option.  As such, the mechanism specified in [RFC3396] MUST be used
>   if the OPTION_PCP_SERVER option exceeds the maximum DHCPv4 option size
>   of 255 octets."
> 
>> 
>> This will place special requirements on both servers and clients 
>> (servers not to split, clients not to combine).
>> 
>> Note that http://www.arkko.com/tools/allstats/citations-rfc3396.html 
>> is useful to see which options are defined to be 
>> concatenation-requiring options.
>> 
>> 
>> For DHCPv6, this is less of an issue but certainly again an unusual 
>> (the
>> first?) case - excepting IA_*, IAADDR/IAPREFIX, and vendor options.
>> 
>> (I would hope the PCP WG has a sufficiently strong motivation for 
>> needing these multiple PCP server instances.)
> [Med] The context is the following: multiple PCP servers can be configured to a PCP client; each of these server can have one or multiple IP addresses. The indication whether the set of addresses belong to the same pcp server or distinct one is import for the PCP server selection procedure.
> 
>> 
>> For DHCPv6, it is also a bit odd to have:
>> 
>>  If an IPv4 address is retrieved by
>>  the DHCPv6 server, the corresponding IPv4-mapped IPv6 address is  
>> included in the OPTION_PCP_SERVER DHPCv6 option.
>> 
>> (BTW: Note the typo here - DHPCv6?)
> [Med] It is DHCPv6 indeed. The motivation text is provided in the draft:
> 
>     " Discussion: The motivation for this design is to accommodate
>      deployment cases where an IPv4 connectivity service is provided
>      while only DHPCv6 is in use (e.g., an IPv4-only PCP server in a
>      DS-Lite context [RFC6333])."
> 
>> 
>> - Bernie
>> 
>> -----Original Message-----
>> From: dhcwg [mailto:dhcwg-bounces@ietf.org] On Behalf Of Ted Lemon
>> Sent: Tuesday, March 18, 2014 12:06 PM
>> To: DHC WG
>> Subject: [dhcwg] Please review draft-ietf-pcp-dhcp, particularly section 5.
>> 
>> I've requested an IETF Last call on this document, so now's the time for
>> any last tweaks.   I mention section 5 because the way it uses distinct
>> options of the same type seems innovative and possibly not ideal.
>> 
>> https://datatracker.ietf.org/doc/draft-ietf-pcp-dhcp/
>> 
>> Thanks!
>> 
>> _______________________________________________
>> dhcwg mailing list
>> dhcwg@ietf.org
>> https://www.ietf.org/mailman/listinfo/dhcwg

_______________________________________________
dhcwg mailing list
dhcwg@ietf.org
https://www.ietf.org/mailman/listinfo/dhcwg