Re: [dhcwg] [v6ops] Operational Headache: DHCP V6 Relay

Sander Steffann <sander@steffann.nl> Thu, 27 June 2019 14:16 UTC

Return-Path: <sander@steffann.nl>
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 2893E1200B1; Thu, 27 Jun 2019 07:16:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=steffann.nl
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 kPKxs9ZmYbvn; Thu, 27 Jun 2019 07:16:16 -0700 (PDT)
Received: from mail.sintact.nl (mail.sintact.nl [IPv6:2001:9e0:803::6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5B72912003E; Thu, 27 Jun 2019 07:16:08 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mail.sintact.nl (Postfix) with ESMTP id 783214B; Thu, 27 Jun 2019 16:16:06 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=steffann.nl; h= x-mailer:references:in-reply-to:date:date:subject:subject :mime-version:content-type:content-type:message-id:from:from :received:received; s=mail; t=1561644963; bh=UIzUt7NvrVIC1GNSfyE C52Uk1AKf41STcLHo7YTsAQU=; b=XyQw8iD8E90Lo1GIYSMvoWOcuoelyur1ZpL Nf26AymJsuMqH6SDLUstlbu4jFNZ0QFGSSR9PWNoelQwyYtINO6doihvBEgoj/RT TWKXzTj40kqkci5++3ttorslYq/i82UW0q73ln0pn8ce9Dupomb2oAxEBEwItL4E Fq+0UAAA=
X-Virus-Scanned: Debian amavisd-new at mail.sintact.nl
Received: from mail.sintact.nl ([127.0.0.1]) by localhost (mail.sintact.nl [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id kUDreYUCVwfI; Thu, 27 Jun 2019 16:16:03 +0200 (CEST)
Received: from [IPv6:2a02:a213:a300:ce80:6861:12d9:5824:3e4f] (unknown [IPv6:2a02:a213:a300:ce80:6861:12d9:5824:3e4f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.sintact.nl (Postfix) with ESMTPSA id DB4AB4A; Thu, 27 Jun 2019 16:16:02 +0200 (CEST)
X-Clacks-Overhead: GNU Terry Pratchett
From: Sander Steffann <sander@steffann.nl>
Message-Id: <1905B5DD-1352-411D-8EA8-A0D88AC2377E@steffann.nl>
Content-Type: multipart/signed; boundary="Apple-Mail=_9A62DD5C-5CDB-489D-80BF-1FDA886556D3"; protocol="application/pgp-signature"; micalg="pgp-sha256"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Thu, 27 Jun 2019 16:16:02 +0200
In-Reply-To: <218CA62E-75FC-462A-A04E-7B3377631F5E@gmail.com>
Cc: Fred Templin <Fred.L.Templin@boeing.com>, "dhcwg@ietf.org" <dhcwg@ietf.org>, v6ops list <v6ops@ietf.org>
To: Fred Baker <fredbaker.ietf@gmail.com>
References: <9101D413-7CEB-4B50-931A-CF30E6501299@gmail.com> <5222213.mTn1hNnrTJ@rumburak.ite.tul.cz> <8F987994-DF3A-4FF4-B8C7-CFAC62FACFF2@gmx.com> <CANFmOtnHKDQe7snzA0QjnMvy4_hcsjbLgK9P_fxrAHpd2UnSKg@mail.gmail.com> <3ad799f39ebb41e4a4435a7fdfcc41d0@boeing.com> <1353329E-9AD5-49D0-B82B-423719DA148E@gmx.com> <e0e7576d188141c088e7baf89d5cdc2d@boeing.com> <59CA5FD7-6161-4D6D-A810-5D17BCC11893@gmx.com> <9b9924f3ef0a4b2c8d48c86a652d957e@boeing.com> <218CA62E-75FC-462A-A04E-7B3377631F5E@gmail.com>
X-Mailer: Apple Mail (2.3445.104.11)
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/zuszhKADK60DFn5Mj8WxANv136M>
Subject: Re: [dhcwg] [v6ops] Operational Headache: DHCP V6 Relay
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 27 Jun 2019 14:16:18 -0000

Hi Fred,

> I don't see a prohibition of this sort of design, but it seems unnecessarily complex. The relay protocol is designed to communicate from a relay to another relay or to a server. Adding a relay process just to communicate with the server process via localhost seems an unnecessary step.

When implementing DHCPKit I implemented it in roughly the same way (although I did it inside a single process). Wrapping every incoming message inside a relay message makes it possible to handle layer-2 information uniformly.

The process/function that listens on the multicast address generates an internal relay message with all relevant information (interface, mac address, source link-local address etc) and sends that to the main server to be processed. The server can then always get all relevant information from the DHCPv6 packet stack, independent of how it was received. Otherwise you'd have to have an extra channel to communicate all that metadata to the server process.

Cheers,
Sander