Re: [Hipsec] Completing 5201 state machine

"Laganier, Julien" <julienl@qualcomm.com> Wed, 20 October 2010 17:02 UTC

Return-Path: <julienl@qualcomm.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 C27993A69E0 for <hipsec@core3.amsl.com>; Wed, 20 Oct 2010 10:02:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.591
X-Spam-Level:
X-Spam-Status: No, score=-106.591 tagged_above=-999 required=5 tests=[AWL=0.008, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 pdNwf7tfe+B9 for <hipsec@core3.amsl.com>; Wed, 20 Oct 2010 10:02:39 -0700 (PDT)
Received: from wolverine01.qualcomm.com (wolverine01.qualcomm.com [199.106.114.254]) by core3.amsl.com (Postfix) with ESMTP id 728293A68F2 for <hipsec@ietf.org>; Wed, 20 Oct 2010 10:02:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qualcomm.com; i=julienl@qualcomm.com; q=dns/txt; s=qcdkim; t=1287594253; x=1319130253; h=from:to:date:subject:thread-topic:thread-index: message-id:references:in-reply-to:accept-language: content-language:x-ms-has-attach:x-ms-tnef-correlator: acceptlanguage:content-type:content-transfer-encoding: mime-version; z=From:=20"Laganier,=20Julien"=20<julienl@qualcomm.com> |To:=20Tobias=20Heer=20<heer@cs.rwth-aachen.de>,=20HIP=20 WG=20<hipsec@ietf.org>|Date:=20Wed,=2020=20Oct=202010=201 0:04:09=20-0700|Subject:=20RE:=20[Hipsec]=20Completing=20 5201=20state=20machine|Thread-Topic:=20[Hipsec]=20Complet ing=205201=20state=20machine|Thread-Index:=20Actq8Y6leclJ dGSqQ5uBcVAZc+ZZogFhp9qA|Message-ID:=20<BF345F63074F8040B 58C00A186FCA57F29F6C36B6D@NALASEXMB04.na.qualcomm.com> |References:=20<917A9DF6-17C4-4AAF-9132-1A865D0A824B@cs.r wth-aachen.de>|In-Reply-To:=20<917A9DF6-17C4-4AAF-9132-1A 865D0A824B@cs.rwth-aachen.de>|Accept-Language:=20en-US |Content-Language:=20en-US|X-MS-Has-Attach: |X-MS-TNEF-Correlator:|acceptlanguage:=20en-US |Content-Type:=20text/plain=3B=20charset=3D"us-ascii" |Content-Transfer-Encoding:=20quoted-printable |MIME-Version:=201.0; bh=LX7JlIpggHl+jlTMpFuaXtIfm6H0G+vE0kylkNqZGVQ=; b=FlhGFF+vTFOSgrYV18RlnrDzfMxpd91cSXehqT76oYt+O7TiuKNv3sBg aiMcR/FkR+bK+zWMTSGHwIQ4MkSnLuDEJLnLnlaI2Xe9YatQsnOMto7Q+ ArvnKM5cSz0/YE17+REmBaigAmCwx8iH29cUGfQgBeZtND9EFeE36cpzj M=;
X-IronPort-AV: E=McAfee;i="5400,1158,6142"; a="58661574"
Received: from ironmsg03-l.qualcomm.com ([172.30.48.18]) by wolverine01.qualcomm.com with ESMTP; 20 Oct 2010 10:04:12 -0700
X-IronPort-AV: E=Sophos;i="4.57,356,1283756400"; d="scan'208";a="13199920"
Received: from nasanexhub01.na.qualcomm.com ([10.46.93.121]) by Ironmsg03-L.qualcomm.com with ESMTP/TLS/RC4-MD5; 20 Oct 2010 10:04:12 -0700
Received: from nasanexhc08.na.qualcomm.com (172.30.39.7) by nasanexhub01.na.qualcomm.com (10.46.93.121) with Microsoft SMTP Server (TLS) id 8.3.83.0; Wed, 20 Oct 2010 10:04:12 -0700
Received: from nalasexhc03.na.qualcomm.com (10.47.129.194) by nasanexhc08.na.qualcomm.com (172.30.39.7) with Microsoft SMTP Server (TLS) id 14.1.218.12; Wed, 20 Oct 2010 05:04:05 -1200
Received: from NALASEXMB04.na.qualcomm.com ([10.47.7.118]) by nalasexhc03.na.qualcomm.com ([10.47.129.194]) with mapi; Wed, 20 Oct 2010 10:04:18 -0700
From: "Laganier, Julien" <julienl@qualcomm.com>
To: Tobias Heer <heer@cs.rwth-aachen.de>, HIP WG <hipsec@ietf.org>
Date: Wed, 20 Oct 2010 10:04:09 -0700
Thread-Topic: [Hipsec] Completing 5201 state machine
Thread-Index: Actq8Y6leclJdGSqQ5uBcVAZc+ZZogFhp9qA
Message-ID: <BF345F63074F8040B58C00A186FCA57F29F6C36B6D@NALASEXMB04.na.qualcomm.com>
References: <917A9DF6-17C4-4AAF-9132-1A865D0A824B@cs.rwth-aachen.de>
In-Reply-To: <917A9DF6-17C4-4AAF-9132-1A865D0A824B@cs.rwth-aachen.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [Hipsec] Completing 5201 state machine
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, 20 Oct 2010 17:02:40 -0000

Hello Tobias,

I have no time to look into the details so I'm just asking here - sorry about that: 

While we're at moving HIP forward to standard track we're going to make a certain number of changes. Since experimental HIP already has a little brother that made it to Proposed Standard (SHIM6 in RFC 5533), could we simply replicate that state machine into our standard track HIP (v2)?

--julien

Tobias Heer wrote:
> 
> Hello,
> 
> the state machine of RFC5201 (not -bis) has some white spots which I
> try to cover now. Nothing essential is missing but it seems slightly
> underspecified the way it is now.
> Handling of the following packets is missing in some states: CLOSE,
> CLOSE_ACK, and NOTIFY. And it is not caught by the "handle ANYOTHER"
> rules that serve as catch-all.
> 
> I'll list the changes that I'll make here and ask for feedback from the
> group and especially implementors.
> 
> 1.) Receive CLOSE in state I2-sent:
> ------------------------------
> Why can this happen?
> - R2 is lost (maybe repeatedly), Responder transitions to from R2-SENT
> to ESTABLISHED because of timeout, Responder decides to close
> association (because of some reason)
> 
> Proposed action: process packet
> - successful: transition to CLOSING
> - fail: drop and stay at I2-sent
> 
> 
> 2.) Receive CLOSE in state R2-sent
> ------------------------------
> Why can this happen?
> - Responder cannot observe data packet flow (this is the case for some
> implementations), Responder timeout for transition from R2-SENT to
> ESTABLISHED has not fired yet, Initiator decides to close association
> (because of some reason)
> 
> Proposed action: process packet
> - successful: transition to CLOSING
> - fail: drop and stay at R2-sent
> 
> 
> 3.) Receive CLOSE_ACK in state R2-sent
> ------------------------------
> Why can this happen?
> - It shouldn't but there is nothing specified.
> 
> Proposed action: drop
> 
> 
> 4.) Receive NOTIFY in state R2-sent
> ------------------------------
> Why can this happen?
> - Responder cannot observe the data channel and timeout has not fired
> yet.
> 
> Proposed action: process and stay in R2 sent
> 
> 
> 5.) Receive CLOSE_ACK in state ESTABLISHED
> ------------------------------
> Why can this happen?
> - It shouldn't but there is nothing specified.
> 
> Proposed action: drop
> 
> 
> 6. Receive NOTIFY in state ESTABLISHED
> ------------------------------
> Why can this happen?
> - Well, there are many reasons for this. This is normal behavior.
> 
> Proposed action: process and stay in ESTABLISHED
> 
> 
> I would appreciate if you could have a look at the proposed changes and
> give feedback. None of the changes has dramatic effects on existing
> implementations of HIPv1 but 1) and 2) might require some minor change
> of code if the implementations don't handle (or handle differently) the
> CLOSE messages in these states.
> 
> BR,
> 
> Tobias
> 
> --
> Dipl.-Inform. Tobias Heer, Ph.D. Student
> Chair of Communication and Distributed Systems - comsys
> 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
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Hipsec mailing list
> Hipsec@ietf.org
> https://www.ietf.org/mailman/listinfo/hipsec