Re: [dhcwg] WGLC for draft-ietf-dhc-dhcp4o6-saddr-opt - Respond by April 10, 2018

Razvan Becheriu <razvan.becheriu@qualitance.com> Tue, 10 April 2018 13:58 UTC

Return-Path: <razvan.becheriu@qualitance.com>
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 2B6291200F1 for <dhcwg@ietfa.amsl.com>; Tue, 10 Apr 2018 06:58:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.943
X-Spam-Level:
X-Spam-Status: No, score=-1.943 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_SOFTFAIL=0.665, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=qualitance-com.20150623.gappssmtp.com
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 r61jJeUhRalU for <dhcwg@ietfa.amsl.com>; Tue, 10 Apr 2018 06:58:10 -0700 (PDT)
Received: from mail-io0-x233.google.com (mail-io0-x233.google.com [IPv6:2607:f8b0:4001:c06::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 29067120047 for <dhcwg@ietf.org>; Tue, 10 Apr 2018 06:58:10 -0700 (PDT)
Received: by mail-io0-x233.google.com with SMTP id o4so13766857iod.3 for <dhcwg@ietf.org>; Tue, 10 Apr 2018 06:58:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualitance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LMgwmJq7a2IvWfzUaJVBhaO0lpaYC3Ch2zJdD8t9Yfk=; b=iQfmb98ZBzMoz/Lk79VJUpDAczoWriJPrTHooKoscL4EcHsIWgaA1c4F+MyAceKUb+ dM9EpOwORXt8Kr4NOBWV2H1wA/uy/6cHgpeeVVDYiylc0W+V8mhyGzH2+sxahD2bmftc UnHKb8meZ5M384T/AblmPz1eIuHVggUgf98/G3rOAzebxP3qDEMw738euMPmDpkQBGce qrEE2CEIgihrj1PAv3OIB6jpnGrazhozw+clYtb1UlbWDhunxvyLIyOY3nSYsTQ0E69J 1grMSnRJ3/VAECPhaus9oiAdypg075h0evkCULCUrZ9R60yVNEHrxF+IZL5B5Qxcen2Z xkYQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=LMgwmJq7a2IvWfzUaJVBhaO0lpaYC3Ch2zJdD8t9Yfk=; b=gMYY2fkxwN7tb9b/1lF6H2UGeTksmOig1GBk0Z2nq1yihfDAjSdoIn15ZU/6B8S+LA wmPWYhzdHoqi2LQNr0ck2IF0eYhzwzRaFcZ7w1iSWSC0G3GCA1BIuxrQq6FfJawmsk4H UoebvxplE8JLMFEw0XU/g3f2yzEcJecMvrfihQJDrq5PYAqL4DxOj5D9lmWA7FsYcXxM 43k5t7TT08A59FNEkyCBXuAhkZbEn06DAkRP1V3kN4S2ObbXYIeVLKY5AEUtrUquMXjS VFVmw6gIKlItG7223FCzvJRMSxqNLXM+YGBjN80xWStCWS4mlbt0+HIYZSBhrABhGERw UfLQ==
X-Gm-Message-State: ALQs6tDCowVWl3fG08drN1hPi1q+FFUA3nmrC2Zzbqj51fDQJsDkvYez 3cephpN04lE2SWbYfM3Rhz4GZpSyM1kCxtMYpEKWrw==
X-Google-Smtp-Source: AIpwx49PaXlopg5WBaCbgOi0xftthQitipVwtfen4KREXCkQ3zcAQGPJSr/CHrTt2vghw6freRMo2ghO9S4KfdOCgyA=
X-Received: by 10.107.107.11 with SMTP id g11mr605733ioc.33.1523368689316; Tue, 10 Apr 2018 06:58:09 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.192.146.44 with HTTP; Tue, 10 Apr 2018 06:58:08 -0700 (PDT)
In-Reply-To: <DC716254-1693-421B-A79B-74433E29EF99@gmx.com>
References: <25951a8122a64dc4bce276da65bf2c4c@XCH-ALN-003.cisco.com> <DC716254-1693-421B-A79B-74433E29EF99@gmx.com>
From: Razvan Becheriu <razvan.becheriu@qualitance.com>
Date: Tue, 10 Apr 2018 16:58:08 +0300
Message-ID: <CAPj=nFt+evBSrqgyWqP3wD47hTDJXfvJ=001L-3Vdix18qZHEw@mail.gmail.com>
To: ianfarrer@gmx.com
Cc: "Bernie Volz (volz)" <volz@cisco.com>, "dhcwg@ietf.org" <dhcwg@ietf.org>
Content-Type: multipart/alternative; boundary="089e0825f8dc96df9605697ee902"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/1r2q7pHq8SgrwwUbJ_EZVn0lczA>
Subject: Re: [dhcwg] WGLC for draft-ietf-dhc-dhcp4o6-saddr-opt - Respond by April 10, 2018
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.22
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: <https://mailarchive.ietf.org/arch/browse/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: Tue, 10 Apr 2018 13:58:13 -0000

Hi,

My name is Razvan Becheriu and I am a contributor to the ISC KEA DHCP
server.
I have implemented RFC7618 and draft-ietf-dhc-dhcp4o6-saddr-opt and posted
the implementation in the pull request:
https://github.com/isc-projects/kea/pull/72
You can also find the implementation on my github branch (as specified in
the previous mail):
https://github.com/razvan-becheriu/kea.git
the branch is:
draft-ietf-dhc-dhcp4o6-saddr-opt
I have also provided a separate pull request for the RFC7618 only:
https://github.com/isc-projects/kea/pull/63
You can also find the implementation on my github branch:
https://github.com/razvan-becheriu/kea.git
the branch is:
ipv4_addr_plus_port

The implementation of RFC7618 consists in storing the IPv4 address as a 64
bit integer, the data being comprised of:
8 bits: the offset of the PSID
8 bits: the PSID len
16 bits: the PSID value
The implementation has added this schema modification for the Cassandra and
MySql backends, as the PostgreSql already stores the address as a 64 bit
integer.
This feature has not been implemented for the memfile backend yet.
This implementation keeps backward compatibility for the already assigned
addresses.
The new allocated addresses using IPv4 address plus port will have the Most
Significant Bits (first 32 MSB) non zero (PSID offset, which might be 0,
PSID len, which must NOT be 0, and PSID which might me 0).
All the addresses which no not use IPv4 address plus port will have all
these 3 fields (PSID offset, PSID len and PSID) set to 0.
The following configuration options for the DHCP4 subnet have been added:
"v4-psid-offset"
"v4-psid-len"
"v4-excluded-psids"
All addresses allocated from a subnet with these options set, will be
served to the client as described in RFC7618 (by including the PSID offset,
PSID len and PSID in the DHCPv4 OPTION_V4_PORTPARAMS option: code 159).
This is done only if the client has requested for address plus port
allocation by inserting the request for OPTION_V4_PORTPARAMS in the
DHO_DHCP_PARAMETER_REQUEST_LIST option: code 55, and the server is
configured to honor such requests.
The addresses are allocated sequentially, by increasing the PSID value
starting from 0, to the maximum value of the PSID which is 2 ^ (PSID len) -
1.
Only if all the PSIDs have been allocated, the IPv4 address is incremented
and the PSID is reset to 0.
The configuration option "v4-excluded-psids" can specify a list of PSID
values that should not be allocated to any client (they might be reserved
for other purposes, effectively reserving a port range in the network).

The implementation of the draft-ietf-dhc-dhcp4o6-saddr-opt consists in
adding the 'sw_4o6_src_address' parameter beside the IPv4 address in the
database schema.
The implementation has added this schema modification for the Cassandra,
MySql and PostgreSql backends.
This feature has not been implemented for the memfile backend yet.
The implementation has used the following unassigned options and values:
DHCPv4 option: DHO_S46_SADDR code 201 (option OPTION_DHCP4O6_S46_SADDR in
the draft)
DHCPv6 option: D60_S46_BIND_IPV6_PREFIX code 200 (option
OPTION_S46_BIND_IPV6_PREFIX in the draft)

As mentioned in the document, the client will always receive the value
which he provided in the DHO_S46_SADDR option.
This value is updated in the database as stated in 8.1 from the draft.
The following case in 8.1 from the draft is not currently implemented on
the server side:

The server MAY implement a policy enforcing a minimum time interval
   between a client updating its softwire source IPv6 address.  If a

   client attempts to update the softwire source IPv6 address before the
   minimum time has expired, the server can either silently drop the
   client's message or send back a DHCPACK message containing the
   exisiting IPv6 address binding in OPTION_DHCP4O6_S46_SADDR.


The case stated in 7.5 from the draft is never achieved in the current
implementation.
>From my perspective, the implementation of the draft is straightforward and
does not require many changes in the server.
Treating the spacial case of 8.1 and 7.5 might require extra effort,
depending on the actual requirements of the server behavior, as these
details are not specified in the draft.
In the case of sending back the stored value from the database, a time
stamp of the pair (IPv4 address, sw_4o6_src_address) must be also stored.
This is required by the server to know when to update the stored
sw_4o6_src_address value and send the new value or to send the old stored
sw_4o6_src_address value back.

For any comments or implementation details, feel free to contact me.

Regards,
Razvan



On Tue, Apr 10, 2018 at 1:07 PM, <ianfarrer@gmx.com> wrote:

> Hi,
>
> As a co-author, I support this draft moving forward. RFC7341 and 7618 have
> been published for some time now, and this draft describes the final piece
> necessary for DHCP4o6 based softwire provisioning.
>
> For reference, we are currently updating and finalising implementations of
> the client and server. Source code is available at:
>
> Server (using ISC Kea):
> https://github.com/razvan-becheriu/kea.git
> the branch is:
> draft-ietf-dhc-dhcp4o6-saddr-opt
>
> Client (using OpenWRT BB with odhcp6c):
> https://github.com/tlabs-openrouter/terastream/tree/bb-
> draft-d4o6-saddr-hint/
>
> Thanks,
> Ian
>
>
> On 27. Mar 2018, at 17:31, Bernie Volz (volz) <volz@cisco.com> wrote:
>
> Hello:
>
> The authors have requested a WGLC for draft-ietf-dhc-dhcp4o6-saddr-opt.
>
> Please review this document and provide your comments and whether you
> support the document moving forward or not, by April 10th, 2018 (23:59
> UTC).
>
> Please see https://tools.ietf.org/html/draft-ietf-dhc-dhcp4o6-saddr-opt-03
> .
>
> There are no IPR notices filed against this work (as of this writing).
>
> Thank you!
>
> -          Tomek & Bernie
>
> _______________________________________________
> 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
>
>


-- 
razvan becheriu
[image: qualitance.com]
senior software engineer
+40 (746) 090 415 <+40+(746)+090+415>, qualitance.com
<https://www.qualitance.com/>