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

Tobias Heer <heer@cs.rwth-aachen.de> Wed, 09 June 2010 11:01 UTC

Return-Path: <heer@informatik.rwth-aachen.de>
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 77FB33A690E for <hipsec@core3.amsl.com>; Wed, 9 Jun 2010 04:01:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.851
X-Spam-Level:
X-Spam-Status: No, score=-2.851 tagged_above=-999 required=5 tests=[AWL=-0.650, BAYES_50=0.001, HELO_EQ_DE=0.35, HELO_MISMATCH_DE=1.448, RCVD_IN_DNSWL_MED=-4]
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 y-4Sqpaxh2vo for <hipsec@core3.amsl.com>; Wed, 9 Jun 2010 04:01:04 -0700 (PDT)
Received: from mta-1.ms.rz.rwth-aachen.de (mta-1.ms.rz.RWTH-Aachen.DE [134.130.7.72]) by core3.amsl.com (Postfix) with ESMTP id E6E2C3A68E7 for <hipsec@ietf.org>; Wed, 9 Jun 2010 04:01:03 -0700 (PDT)
MIME-version: 1.0
Content-type: text/plain; charset="iso-8859-1"
Received: from ironport-out-2.rz.rwth-aachen.de ([134.130.5.41]) by mta-1.ms.rz.RWTH-Aachen.de (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008)) with ESMTP id <0L3Q004HEULRSOB0@mta-1.ms.rz.RWTH-Aachen.de> for hipsec@ietf.org; Wed, 09 Jun 2010 13:01:03 +0200 (CEST)
X-IronPort-AV: E=Sophos;i="4.53,391,1272837600"; d="scan'208";a="32219832"
Received: from relay-auth-2.ms.rz.rwth-aachen.de (HELO relay-auth-2) ([134.130.7.79]) by ironport-in-2.rz.rwth-aachen.de with ESMTP; Wed, 09 Jun 2010 13:01:03 +0200
Received: from umic-i4-137-226-45-90.nn.rwth-aachen.de ([unknown] [137.226.45.90]) by relay-auth-2.ms.rz.rwth-aachen.de (Sun Java(tm) System Messaging Server 7.0-3.01 64bit (built Dec 9 2008)) with ESMTPA id <0L3Q007UAULR5W20@relay-auth-2.ms.rz.rwth-aachen.de> for hipsec@ietf.org; Wed, 09 Jun 2010 13:01:03 +0200 (CEST)
From: Tobias Heer <heer@cs.rwth-aachen.de>
In-reply-to: <4C0F28D0.1080002@nomadiclab.com>
Date: Wed, 09 Jun 2010 13:01:21 +0200
Content-transfer-encoding: quoted-printable
Message-id: <5B25778E-C574-4400-9B3B-A808BF343397@cs.rwth-aachen.de>
References: <AB42DFE2-0673-41DE-A40D-7D727D4A6BF3@cs.rwth-aachen.de> <4C0F28D0.1080002@nomadiclab.com>
To: Ari Keranen <ari.keranen@nomadiclab.com>
X-Mailer: Apple Mail (2.1078)
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: Wed, 09 Jun 2010 11:01:05 -0000

 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?

BR, 

Tobias



> Cheers,
> Ari




-- 
Dipl.-Inform. Tobias Heer, Ph.D. Student
Distributed Systems Group 
RWTH Aachen University, Germany
tel: +49 241 80 207 76
web: http://ds.cs.rwth-aachen.de/members/heer
blog: http://dtobi.wordpress.com/
card: http://card.ly/dtobi