Re: [dhcwg] Call for adoption: draft-sun-dhc-port-set-option

Ole Trøan <otroan@employees.org> Fri, 19 October 2012 08:29 UTC

Return-Path: <otroan@employees.org>
X-Original-To: dhcwg@ietfa.amsl.com
Delivered-To: dhcwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 31D6321F86E2 for <dhcwg@ietfa.amsl.com>; Fri, 19 Oct 2012 01:29:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.26
X-Spam-Level:
X-Spam-Status: No, score=-10.26 tagged_above=-999 required=5 tests=[AWL=0.038, BAYES_00=-2.599, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8]
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 hfK1zfr7b9TI for <dhcwg@ietfa.amsl.com>; Fri, 19 Oct 2012 01:29:18 -0700 (PDT)
Received: from ams-iport-2.cisco.com (ams-iport-2.cisco.com [144.254.224.141]) by ietfa.amsl.com (Postfix) with ESMTP id D018921F8786 for <dhcwg@ietf.org>; Fri, 19 Oct 2012 01:29:09 -0700 (PDT)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EAHwOgVCQ/khL/2dsb2JhbABFwF2BCIIgAQEBAwESAQpcBQsLRlcGLgeHXAadNaAjkTpgA6Q0gWuCcQ
X-IronPort-AV: E=Sophos; i="4.80,612,1344211200"; d="scan'208,217"; a="77589976"
Received: from ams-core-2.cisco.com ([144.254.72.75]) by ams-iport-2.cisco.com with ESMTP; 19 Oct 2012 08:29:08 +0000
Received: from dhcp-lys01-vla250-10-147-112-212.cisco.com (dhcp-lys01-vla250-10-147-112-212.cisco.com [10.147.112.212]) by ams-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id q9J8T7T3010549 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 19 Oct 2012 08:29:08 GMT
Content-Type: multipart/alternative; boundary="Apple-Mail=_EB639BF9-A21A-4102-B270-417843081988"
Mime-Version: 1.0 (Mac OS X Mail 6.1 \(1498\))
From: Ole Trøan <otroan@employees.org>
In-Reply-To: <CAH3bfACgCKFgMNad7EY4xx5Q8d1ctzJeK9=SeToqbHLBLSd07g@mail.gmail.com>
Date: Fri, 19 Oct 2012 10:29:07 +0200
Message-Id: <35B57831-F31C-40D9-A34A-9469261F3636@employees.org>
References: <9D3C0AC1-D5B1-4C25-AC47-4D08E3252D54@nominum.com> <CAFFjW4i_-+5WERMhM1ZFGwcKarv1hBc7NVvaKn7XQBWq02C=mQ@mail.gmail.com> <50800059.3030503@viagenie.ca> <4E18E4F4-7E60-41F7-8700-83EF2CF1D4A4@employees.org> <219448E3-6A90-411D-A430-EDE011E5E75E@nominum.com> <50F411F4-D3C5-4CED-B9BD-5E552C61C5EE@employees.org> <C2BE5A50-005C-406C-933E-B8CF0FBD5ABE@gmail.com> <B42AF6CD-A628-49EB-A207-FFEB59AE72D6@employees.org> <CAC16W0CgK=LtrFnNt4grHpxs-+giZv7UUsddQvOs5kuzSih3=w@mail.gmail.com> <CAH3bfACgCKFgMNad7EY4xx5Q8d1ctzJeK9=SeToqbHLBLSd07g@mail.gmail.com>
To: Qiong <bingxuere@gmail.com>
X-Mailer: Apple Mail (2.1498)
Cc: sunqi <sunqi.csnet.thu@gmail.com>, "<dhcwg@ietf.org>" <dhcwg@ietf.org>, Ted Lemon <Ted.Lemon@nominum.com>
Subject: Re: [dhcwg] Call for adoption: draft-sun-dhc-port-set-option
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.12
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: Fri, 19 Oct 2012 08:29:19 -0000

> indeed. The contiguous port mask is one example of MAP algorithm. But we hope to simplify it from both implementation and operational point of view, by removing all these parameters and algorithms. Contiguous port-set using port mask is all we need, so we do not need anything more. 

I don't think we'll get anywhere with each of us claiming that "our" algorithm is simpler than yours.
it might be that the formal text in the MAP draft confuses the matter unduly.

let me try and explain again. MAP is based on the very simple idea of describing a port range as a port prefix.
for example I give you the port prefix 10.0/8, if we want to use the same notation as we do for IP prefixes.
10/8 is 256 ports, in the range from 2560 - 2815.

   0                          8                         15
   +---------------+----------+--------------------------+
   | Port Prefix / PSID       |       Port range         |
   +---------------+----------+--------------------------+

for this you need two parameters, port prefix and port prefix length. that is the simplest scheme that anyone has proposed as far as I know.
do you agree?

then the _only_ thing MAP does that is different from the above, is to introduce one more configuration parameter, the offset.
so that instead of it being purely a port _prefix_, the PSID can be a port _infix_ or port _post-fix_.

represented something like this:

   0                          8                         15
   +---------------+----------+--------------------------+
   | Port range    |         PSID       |  Port range    |
   +---------------+----------+--------------------------+

the problem with the port prefix (offset=0) in the top figure for the use as embedded address bits, is that when the PSID is 0 then you'll end up giving the system ports to a user. that would typically not be what you want, and recommending an offset = 4, and the first port range > 0, effectively excludes the system ports. for the case where you create DHCP binding state per customer, you can just make sure to never assign PSID = 0, so in your case you can of course use offset=0

are you still with me?

> And besides, what we need is a DHCPv4 option, not DHCPv6.

why? that's certainly not the only solution. given that you need a DHCPv6 option to provision your IPv4 DHCP server. plus a lot of new complex IPv4 DHCP machinery...?
there is already a DHCPv6 option in process of being standardised. you already depend on options from DHCPv6. why not reuse those existing protocol mechanisms? 

what I would suggest:
  - you merge with / ensure you have your requirements fulfilled by
    draft-ietf-softwire-map-dhcp-01
  - rewrite LW4over6 / Public 4over6 to use DHCPv6 for complete provisioning, using draft-ietf-softwire-map-dhcp

cheers,
Ole