Re: [Hipsec] Conflicting text in RFC5201 - RFC5201-bis

Ari Keranen <ari.keranen@nomadiclab.com> Fri, 18 June 2010 12:20 UTC

Return-Path: <ari.keranen@nomadiclab.com>
X-Original-To: hipsec@core3.amsl.com
Delivered-To: hipsec@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D225D3A63CA for <hipsec@core3.amsl.com>; Fri, 18 Jun 2010 05:20:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.866
X-Spam-Level:
X-Spam-Status: No, score=-0.866 tagged_above=-999 required=5 tests=[AWL=-0.867, BAYES_50=0.001]
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 jxGj8-7lwyuH for <hipsec@core3.amsl.com>; Fri, 18 Jun 2010 05:20:44 -0700 (PDT)
Received: from gw.nomadiclab.com (unknown [IPv6:2001:14b8:400:101::2]) by core3.amsl.com (Postfix) with ESMTP id 175523A6A6E for <hipsec@ietf.org>; Fri, 18 Jun 2010 05:20:40 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by gw.nomadiclab.com (Postfix) with ESMTP id B699E4E6DC; Fri, 18 Jun 2010 15:20:43 +0300 (EEST)
X-Virus-Scanned: amavisd-new at nomadiclab.com
Received: from gw.nomadiclab.com ([127.0.0.1]) by localhost (inside.nomadiclab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5LoJQeiiPMqr; Fri, 18 Jun 2010 15:20:43 +0300 (EEST)
Received: from [IPv6:2001:14b8:400:101:21c:23ff:fe45:a6c1] (unknown [IPv6:2001:14b8:400:101:21c:23ff:fe45:a6c1]) by gw.nomadiclab.com (Postfix) with ESMTP id 3BD074E6DA; Fri, 18 Jun 2010 15:20:43 +0300 (EEST)
Message-ID: <4C1B649B.6040907@nomadiclab.com>
Date: Fri, 18 Jun 2010 15:20:43 +0300
From: Ari Keranen <ari.keranen@nomadiclab.com>
User-Agent: Thunderbird 2.0.0.24 (X11/20100411)
MIME-Version: 1.0
To: Tobias Heer <heer@cs.rwth-aachen.de>
References: <AB42DFE2-0673-41DE-A40D-7D727D4A6BF3@cs.rwth-aachen.de> <4C0F28D0.1080002@nomadiclab.com> <5B25778E-C574-4400-9B3B-A808BF343397@cs.rwth-aachen.de>
In-Reply-To: <5B25778E-C574-4400-9B3B-A808BF343397@cs.rwth-aachen.de>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 8bit
Cc: HIP WG <hipsec@ietf.org>
Subject: Re: [Hipsec] Conflicting text in RFC5201 - RFC5201-bis
X-BeenThere: hipsec@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the official IETF Mailing List for the HIP Working Group." <hipsec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hipsec>, <mailto:hipsec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hipsec>
List-Post: <mailto:hipsec@ietf.org>
List-Help: <mailto:hipsec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hipsec>, <mailto:hipsec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 18 Jun 2010 12:20:50 -0000

Hi Tobias,

On 06/09/2010 02:01 PM, Tobias Heer wrote:
> Hello Ari,
> 
> Am 09.06.2010 um 07:38 schrieb Ari Keranen:
> 
>> Hi,
>> 
>> On 05/26/2010 01:37 PM, Tobias Heer wrote:
>>> I have a question regarding some text in RFC5201 that conflicts
>>> with the crypto agility that we envisioned.  The new BEX will
>>> have to start the negotiations of the DH groups already in I1 to
>>> allow the Responder to pick a sensible DH group (there are simple
>>>  countermeasures against downgrade attacks, too, so don't worry).
>>> Therefore, the I1 becomes slightly more important than it was 
>>> (although it stays unsigned and cheap). In Section 4.1 RFC5201
>>> states: ... 705          The Initiator first sends a trigger
>>> packet, I1, to the 706          Responder.  The packet contains
>>> the HIT of the Initiator 707          and possibly the HIT of the
>>> Responder, if it is known. 708          Moreover, it contains a
>>> list of Diffie Hellman Group IDs 709          supported by the
>>> Initiator.  Note 710 that in some cases it may be possible to
>>> replace this trigger 711 packet by some other form of a trigger,
>>> in which case the 712 protocol starts with the Responder sending
>>> the R1 packet. ... With the DH group negotiations already
>>> starting in I1 it becomes difficult to omit the I1 (you can do it
>>> but you lose DH crypto agility). Moreover, I doubt that omitting
>>> the I1 works well even without considering the DH group
>>> negotiations because some of the measures to keep the Responder
>>> stateless until I2 rely on having information from the I1 (IP
>>> address or HIT) for the puzzle/ opaque data field. My questions
>>> are: Is anyone using or does anyone intent to use this omission
>>> of the I1? Is there any specification on how to do it (at least
>>> this is the only place in 5201 where it is mentioned). Do we need
>>> this feature because there are cases where you cannot send an I1?
>>> And finally: can we live without that note?
>> In HIP BONE we have thought about using this feature for DoS
>> protection (and perhaps also for making the BeX via overlay
>> faster):
>> 
>> 3.3.1. DoS Protection [...] In an overlay scenario, there are
>> multiple ways how this mechanism can be utilized within the
>> overlay.  One possibility is to cache the pre-generated R1 packets
>> within the overlay and let the overlay directly respond with R1s to
>> I1s.  In that way the responder is not bothered at all until the
>> initiator sends an I2 packet, with the puzzle solution.
>> Furthermore, a more sophisticated overlay could verify that an I2
>> packet has a correctly solved puzzle before forwarding the packet
>> to the responder.
>> 
>> I think this is a useful feature, but since it's more of an
>> optimization than something we rely on, if needed, we should be
>> able to live without it too.
>> 
>> 
> have you considered René's proposal regarding the use of an I1-less
> BEX? The procedure of opportunistically responding with any DH group
> or a way of telling the preferred DH groups in a DHT packet could be
> options, right?

The overlays using HIP BONE are likely to need other common 
configuration information anyway (at least RELOAD instance does), so 
adding the preferred/default DH group(s) there should not be a problem. 
Also, the nodes that cached an R1 can notice that the cached version is 
from a wrong group (right?), and therefore not use the cached version 
but rather forward the I1 to the end host.


Cheers,
Ari