Re: [dhcwg] Questions about layer two relay agents in dhcpv4...

Josh Littlefield <joshl@cisco.com> Mon, 16 August 2010 14:54 UTC

Return-Path: <joshl@cisco.com>
X-Original-To: dhcwg@core3.amsl.com
Delivered-To: dhcwg@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D65C33A686A for <dhcwg@core3.amsl.com>; Mon, 16 Aug 2010 07:54:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x-JzCRI6DTmT for <dhcwg@core3.amsl.com>; Mon, 16 Aug 2010 07:54:58 -0700 (PDT)
Received: from rtp-iport-1.cisco.com (rtp-iport-1.cisco.com [64.102.122.148]) by core3.amsl.com (Postfix) with ESMTP id 79FB43A6765 for <dhcwg@ietf.org>; Mon, 16 Aug 2010 07:54:58 -0700 (PDT)
Authentication-Results: rtp-iport-1.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEANfuaExAZnwN/2dsb2JhbACgQnGgeZs/AoMJgjAEiWI
X-IronPort-AV: E=Sophos;i="4.55,376,1278288000"; d="scan'208";a="148198613"
Received: from rtp-core-2.cisco.com ([64.102.124.13]) by rtp-iport-1.cisco.com with ESMTP; 16 Aug 2010 14:55:33 +0000
Received: from [161.44.71.243] ([161.44.71.243]) by rtp-core-2.cisco.com (8.13.8/8.14.3) with ESMTP id o7GEtXIY008992; Mon, 16 Aug 2010 14:55:33 GMT
Message-ID: <4C695165.30704@cisco.com>
Date: Mon, 16 Aug 2010 10:55:33 -0400
From: Josh Littlefield <joshl@cisco.com>
Organization: Cisco Systems
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
MIME-Version: 1.0
To: Ted Lemon <mellon@fugue.com>
References: <8B2420CE-026D-465D-9256-B2DA76310CE1@fugue.com>
In-Reply-To: <8B2420CE-026D-465D-9256-B2DA76310CE1@fugue.com>
X-Enigmail-Version: 1.1.1
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: 8bit
Cc: "dhcwg@ietf.org Group" <dhcwg@ietf.org>
Subject: Re: [dhcwg] Questions about layer two relay agents in dhcpv4...
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <dhcwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/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: Mon, 16 Aug 2010 14:54:59 -0000

 I do think this is a problem. TR-101, in which I participated in
defining the L2RA requirements for EtherDSL, specifically requires the
L2RA to remove option-82 from all packets:

R-99 The Access Node MUST, when performing the function of a Layer 2
DHCP Relay Agent,
remove option-82 information from all DHCP reply messages received from
the Broadband
Network Gateway before forwarding to the client.

This goes with the earlier requirement to add option-82 to all packets:

R-98 The Access Node MUST, when performing the function of a Layer 2
DHCP Relay Agent, add
option-82 with the ‘circuit-id’ and/or ‘remote-id’ sub-options to all
DHCP messages sent by the
client before forwarding to the Broadband Network Gateway.

The option-82 info is needed in unicast packets in order to ensure
circuit information is available to the DHCP server (or a DHCP proxy in
the BNG) during any lease renewal, so the proper policy can be employed.

RFC 3046 is pretty clear that option-82 "MUST be removed by either the
relay agent or the trusted downstream network element which added it
when forwarding a server-to-client response back to the client." In this
case, the "trusted downstream network element" is the L2RA.

On 8/14/2010 2:28 PM, Ted Lemon wrote:
> I'm in the process of writing the section in the relay agent encapsulation draft that describes how relay agents forward messages toward clients.   In doing so, I encountered a fairly serious problem with the current l2ra specification.   It looks like the authors of the l2ra specifications, and possibly also implementors of existing l2ra devices, have had some experience with this, so rather than just writing new text, I wanted to pose some questions.
>
> First, the l2ra draft says that an l2ra may intercept a message and append a relay agent information option (RAIO) to it.   If that happens, then on the way back, if the message is unicast, the l2ra may or may not intercept the message and strip the RAIO.   If it does not, the client will receive the RAIO.
>
> This is an obvious no-no.   But I'm convinced this text is there for a reason.   I presume that the reason is that the authors envisioned a scenario where the message from the client to the server would pass through the l2ra, but on the way back it would take a different path, and hence could not be intercepted.
>
> There's no way to support this scenario with relay agent encapsulation, because the client will be unable to process a RELAYREPLY message.   And I think it's wrong to support this scenario even with regular l2ra, because while the client probably can process the packet, RFC3046 allows the DHCP server to make the message bigger than the default maximum message size, as long as the message, stripped of the RAIO, would be smaller.   So in that case the message the client received would be out of spec--too big.   Also, potentially there might be a problem with information leakage, where the client would gain access to RAIO information it shouldn't have access to.
>
> So my question is this: is it true that the text in the l2ra draft that allows the l2ra to not strip the RAIO is motivated by the possibility that the reply from the server might take a different path back to the client?
>
> _______________________________________________
> dhcwg mailing list
> dhcwg@ietf.org
> https://www.ietf.org/mailman/listinfo/dhcwg

-- 
Josh Littlefield                                  Cisco Systems, Inc.
joshl@cisco.com                             1414 Massachusetts Avenue
Phone: +1 978-936-0001                     Boxborough, MA  01719-2205