From owner-ietf-kink@mail.vpnc.org  Thu Aug  2 22:12:27 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id WAA10312
	for <kink-archive@odin.ietf.org>; Thu, 2 Aug 2001 22:12:26 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.3/8.11.3) id f732AKm04480
	for ietf-kink-bks; Thu, 2 Aug 2001 19:10:20 -0700 (PDT)
Received: from postoffice.sarnoff.com (postoffice.sarnoff.com [130.33.10.147])
	by above.proper.com (8.11.3/8.11.3) with ESMTP id f732AIs04475
	for <ietf-kink@vpnc.org>; Thu, 2 Aug 2001 19:10:19 -0700 (PDT)
Received: from postoffice.sarnoff.com ([127.0.0.1]) by
          postoffice.sarnoff.com (Netscape Messaging Server 4.15) with
          SMTP id GHGZ4200.MD5 for <ietf-kink@vpnc.org>; Thu, 2 Aug 2001
          22:04:50 -0400 
Received: from nova.sarnoff.com ([130.33.8.27]) by
          postoffice.sarnoff.com (Netscape Messaging Server 4.15) with
          ESMTP id GH5T4A00.UHZ; Fri, 27 Jul 2001 21:21:46 -0400 
Received: from loki.ietf.org (loki.ietf.org [132.151.1.177])
	by nova.sarnoff.com (8.9.2/8.9.2) with ESMTP id NAA21364;
	Tue, 24 Jul 2001 13:49:45 -0400 (EDT)
Received: (from adm@localhost)
	by loki.ietf.org (8.9.1b+Sun/8.9.1) id NAA19242
	for ietf-123-outbound.05@ietf.org; Tue, 24 Jul 2001 13:25:01 -0400 (EDT)
Received: from ietf.org (odin.ietf.org [10.27.2.28])
	by loki.ietf.org (8.9.1b+Sun/8.9.1) with ESMTP id GAA12870
	for <all-ietf@loki.ietf.org>; Tue, 24 Jul 2001 06:32:27 -0400 (EDT)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA06481;
	Tue, 24 Jul 2001 06:32:26 -0400 (EDT)
Message-Id: <200107241032.GAA06481@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-kink@vpnc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-kink-kink-01.txt
Date: Tue, 24 Jul 2001 06:32:26 -0400
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>


--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Kerberized Internet Negotiation of Keys Working Group of the IETF.

	Title		: Kerberized Internet Negotiation of Keys (KINK)
	Author(s)	: M. Thomas et al.
	Filename	: draft-ietf-kink-kink-01.txt
	Pages		: 34
	Date		: 23-Jul-01
	
The KINK Working Group will create a standards track protocol to
facilitate centralized key exchange in an application independent
fashion. Participating systems will use the Kerberos architecture as
defined in RFC 1510 for key management and the KINK protocol between
applications. The goal of KINK is to produce a low-latency,
computationally inexpensive, easily managed, and cryptographically
sound protocol that is flexible enough to be able to be extended for
many applications.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-kink-kink-01.txt

Internet-Drafts are also available by anonymous FTP. Login with the username
"anonymous" and a password of your e-mail address. After logging in,
type "cd internet-drafts" and then
	"get draft-ietf-kink-kink-01.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-kink-kink-01.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.
		
		
Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body;
	access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID:	<20010723140930.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-kink-kink-01.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-kink-kink-01.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID:	<20010723140930.I-D@ietf.org>

--OtherAccess--

--NextPart--




From owner-ietf-kink@mail.vpnc.org  Fri Aug  3 04:57:49 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id EAA09675
	for <kink-archive@odin.ietf.org>; Fri, 3 Aug 2001 04:57:48 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.3/8.11.3) id f738ss305076
	for ietf-kink-bks; Fri, 3 Aug 2001 01:54:54 -0700 (PDT)
Received: from postoffice.sarnoff.com (postoffice.sarnoff.com [130.33.10.147])
	by above.proper.com (8.11.3/8.11.3) with ESMTP id f738sqs05068
	for <ietf-kink@vpnc.org>; Fri, 3 Aug 2001 01:54:52 -0700 (PDT)
Received: from postoffice.sarnoff.com ([127.0.0.1]) by
          postoffice.sarnoff.com (Netscape Messaging Server 4.15) with
          SMTP id GHHFEC00.7Q1 for <ietf-kink@vpnc.org>; Fri, 3 Aug 2001
          03:56:36 -0400 
Received: from nova.sarnoff.com ([130.33.8.27]) by
          postoffice.sarnoff.com (Netscape Messaging Server 4.15) with
          ESMTP id GH5T4A00.UHZ; Fri, 27 Jul 2001 21:21:46 -0400 
Received: from loki.ietf.org (loki.ietf.org [132.151.1.177])
	by nova.sarnoff.com (8.9.2/8.9.2) with ESMTP id NAA21364;
	Tue, 24 Jul 2001 13:49:45 -0400 (EDT)
Received: (from adm@localhost)
	by loki.ietf.org (8.9.1b+Sun/8.9.1) id NAA19242
	for ietf-123-outbound.05@ietf.org; Tue, 24 Jul 2001 13:25:01 -0400 (EDT)
Received: from ietf.org (odin.ietf.org [10.27.2.28])
	by loki.ietf.org (8.9.1b+Sun/8.9.1) with ESMTP id GAA12870
	for <all-ietf@loki.ietf.org>; Tue, 24 Jul 2001 06:32:27 -0400 (EDT)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA06481;
	Tue, 24 Jul 2001 06:32:26 -0400 (EDT)
Message-Id: <200107241032.GAA06481@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-kink@vpnc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-kink-kink-01.txt
Date: Tue, 24 Jul 2001 06:32:26 -0400
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>


--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Kerberized Internet Negotiation of Keys Working Group of the IETF.

	Title		: Kerberized Internet Negotiation of Keys (KINK)
	Author(s)	: M. Thomas et al.
	Filename	: draft-ietf-kink-kink-01.txt
	Pages		: 34
	Date		: 23-Jul-01
	
The KINK Working Group will create a standards track protocol to
facilitate centralized key exchange in an application independent
fashion. Participating systems will use the Kerberos architecture as
defined in RFC 1510 for key management and the KINK protocol between
applications. The goal of KINK is to produce a low-latency,
computationally inexpensive, easily managed, and cryptographically
sound protocol that is flexible enough to be able to be extended for
many applications.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-kink-kink-01.txt

Internet-Drafts are also available by anonymous FTP. Login with the username
"anonymous" and a password of your e-mail address. After logging in,
type "cd internet-drafts" and then
	"get draft-ietf-kink-kink-01.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-kink-kink-01.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.
		
		
Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body;
	access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID:	<20010723140930.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-kink-kink-01.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-kink-kink-01.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID:	<20010723140930.I-D@ietf.org>

--OtherAccess--

--NextPart--




From owner-ietf-kink@mail.vpnc.org  Tue Aug  7 06:10:32 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA29118
	for <kink-archive@odin.ietf.org>; Tue, 7 Aug 2001 06:10:32 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.3/8.11.3) id f77A63Z24631
	for ietf-kink-bks; Tue, 7 Aug 2001 03:06:03 -0700 (PDT)
Received: from raeburn.org (208-59-178-68.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com [208.59.178.68])
	by above.proper.com (8.11.3/8.11.3) with ESMTP id f77A61N24627
	for <ietf-kink@vpnc.org>; Tue, 7 Aug 2001 03:06:01 -0700 (PDT)
Received: from rsx-11.raeburn.org ([2001:618:7:2:2e0:63ff:fe50:4f22])
	by raeburn.org (8.11.3/8.11.3) with ESMTP id f77A5tO10311;
	Tue, 7 Aug 2001 06:05:55 -0400 (EDT)
Received: from raeburn by rsx-11.raeburn.org with local (Exim 3.22 #1 (Debian))
	id 15TueD-0001m9-00; Tue, 07 Aug 2001 01:23:01 +0100
To: Michael Thomas <mat@cisco.com>
Cc: ietf-kink@vpnc.org
Subject: Re: KINK issues
References: <sjmg0cg3f1h.fsf@rcn.ihtfp.org>
	<15172.64310.751181.58474@thomasm-u1.cisco.com>
	<tx1puazy2k9.fsf@mit.edu>
	<15189.24422.125056.477526@thomasm-u1.cisco.com>
	<tx1bsmhykr1.fsf@mit.edu>
	<15190.63952.167857.646848@thomasm-u1.cisco.com>
From: Ken Raeburn <raeburn@mit.edu>
Date: 07 Aug 2001 01:23:01 +0100
In-Reply-To: <15190.63952.167857.646848@thomasm-u1.cisco.com>
Message-ID: <tx1hevkpvkq.fsf@rsx-11.raeburn.org>
Lines: 38
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.104
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>



>    Actually, the current draft doesn't need fine control
>    at all. It's directly feeding the authctx->keyblock->contents
>    into the IKE key derivation as a substitute for the IKE
>    main mode SKEYID. This is very straightforward.

>    The current approach doesn't use the subkey at all,
>    favoring the IKE nonces Ni, Nr instead.

Yes, this looks fine.


>    Yes, I agree. The Packetcable IPsec and SNMP keying used
>    the subkey and it would have probably been a lot more 
>    straightforward if there were an RFC to point to which
>    has been well thought out rather than having to roll
>    your own and wonder whether it was secure. I know that
>    we spent a *lot* of time talking about key derivation
>    considerations.

Yep... one of these days....


>    OK. Like I said, it wasn't clear when I was implementing
>    this with the MIT code what I should do for the IV. Maybe
>    a mention in the spec that "if an initialization vector is
>    required for the cipher, the initialization vector must be
>    randomly chosen by the KINK encyption routine and added
>    in a cipher depended way to the ciphertext"?

Kerberos doesn't carry along the IV with encrypted data.  For CBC mode
ciphers, it uses an IV which is usually fixed, and prepends a random
confounder to the plaintext; the effect is similar to sending along
the encrypted IV with the ciphertext.  Future cryptosystems would do
the same, or something similar, to frustrate an attacker.  So
specifying the IV shouldn't be necessary if you're using the Kerberos
encryption schemes; why do you want to add it?  (It's also unlikely
that kerberos-revisions will allow arbitrary specification of the IV.)


From owner-ietf-kink@mail.vpnc.org  Tue Aug  7 09:01:56 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA02783
	for <kink-archive@odin.ietf.org>; Tue, 7 Aug 2001 09:01:56 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.3/8.11.3) id f77CsEX01821
	for ietf-kink-bks; Tue, 7 Aug 2001 05:54:14 -0700 (PDT)
Received: from sj-msg-core-3.cisco.com (sj-msg-core-3.cisco.com [171.70.157.152])
	by above.proper.com (8.11.3/8.11.3) with ESMTP id f77CsDN01817
	for <ietf-kink@vpnc.org>; Tue, 7 Aug 2001 05:54:13 -0700 (PDT)
Received: from mira-sjc5-7.cisco.com (mira-sjc5-7.cisco.com [171.71.163.27])
	by sj-msg-core-3.cisco.com (8.11.3/8.9.1) with ESMTP id f77CpoJ07314;
	Tue, 7 Aug 2001 05:51:50 -0700 (PDT)
Received: from thomasm-u1.cisco.com (thomasm-u1.cisco.com [128.107.140.53])
	by mira-sjc5-7.cisco.com (Mirapoint)
	with ESMTP id ABU09568;
	Tue, 7 Aug 2001 05:53:36 -0700 (PDT)
Received: (thomasm@localhost) by thomasm-u1.cisco.com (8.8.8-Cisco List Logging/CISCO.WS.1.2) id FAA15164; Tue, 7 Aug 2001 05:53:36 -0700 (PDT)
From: Michael Thomas <mat@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15215.58576.81227.516646@thomasm-u1.cisco.com>
Date: Tue, 7 Aug 2001 05:53:36 -0700 (PDT)
To: Ken Raeburn <raeburn@mit.edu>
Cc: Michael Thomas <mat@cisco.com>, ietf-kink@vpnc.org
Subject: Re: KINK issues
In-Reply-To: <tx1hevkpvkq.fsf@rsx-11.raeburn.org>
References: <sjmg0cg3f1h.fsf@rcn.ihtfp.org>
	<15172.64310.751181.58474@thomasm-u1.cisco.com>
	<tx1puazy2k9.fsf@mit.edu>
	<15189.24422.125056.477526@thomasm-u1.cisco.com>
	<tx1bsmhykr1.fsf@mit.edu>
	<15190.63952.167857.646848@thomasm-u1.cisco.com>
	<tx1hevkpvkq.fsf@rsx-11.raeburn.org>
X-Mailer: VM 6.72 under 21.1 (patch 6) "Big Bend" XEmacs Lucid
X-Face: &,heK/V66p?[2!i|tVn,9lN0TUvEv7:9FzXREj/AuzN4m<D]vnFJ>u!4x[/Z4t{V}~L]+Sk
 @RFNnJEg~WZ/(8<`5a),-7ukALWa^&?&D2R0CSG3kO5~#6JxLF\d,g">$%B!0w{W)qIhmwhye104zd
 bUcI'1!
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 7bit


Ken Raeburn writes:
 > Kerberos doesn't carry along the IV with encrypted data.  For CBC mode
 > ciphers, it uses an IV which is usually fixed, and prepends a random
 > confounder to the plaintext; the effect is similar to sending along
 > the encrypted IV with the ciphertext.  Future cryptosystems would do
 > the same, or something similar, to frustrate an attacker.  So
 > specifying the IV shouldn't be necessary if you're using the Kerberos
 > encryption schemes; why do you want to add it?  (It's also unlikely
 > that kerberos-revisions will allow arbitrary specification of the IV.)

   Great. I just saw what appeared to be an extra 8 bytes
   which was clearly not padding and wasn't quite sure what it
   was (iv/confounder). I'm mainly being pedantic here in case
   somebody who didn't grab the MIT (or other Kerberos) source
   and wanted to apply the encryption algorithm would understand
   how to interpret the spec correctly. I think what I'm going
   to do is hunt down the correct section in 1510 and add a 
   reference which should settle this once and for all.

	     Mike


From owner-ietf-kink@mail.vpnc.org  Wed Aug 15 15:25:22 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA29688
	for <kink-archive@odin.ietf.org>; Wed, 15 Aug 2001 15:25:21 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.3/8.11.3) id f7FJKdh08408
	for ietf-kink-bks; Wed, 15 Aug 2001 12:20:39 -0700 (PDT)
Received: from sj-msg-core-3.cisco.com (sj-msg-core-3.cisco.com [171.70.157.152])
	by above.proper.com (8.11.3/8.11.3) with ESMTP id f7FJKcN08404
	for <ietf-kink@vpnc.org>; Wed, 15 Aug 2001 12:20:38 -0700 (PDT)
Received: from mira-sjc5-7.cisco.com (mira-sjc5-7.cisco.com [171.71.163.27])
	by sj-msg-core-3.cisco.com (8.11.3/8.9.1) with ESMTP id f7FJITD02676
	for <ietf-kink@vpnc.org>; Wed, 15 Aug 2001 12:18:43 -0700 (PDT)
Received: from thomasm-u1.cisco.com (thomasm-u1.cisco.com [128.107.140.53])
	by mira-sjc5-7.cisco.com (Mirapoint)
	with ESMTP id ACR22712;
	Wed, 15 Aug 2001 12:20:19 -0700 (PDT)
Received: (thomasm@localhost) by thomasm-u1.cisco.com (8.8.8-Cisco List Logging/CISCO.WS.1.2) id MAA17874; Wed, 15 Aug 2001 12:20:19 -0700 (PDT)
From: Michael Thomas <mat@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15226.52083.573781.329871@thomasm-u1.cisco.com>
Date: Wed, 15 Aug 2001 12:20:19 -0700 (PDT)
To: ietf-kink@vpnc.org
Subject: dead peer detection
X-Mailer: VM 6.72 under 21.1 (patch 6) "Big Bend" XEmacs Lucid
X-Face: &,heK/V66p?[2!i|tVn,9lN0TUvEv7:9FzXREj/AuzN4m<D]vnFJ>u!4x[/Z4t{V}~L]+Sk
 @RFNnJEg~WZ/(8<`5a),-7ukALWa^&?&D2R0CSG3kO5~#6JxLF\d,g">$%B!0w{W)qIhmwhye104zd
 bUcI'1!
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 7bit



It was brought up at the last IETF that dead peer
detection should be considered by the protocol
upfront. I agree, this would be a very good thing
to nip at the bud, as it were, since this has been
a nagging problem with IKE. I spoke the Bill
Sommerfeld afterward and he mentioned his idea of
using "birth certificates" for IKE. I think that
we can adapt his idea in a pretty straightforward
way for KINK. Namely, we have a pretty good source
of synchronized time from the KDC (needed for
kerberos replay protection). What I'd like to
propose is that we:

1) Add an epoch to the KINK header which is a
   4 byte epoch timestamp which defines the 
   validity epoch of currently instantiated SA
   for a principal

2) That KINK peers MUST record the epoch for
   the principal that instantiates SA's in
   its SADB

3) A KINK peer MUST reap any SA's if it determines
   that the current epoch for a principal is 
   greater than the currently recorded epoch

4) A KINK peer MAY use a notificationless STATUS
   command to determine the peer's epoch

5) A KINK peer SHOULD, upon receipt of IP packets
   with unknown SPI's, try to correlate from the
   SPD which peers might have stale SPI's and
   alert them by sending a STATUS message with
   the current epoch

6) A KINK peer MUST make certain that its local
   time is within the time skew limits imposed
   by Kerberos before setting the current epoch.   


Thus, the normal flow after reboot of Alice where
Bob still has unexpired SPI's would be:

   Alice                   Bob

0) [reboots]

1) <--------------------SPInnn

2) STATUS epoch=new---------->

3) <---------------------REPLY

4) <-------------DELETE SPInnn

5) REPLY--------------------->

[possibly followed by a CREATE, of course]


From owner-ietf-kink@mail.vpnc.org  Fri Aug 17 16:48:22 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA14999
	for <kink-archive@odin.ietf.org>; Fri, 17 Aug 2001 16:48:21 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.3/8.11.3) id f7HKkMo06228
	for ietf-kink-bks; Fri, 17 Aug 2001 13:46:22 -0700 (PDT)
Received: from sentry.gw.tislabs.com (firewall-user@sentry.gw.tislabs.com [192.94.214.100])
	by above.proper.com (8.11.3/8.11.3) with ESMTP id f7HKkKN06217
	for <ietf-kink@vpnc.org>; Fri, 17 Aug 2001 13:46:20 -0700 (PDT)
Received: by sentry.gw.tislabs.com; id QAA01200; Fri, 17 Aug 2001 16:50:47 -0400 (EDT)
Received: from clipper.gw.tislabs.com(10.33.1.2) by sentry.gw.tislabs.com via smap (V5.5)
	id xma001176; Fri, 17 Aug 01 16:49:57 -0400
Received: (from balenson@localhost)
	by clipper.gw.tislabs.com (8.9.3/8.9.1) id QAA09540
	for ietf-kink@vpnc.org; Fri, 17 Aug 2001 16:45:31 -0400 (EDT)
Date: Fri, 17 Aug 2001 16:45:31 -0400 (EDT)
From: "David M. Balenson" <balenson@tislabs.com>
Message-Id: <200108172045.QAA09540@clipper.gw.tislabs.com>
To: ietf-kink@vpnc.org
Subject: CFP: Submission deadline for NDSS'02 extended to Aug 29th
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>



Due to the unusually large number of requests for an extension,
the submissions deadline for NDSS'02 has been extended to 
Wednesday August 29, 9:00am EST (U.S. east coast time).
 
Paul Van Oorschot  and Virgil Gligor
Co-Chairs, NDSS'02


                             C A L L   F O R   P A P E R S

Internet Society's 2002 Network and Distributed System Security Symposium  (NDSS'02)

Catamaran Resort - San Diego, California
February 6-8, 2002

IMPORTANT DATES
Paper and panel submissions due August 22, 2001
Author notification October 17, 2001
Final version of papers and panels due November 20, 2001

GOAL: The symposium fosters information exchange among research scientists and practitioners of network and distributed system security services. The target audience includes those interested in practical aspects of network and distributed system security, with a focus on actual system design and implementation (rather than theory). A major goal is to encourage and enable the Internet community to apply, deploy, and advance the state of available security technology. The proceedings are published by the Internet Society.

GENERAL CHAIR: 
Clifford Neuman, USC Information Sciences Institute

PROGRAM CO-CHAIRS:
Paul Van Oorschot, Entrust Technologies
Virgil Gligor, University of Maryland

TUTORIAL CHAIR:
Eric Harder, National Security Agency

LOCAL ARRANGEMENTS CHAIR:
Thomas Hutton, San Diego Supercomputer Center

PUBLICATIONS CHAIR:
Mahesh Tripunitara, Purdue University

PUBLICITY CHAIR:
David Balenson, NAI Labs, Network Associates

LOGISTICS CHAIR:
Terry Weigler, Internet Society

PROGRAM COMMITTEE:
Steve Bellovin, AT&T Labs Research
Dan Boneh, Stanford University
Bill Cheswick, Lumeta Corporation
Li Gong, Sun Microsystems
Peter Gutmann, Univ. of Auckland, N.Z.
Charlie Kaufman, Iris Associates
Steve Kent, BBN Technologies
Markus Kuhn, Univ. of Cambridge, U.K.
Douglas Maughan, DARPA
Kevin McCurley, IBM Almaden Research
Gary McGraw, Cigital
Fabian Monrose, Bell Labs
Sandra Murphy, Network Associates
Radha Poovendran, Univ. of Washington 
Michael Roe, Microsoft Research, U.K. 
Christoph Schuba, Sun Microsystems
Clay Shields, Purdue University
Jonathan Trostle, Cisco Systems
Dan Wallach, Rice University

OUTSTANDING PAPER AWARD: There will be an Outstanding Paper award. The award will be presented at the symposium to the authors of an outstanding paper, as selected by the Program Committee.

SUBMISSIONS: Both technical papers and panel proposals are solicited. Technical papers must include a main body of at most 12 pages, with any additional details in clearly marked appendices for a combined total of at most 20 pages. Technical papers will appear in the proceedings. Panel proposals should be one page and must describe the topic, identify the panel chair, explain the panel format, and list three to four potential panelists. A description of each panel will appear in the proceedings, and may, at the discretion of the panel chair, include written position statements from the panelists.

Submissions are solicited in, but not limited to, the following areas:
* Integrating security in Internet protocols: routing, naming, TCP/IP, multicast, network management, and the Web.
* Intrusion avoidance, detection, and response: systems, experiences and architectures.
* Attack-resistant protocols and services.
* Network perimeter controls: firewalls, packet filters, application gateways.
* Virtual private networks.
* Public key infrastructure, key management, certification, and revocation.
* Secure electronic commerce: e.g., payment, barter, EDI, notarization, timestamping, endorsement, and licensing.
* Supporting security mechanisms and APIs; audit trails; accountability.
* Implementation, deployment and management of network security policies.
* Intellectual property protection: protocols, schemas, implementations, metering, watermarking, digital rights management.
* Fundamental services on network and distributed systems: authentication, data integrity, confidentiality, authorization, non-repudiation, and availability.
* Integrating security services with system and application security facilities and protocols: e.g., message handling, file transport/access, directories, time synchronization, data base management, boot services, mobile computing.
* Security for emerging technologies: sensor networks, specialized testbeds, wireless/mobile (and ad hoc) networks, personal communication systems, and large heterogeneous distributed systems.
* Special problems and case studies: e.g., interplay and tradeoffs between security and efficiency, usability, reliability and cost.
* Security for collaborative applications and services: teleconferencing and video-conferencing, groupwork, etc.

Each submission must contain a separate Submission Overview specifying the submission type (paper or panel), the title or topic, author names with organizational affiliations, and must specify a contact author along with corresponding phone number, FAX number, postal address and email address.

Submissions must be received by August 22, 2001, and must be made electronically in either printable PostScript or PDF. Each submission will be acknowledged by e-mail; if acknowledgment is not received within seven days, contact a program co-chair (see above). Authors and panelists will be notified of acceptance by October 17, 2001, and given instructions for preparing the camera-ready copy. The camera-ready copy must be received by November 20, 2001. 

FURTHER INFORMATION: Official dates, the final call for papers, the advance program, and registration information will be available shortly at http://www.isoc.org/ndss2002. For official submission information, visit http://www.isoc.org/ndss2002/cfp.

Internet Society 

11150 Sunset Hills Road, Suite 100
Reston, VA  20191  USA
Tel:  +1 703 326 9880
Fax:  +1 703 326 9880
www.isoc.org

4, rue des Falaises
CH-1205 Geneva
Switzerland
Tel:  +41 22 807 1444
Fax:  +41 22 807 1445
www.isoc.org


From owner-ietf-kink@mail.vpnc.org  Sun Aug 19 21:00:51 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA17521
	for <kink-archive@odin.ietf.org>; Sun, 19 Aug 2001 21:00:50 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.3/8.11.3) id f7K0vlN03069
	for ietf-kink-bks; Sun, 19 Aug 2001 17:57:47 -0700 (PDT)
Received: from sj-msg-core-2.cisco.com (sj-msg-core-2.cisco.com [171.69.24.11])
	by above.proper.com (8.11.3/8.11.3) with ESMTP id f7K0vjN03065
	for <ietf-kink@vpnc.org>; Sun, 19 Aug 2001 17:57:45 -0700 (PDT)
Received: from mira-sjc5-7.cisco.com (mira-sjc5-7.cisco.com [171.71.163.27])
	by sj-msg-core-2.cisco.com (8.11.3/8.9.1) with ESMTP id f7K0w1T11349
	for <ietf-kink@vpnc.org>; Sun, 19 Aug 2001 17:58:01 -0700 (PDT)
Received: from thomasm-u1.cisco.com (thomasm-u1.cisco.com [128.107.140.53])
	by mira-sjc5-7.cisco.com (Mirapoint)
	with ESMTP id ACW00897;
	Sun, 19 Aug 2001 17:57:43 -0700 (PDT)
Received: (thomasm@localhost) by thomasm-u1.cisco.com (8.8.8-Cisco List Logging/CISCO.WS.1.2) id RAA18977; Sun, 19 Aug 2001 17:57:43 -0700 (PDT)
From: Michael Thomas <mat@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15232.24711.325723.676876@thomasm-u1.cisco.com>
Date: Sun, 19 Aug 2001 17:57:43 -0700 (PDT)
To: ietf-kink@vpnc.org
Subject: suggested workaround for "reliable acks"
X-Mailer: VM 6.72 under 21.1 (patch 6) "Big Bend" XEmacs Lucid
X-Face: &,heK/V66p?[2!i|tVn,9lN0TUvEv7:9FzXREj/AuzN4m<D]vnFJ>u!4x[/Z4t{V}~L]+Sk
 @RFNnJEg~WZ/(8<`5a),-7ukALWa^&?&D2R0CSG3kO5~#6JxLF\d,g">$%B!0w{W)qIhmwhye104zd
 bUcI'1!
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 7bit



Considering that there isn't a technical obstacle
to providing a solution for our charter and
requirements item that KINK has the ability to set
up an SA in two messages, I'm very, very reluctant
to give it up just because of new found religion
on the "it's more complex" front where the
supposed complexity is manifestly not very high.
Indeed, if we want to avoid unnecessary
complexity, we would not have used Quick Mode
which is a *lot* more complex than this issue.

There are two choices, I'll list them in order of
my preference:

1) With ACK's:

o We mandate the respondent MUST request an ACK
  if it does not choose the first proposal, or
  if PFS was required by the initiator. 

o We eliminate Nr in the response

o We put the reply on a timer, and retransmit
  until we get an ACK

2) Without ACK's:

o We eliminate ACK's altogether
o The respondent lives with the non-deterministic SA
  installation by the initiator when the
  optimistic route is not taken.

I have some real reservations about (2) as this is
a current criticism of IKE and it's somewhat
specious to talk about something that "simpler"
which is simultaneously broken. 


	 Mike


From owner-ietf-kink@mail.vpnc.org  Wed Aug 22 18:14:35 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA25152
	for <kink-archive@odin.ietf.org>; Wed, 22 Aug 2001 18:14:34 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.3/8.11.3) id f7MMCcd27845
	for ietf-kink-bks; Wed, 22 Aug 2001 15:12:38 -0700 (PDT)
Received: from fw.hel.fi.ssh.com (fw.hel.fi.ssh.com [193.64.193.124])
	by above.proper.com (8.11.3/8.11.3) with ESMTP id f7MMCaN27841
	for <ietf-kink@vpnc.org>; Wed, 22 Aug 2001 15:12:36 -0700 (PDT)
Received: from viikuna.hel.fi.ssh.com (viikuna.hel.fi.ssh.com [10.1.0.46])
	by fw.hel.fi.ssh.com (SSH-1.27) with SMTP id f7MMCZf22258
	for <ietf-kink@vpnc.org>; Thu, 23 Aug 2001 01:12:35 +0300 (EEST)
Received: (qmail 15705 invoked from network); 22 Aug 2001 22:12:35 -0000
Received: from unknown (HELO ryijy.hel.fi.ssh.com) ([10.1.0.48]) (envelope-sender <kivinen@ssh.fi>)
          by viikuna.hel.fi.ssh.com (qmail-ldap-1.03) with SMTP
          for <mat@cisco.com>; 22 Aug 2001 22:12:35 -0000
Received: (from kivinen@localhost)
	by ryijy.hel.fi.ssh.com (8.11.0/8.11.0) id f7MMCef15721;
	Thu, 23 Aug 2001 01:12:40 +0300 (EEST)
Date: Thu, 23 Aug 2001 01:12:40 +0300 (EEST)
Message-Id: <200108222212.f7MMCef15721@ryijy.hel.fi.ssh.com>
X-Authentication-Warning: ryijy.hel.fi.ssh.com: kivinen set sender to <kivinen@ssh.fi> using -f
From: Tero Kivinen <kivinen@ssh.fi>
To: ietf-kink@vpnc.org
CC: mat@cisco.com (Michael Thomas)
Subject: Re: suggested workaround for "reliable acks"
References: <15232.24711.325723.676876@thomasm-u1.cisco.com>
Organization: SSH Communications Security Oy
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="iso-8859-1"
X-Edit-Time: 10 min
X-Total-Time: 11 min
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 8bit


mat@cisco.com (Michael Thomas) writes:
> 2) Without ACK's:
> o We eliminate ACK's altogether
> o The respondent lives with the non-deterministic SA
>   installation by the initiator when the
>   optimistic route is not taken.
> 
> I have some real reservations about (2) as this is
> a current criticism of IKE and it's somewhat
> specious to talk about something that "simpler"
> which is simultaneously broken. 

If you have been following the discussion on the IPsec list you notice
that this is the way the IKE quick mode is moving to (or the other
possibility is 4 packets).

I don't really understand what is so hard or non-deerministic about
this.

The initiator has something he wants to send to the responder, he
starts negotiation and sends his first packet, which includes SA, Ni,
[IDs], [KE] etc. The responder sees that packet and selects whatever
SA he wants and send reply back with SA, Nr, [IDs], [KE]. After
sending reply back he creates the keying material and installs the
SA.

Now the initiator gets the reply packet which includes all the
information needed to create the SA, thus he can install the SA and
start using it. If he does not receive the reply packet for some time,
he resends the first packet and in that case the responder will
immediately retransmit his packet back.

Now both ends have SAs up and the initiator starts sending the packets
he has queued up waiting for the IPsec SA to be created. If the
responder happens to have some packets to send between the time where
he has installed the SAs, but before the initiator has set up his SAs
(very unlikely event), then he will send the packets to the initiator
with the SA that is know to the initiator, but to which he does not
have keying material yet (the initiator knows the SPI, as it was
selected by him). The initiator can just simply drop the packets if he
feels like, or he might queue them up waiting for the SAs to come up.

If this is rekey case then the responder will use the old SA as long
as it is there, meaning that it moves to use the new SA when it is
deleted via explicit delete or because it expired. It can have some
kind of timer to send delete for the old SA itself if the initiator
who started the rekey does not delete the SA after few minutes or so. 
-- 
kivinen@ssh.fi
SSH Communications Security                  http://www.ssh.fi/
SSH IPSEC Toolkit                            http://www.ssh.fi/ipsec/


From owner-ietf-kink@mail.vpnc.org  Wed Aug 22 18:56:10 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA25807
	for <kink-archive@odin.ietf.org>; Wed, 22 Aug 2001 18:56:10 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.3/8.11.3) id f7MMsSD28471
	for ietf-kink-bks; Wed, 22 Aug 2001 15:54:28 -0700 (PDT)
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by above.proper.com (8.11.3/8.11.3) with ESMTP id f7MMsRN28467
	for <ietf-kink@vpnc.org>; Wed, 22 Aug 2001 15:54:27 -0700 (PDT)
Received: from eastmail1.East.Sun.COM ([129.148.1.240])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA25698;
	Wed, 22 Aug 2001 16:54:22 -0600 (MDT)
Received: from thunk.east.sun.com (thunk.East.Sun.COM [129.148.174.66])
	by eastmail1.East.Sun.COM (8.9.3+Sun/8.9.3/ENSMAIL,v2.1p1) with ESMTP id SAA07854;
	Wed, 22 Aug 2001 18:54:26 -0400 (EDT)
Received: from thunk (localhost [127.0.0.1])
	by thunk.east.sun.com (8.11.4+Sun/8.11.4) with ESMTP id f7MMrn014589;
	Wed, 22 Aug 2001 18:53:49 -0400 (EDT)
Message-Id: <200108222253.f7MMrn014589@thunk.east.sun.com>
From: Bill Sommerfeld <sommerfeld@east.sun.com>
To: Tero Kivinen <kivinen@ssh.fi>
cc: ietf-kink@vpnc.org, mat@cisco.com (Michael Thomas)
Subject: Re: suggested workaround for "reliable acks" 
In-reply-to: Your message of "Thu, 23 Aug 2001 01:12:40 +0300."
             <200108222212.f7MMCef15721@ryijy.hel.fi.ssh.com> 
Reply-to: sommerfeld@east.sun.com
Date: Wed, 22 Aug 2001 18:53:48 -0400
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>


> The initiator can just simply drop the packets if he feels like, or
> he might queue them up waiting for the SAs to come up.

A few months ago I implemented inbound queueing of this form; it makes
a *big* difference in reducing connection setup latencies (and
typically means that the first "ping"/SYN packets get through, albeit
with a significantly higher latency).

> If this is rekey case then the responder will use the old SA as long
> as it is there, meaning that it moves to use the new SA when it is
> deleted via explicit delete or because it expired. It can have some
> kind of timer to send delete for the old SA itself if the initiator
> who started the rekey does not delete the SA after few minutes or
> so. 

Note that different folks do this differently ( "use oldest" vs "use
newest"; "use newest" recovers faster from a partial loss of state,
though that's largely irrelevant if you have initial-contact.

					- Bill


From owner-ietf-kink@mail.vpnc.org  Wed Aug 22 19:22:50 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA26150
	for <kink-archive@odin.ietf.org>; Wed, 22 Aug 2001 19:22:50 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.3/8.11.3) id f7MNLCe29097
	for ietf-kink-bks; Wed, 22 Aug 2001 16:21:12 -0700 (PDT)
Received: from sj-msg-core-4.cisco.com (sj-msg-core-4.cisco.com [171.71.163.10])
	by above.proper.com (8.11.3/8.11.3) with ESMTP id f7MNLAN29093
	for <ietf-kink@vpnc.org>; Wed, 22 Aug 2001 16:21:10 -0700 (PDT)
Received: from mira-sjc5-7.cisco.com (mira-sjc5-7.cisco.com [171.71.163.27])
	by sj-msg-core-4.cisco.com (8.11.3/8.9.1) with ESMTP id f7MNLIn11436;
	Wed, 22 Aug 2001 16:21:18 -0700 (PDT)
Received: from thomasm-u1.cisco.com (thomasm-u1.cisco.com [128.107.140.53])
	by mira-sjc5-7.cisco.com (Mirapoint)
	with ESMTP id AAE14436;
	Wed, 22 Aug 2001 16:21:06 -0700 (PDT)
Received: (thomasm@localhost) by thomasm-u1.cisco.com (8.8.8-Cisco List Logging/CISCO.WS.1.2) id QAA19895; Wed, 22 Aug 2001 16:21:05 -0700 (PDT)
From: Michael Thomas <mat@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15236.15969.729488.981377@thomasm-u1.cisco.com>
Date: Wed, 22 Aug 2001 16:21:05 -0700 (PDT)
To: sommerfeld@east.sun.com
Cc: Tero Kivinen <kivinen@ssh.fi>, ietf-kink@vpnc.org,
        mat@cisco.com (Michael Thomas)
Subject: Re: suggested workaround for "reliable acks" 
In-Reply-To: <200108222253.f7MMrn014589@thunk.east.sun.com>
References: <200108222212.f7MMCef15721@ryijy.hel.fi.ssh.com>
	<200108222253.f7MMrn014589@thunk.east.sun.com>
X-Mailer: VM 6.72 under 21.1 (patch 6) "Big Bend" XEmacs Lucid
X-Face: &,heK/V66p?[2!i|tVn,9lN0TUvEv7:9FzXREj/AuzN4m<D]vnFJ>u!4x[/Z4t{V}~L]+Sk
 @RFNnJEg~WZ/(8<`5a),-7ukALWa^&?&D2R0CSG3kO5~#6JxLF\d,g">$%B!0w{W)qIhmwhye104zd
 bUcI'1!
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 7bit


Bill Sommerfeld writes:
 > 
 > > The initiator can just simply drop the packets if he feels like, or
 > > he might queue them up waiting for the SAs to come up.
 > 
 > A few months ago I implemented inbound queueing of this form; it makes
 > a *big* difference in reducing connection setup latencies (and
 > typically means that the first "ping"/SYN packets get through, albeit
 > with a significantly higher latency).

Bill,

I'm having a hard time reconciling Tero's
characterization of this being a rare situation
(since it requires the initiator to lose the
reply) and your characterization that make a *big*
difference. I agree with Tero that it ought to be
as rare as the chance of the initiator losing the
reply which under normal circumstances shouldn't
be very often.

Are we talking about the same thing?

    Mike


From owner-ietf-kink@mail.vpnc.org  Wed Aug 22 19:31:23 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA26283
	for <kink-archive@odin.ietf.org>; Wed, 22 Aug 2001 19:31:23 -0400 (EDT)
Received: by above.proper.com (8.11.3/8.11.3) id f7MNRfP29224
	for ietf-kink-bks; Wed, 22 Aug 2001 16:27:41 -0700 (PDT)
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by above.proper.com (8.11.3/8.11.3) with ESMTP id f7MNReN29220
	for <ietf-kink@vpnc.org>; Wed, 22 Aug 2001 16:27:40 -0700 (PDT)
Received: from eastmail1.East.Sun.COM ([129.148.1.240])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id QAA12479;
	Wed, 22 Aug 2001 16:27:38 -0700 (PDT)
Received: from thunk.east.sun.com (thunk.East.Sun.COM [129.148.174.66])
	by eastmail1.East.Sun.COM (8.9.3+Sun/8.9.3/ENSMAIL,v2.1p1) with ESMTP id TAA12487;
	Wed, 22 Aug 2001 19:27:37 -0400 (EDT)
Received: from thunk (localhost [127.0.0.1])
	by thunk.east.sun.com (8.11.4+Sun/8.11.4) with ESMTP id f7MNR0015154;
	Wed, 22 Aug 2001 19:27:00 -0400 (EDT)
Message-Id: <200108222327.f7MNR0015154@thunk.east.sun.com>
From: Bill Sommerfeld <sommerfeld@east.sun.com>
To: Michael Thomas <mat@cisco.com>
cc: sommerfeld@east.sun.com, Tero Kivinen <kivinen@ssh.fi>, ietf-kink@vpnc.org
Subject: Re: suggested workaround for "reliable acks" 
In-reply-to: Your message of "Wed, 22 Aug 2001 16:21:05 PDT."
             <15236.15969.729488.981377@thomasm-u1.cisco.com> 
Reply-to: sommerfeld@east.sun.com
Date: Wed, 22 Aug 2001 19:26:59 -0400
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>


> Bill,
> 
> I'm having a hard time reconciling Tero's
> characterization of this being a rare situation
> (since it requires the initiator to lose the
> reply) and your characterization that make a *big*
> difference. 

It's not rare if the first encrypted packet of traffic hits the
initiator's inbound SA lookup before the KM reply is processed and the
SA is fully built.  

If the KM reply is processed on a "slow path" (on solaris, we do key
management in userland but ESP in the kernel), this sort of
"reordering" happens more often than not..

					- Bill


From owner-ietf-kink@mail.vpnc.org  Wed Aug 22 19:35:28 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA26344
	for <kink-archive@odin.ietf.org>; Wed, 22 Aug 2001 19:35:27 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.3/8.11.3) id f7MNY8K29479
	for ietf-kink-bks; Wed, 22 Aug 2001 16:34:08 -0700 (PDT)
Received: from sj-msg-core-3.cisco.com (sj-msg-core-3.cisco.com [171.70.157.152])
	by above.proper.com (8.11.3/8.11.3) with ESMTP id f7MNY7N29475
	for <ietf-kink@vpnc.org>; Wed, 22 Aug 2001 16:34:07 -0700 (PDT)
Received: from mira-sjc5-7.cisco.com (mira-sjc5-7.cisco.com [171.71.163.27])
	by sj-msg-core-3.cisco.com (8.11.3/8.9.1) with ESMTP id f7MNW9h00394;
	Wed, 22 Aug 2001 16:32:09 -0700 (PDT)
Received: from thomasm-u1.cisco.com (thomasm-u1.cisco.com [128.107.140.53])
	by mira-sjc5-7.cisco.com (Mirapoint)
	with ESMTP id AAE14883;
	Wed, 22 Aug 2001 16:34:00 -0700 (PDT)
Received: (thomasm@localhost) by thomasm-u1.cisco.com (8.8.8-Cisco List Logging/CISCO.WS.1.2) id QAA19898; Wed, 22 Aug 2001 16:34:00 -0700 (PDT)
From: Michael Thomas <mat@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15236.16744.397873.220924@thomasm-u1.cisco.com>
Date: Wed, 22 Aug 2001 16:34:00 -0700 (PDT)
To: sommerfeld@east.sun.com
Cc: Michael Thomas <mat@cisco.com>, Tero Kivinen <kivinen@ssh.fi>,
        ietf-kink@vpnc.org
Subject: Re: suggested workaround for "reliable acks" 
In-Reply-To: <200108222327.f7MNR0015154@thunk.east.sun.com>
References: <15236.15969.729488.981377@thomasm-u1.cisco.com>
	<200108222327.f7MNR0015154@thunk.east.sun.com>
X-Mailer: VM 6.72 under 21.1 (patch 6) "Big Bend" XEmacs Lucid
X-Face: &,heK/V66p?[2!i|tVn,9lN0TUvEv7:9FzXREj/AuzN4m<D]vnFJ>u!4x[/Z4t{V}~L]+Sk
 @RFNnJEg~WZ/(8<`5a),-7ukALWa^&?&D2R0CSG3kO5~#6JxLF\d,g">$%B!0w{W)qIhmwhye104zd
 bUcI'1!
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 7bit


Bill Sommerfeld writes:
 > > Bill,
 > > 
 > > I'm having a hard time reconciling Tero's
 > > characterization of this being a rare situation
 > > (since it requires the initiator to lose the
 > > reply) and your characterization that make a *big*
 > > difference. 
 > 
 > It's not rare if the first encrypted packet of traffic hits the
 > initiator's inbound SA lookup before the KM reply is processed and the
 > SA is fully built.  
 > 
 > If the KM reply is processed on a "slow path" (on solaris, we do key
 > management in userland but ESP in the kernel), this sort of
 > "reordering" happens more often than not..

   Ah, thank you. The alternative of the convoluted (imo)
   inbound SA queuing you spoke of is to require Bob
   to receive the ACK from Alice before installing his
   outbound SA. Inbound queuing on a potentially volatile
   half opened connection seems rather... gross. It
   would be better to have this be completely deterministic
   for Bob and Alice. That's why I favor option (1).

	   Mike


From owner-ietf-kink@mail.vpnc.org  Wed Aug 22 19:53:38 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA26614
	for <kink-archive@odin.ietf.org>; Wed, 22 Aug 2001 19:53:38 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.3/8.11.3) id f7MNq2h29813
	for ietf-kink-bks; Wed, 22 Aug 2001 16:52:02 -0700 (PDT)
Received: from fw.hel.fi.ssh.com (fw.hel.fi.ssh.com [193.64.193.124])
	by above.proper.com (8.11.3/8.11.3) with ESMTP id f7MNq0N29808
	for <ietf-kink@vpnc.org>; Wed, 22 Aug 2001 16:52:01 -0700 (PDT)
Received: from viikuna.hel.fi.ssh.com (viikuna.hel.fi.ssh.com [10.1.0.46])
	by fw.hel.fi.ssh.com (SSH-1.27) with SMTP id f7MNq3f24051
	for <ietf-kink@vpnc.org>; Thu, 23 Aug 2001 02:52:03 +0300 (EEST)
Received: (qmail 731 invoked from network); 22 Aug 2001 23:52:03 -0000
Received: from unknown (HELO ryijy.hel.fi.ssh.com) ([10.1.0.48]) (envelope-sender <kivinen@ssh.fi>)
          by viikuna.hel.fi.ssh.com (qmail-ldap-1.03) with SMTP
          for <mat@cisco.com>; 22 Aug 2001 23:52:03 -0000
Received: (from kivinen@localhost)
	by ryijy.hel.fi.ssh.com (8.11.0/8.11.0) id f7MNq9s15772;
	Thu, 23 Aug 2001 02:52:09 +0300 (EEST)
X-Authentication-Warning: ryijy.hel.fi.ssh.com: kivinen set sender to <kivinen@ssh.fi> using -f
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15236.17833.183893.342632@ryijy.hel.fi.ssh.com>
Date: Thu, 23 Aug 2001 02:52:09 +0300
From: Tero Kivinen <kivinen@ssh.fi>
To: sommerfeld@east.sun.com
Cc: Michael Thomas <mat@cisco.com>, ietf-kink@vpnc.org
Subject: Re: suggested workaround for "reliable acks" 
In-Reply-To: <200108222327.f7MNR0015154@thunk.east.sun.com>
References: <15236.15969.729488.981377@thomasm-u1.cisco.com>
	<200108222327.f7MNR0015154@thunk.east.sun.com>
X-Mailer: VM 6.89 under Emacs 20.7.1
Organization: SSH Communications Security Oy
X-Edit-Time: 22 min
X-Total-Time: 21 min
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 7bit


Bill Sommerfeld writes:
> > I'm having a hard time reconciling Tero's
> > characterization of this being a rare situation
> > (since it requires the initiator to lose the
> > reply) and your characterization that make a *big*
> > difference. 
> 
> It's not rare if the first encrypted packet of traffic hits the
> initiator's inbound SA lookup before the KM reply is processed and the
> SA is fully built.  
> 
> If the KM reply is processed on a "slow path" (on solaris, we do key
> management in userland but ESP in the kernel), this sort of
> "reordering" happens more often than not..

This is for the rekeying case I assume. For the rekeying it is common
case that the responder has something to send to the initiator, and if
he switches to the new SA immediately after he sets it up, then the
initiator might see traffic that he does not have keying material yet.

This same thing also happens with the 3 packet quick mode currently
defined in IKE when the initiator sends the final HASH and immediately
starts sending ESP traffic using that SA. Now the responder usually
will wait the HASH to arrive before installing the SA, which means
that when the final qm packet arrives and is being processed by the
userland ike daemon, the ESP traffic is at the same time already
coming to the machine.

This does not apply to KINK as responder can always install the SA
immediately after seeing the first packet, thus he will have the SA
state up and ready when the initiator starts using it. This same thing
will be the case for the 2 packet quick mode for IKE also when the
replay attack for quick mode has been solved by some other mean than
requiring the 3rd packet.

The case which I said to be rare is the case where initiator and
responder do not have SAs up, and the initiator starts negotiation
with responder and after the first packet of the quick has been
processed by the responder the responder gets something it wants to
send to the initiator before the initiator has processed the packet
sent by the responder. I.e:


     Initiator					Responder
     ---------					---------

     Gets a packet he wants
     to send to responder.

     Starts creating IPsec SA

     Sends SA, Ni ------------------->

						Receives SA, Ni

						Generates SA, Nr

						Calculates keying
						material

						Installs IPsec SA

						*start*

			<---------------------	Sends SA, Nr

     Receives SA, Nr

     Calculates keying
     material

     Installs IPsec SA

     *end*

I.e if the responder suddenly gets some packet it wants to send to the
initiator between time *start* and *end* it will send it using the SA
which the initiator does not yet have keying material, thus the
initiator either needs to queue it up or discard the packet.

In normal case it would be very rare that the responder spontaneously
happen to have something to send to the initiator which needs IPsec
processing during this few milliseconds time.

In normal case it is the time needed by the responder to send the
packet it already has ready after the SA has been installed (one
system call after the install SA returns, can be happening
simultaneously if there is multiple processors in the system) plus the
time needed by the initiator from receiving the 2nd quick mode packet
from the ethernet to the point it installs the IPsec SA (this needs
parsing of the packet, few hash calculations, and installing of SA). 

The time can be larger in case we are using PFS, in which case the
initiator has to do rest of the Diffie-Hellman calculation before it
can install the SA.

Also if the 2nd quick mode packet is lost then we need to add
retranmission time (or multiple of those if more packets get dropped)
to get the actual time window.

One case where this case might not be that uncommon is for some kind
of clock syncronization protocol where both ends are sending each
other a packet every hour or something. In that case both ends have
data to send at almost the same time, and they either end up having
two SAs in case the clocks are really on sync, or one SA, and then the
machine that was slower in starting to send is going to have
possibility that his packet is dropped by the initiator.

There are multiple ways for the implementation to get rid of this
problem. One could be that inbound queue for partial SAs, another
could be that responder does not install the outbound SA immediately
but only after some timeout or after seeing some traffic on inbound SA
etc.

For most of the case I think this problem is so rare, that we can just
cope with one lost packet. The upper level protocol must have
retransmission and ack system anyways if they really want the packet
to reach the other end.
-- 
kivinen@ssh.fi
SSH Communications Security                  http://www.ssh.fi/
SSH IPSEC Toolkit                            http://www.ssh.fi/ipsec/


From subs-reminder@vpnc.org  Thu Aug 23 23:11:14 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id XAA07737
	for <kink-archive@odin.ietf.org>; Thu, 23 Aug 2001 23:11:14 -0400 (EDT)
From: subs-reminder@vpnc.org
Received: by above.proper.com (8.11.6/8.11.3) id f7O3CTT04496;
	Thu, 23 Aug 2001 20:12:29 -0700 (PDT)
Date: Thu, 23 Aug 2001 20:12:29 -0700 (PDT)
Message-Id: <200108240312.f7O3CTT04496@above.proper.com>
To: kink-archive@ietf.org
Subject: [[496881303]] Subscription to ietf-kink for kink-archive@lists.ietf.org

Greetings. This message is a periodic reminder that
     kink-archive@lists.ietf.org
is subscribed to the
     ietf-kink
mailing list.

There are two purposes for this message:
- If this message is bounced by your mail server, I can remove you from
  the mailing list and reduce waste of bandwidth and resources. (If you
  are reading this message, it clearly didn't get bounced!)
- Some people stay subscribed to mailing lists even though they do not
  want to because they do not know how to unsubscribe. 

If you want to stay subscribed to the ietf-kink mailing list,
you do not need to do anything.

On the other hand, if you want to unsubscribe from this list, go to the
following link:
     <http://www.vpnc.org/Unsubs/496881303>
You can also unsubscribe by email. To do so, you can respond to this
message and I will unsubscribe you by hand in the next few days.
Alternatively, you can send a plain-text message to:
     ietf-kink-request@vpnc.org
with the single word
     unsubscribe
in the body of the message.

If you have any questions, feel free to contact me.

--Paul Hoffman, list administrator


From owner-ietf-kink@mail.vpnc.org  Fri Aug 24 14:07:43 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA11356
	for <kink-archive@odin.ietf.org>; Fri, 24 Aug 2001 14:07:43 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id f7OI31227913
	for ietf-kink-bks; Fri, 24 Aug 2001 11:03:01 -0700 (PDT)
Received: from rcn.ihtfp.org (me@ORANGE-TOUR.IHTFP.ORG [204.107.200.33])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id f7OI2xD27908
	for <ietf-kink@vpnc.org>; Fri, 24 Aug 2001 11:02:59 -0700 (PDT)
Received: (from warlord@localhost) by rcn.ihtfp.org (8.9.3)
	id OAA03501; Fri, 24 Aug 2001 14:02:59 -0400
To: ietf-kink@vpnc.org
Subject: Draft minutes from KINK meeting in London
From: Derek Atkins <warlord@mit.edu>
Date: 24 Aug 2001 14:02:59 -0400
Message-ID: <sjmn14pxrn0.fsf@rcn.ihtfp.org>
Lines: 149
X-Mailer: Gnus v5.5/Emacs 20.3
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>


Sorry for getting these out so late.  My thanks to Bill Sommerfeld
for taking these minutes (and getting them to me a LONG time ago!)

Let me know if there are any mistakes or omissions.

-derek

KINK meeting, 1pm 2001/08/09, Blenham room

agenda bashing

protocol update (michael thomas)
	draft status
	changes done:
 		added status command (for QM notifications)
		make use of QM explicit
		clarified padding rules
			hopefully the same as ISAKMP
		added valid kerberos errors, plus a KINK internal error type
			errors copied from RFC1510
			perhaps need more guidance on error recovery
		header rearranged a bit
			reserve some bits for something mike can't remember
		added PFS, security considerations
			per consensus of last meeting
		clarified U-U and Encryption wording
		misc others (noted in the draft)
	to do:
		general editorial pass
		MUST/SHOULD ..
		Last Call soon?
	
	implementation status

		cisco implementation under way for past month
		relatively few snags from draft
		cross between FreeS/Wan Pluto (ISAKMP) and kerberos
			-> named "goofy"
		most MUST/SHOULD features implemented
			General: Create/Delete/Status/GetTGT

		still need optimistic keying and integration with pluto

	quick mode sanity check:
		- use quick mode payloads, but isn't quick mode per se.
		- uses ID, SA, Nonce, and KE
		- does not use HASH or ISAKMP header
		- Nr (responder nonce) is optional
		- use Quick Mode payload ordering.

	issues:
		- are KINK payloads registered as ISAKMP payloads?
		- Diffie-Hellman group for PFS
			put in KE payload?
		Tero Kivinen:
			IKE phase 2 PFS group is actually in the quick 
			mode SA payload
		- More errors?
			- finer-grained 

		- Default service
			ipsec/f.q.d.n@REALM
			jason thorpe suggests "kink/...@REALM"

			sam hartman regarding host principal vs. service princ.
			points to kerberos FTP..

			thor simon: host vs. service-specific:
			tradeoff is: do you force the admin to put
			more stuff in the KDC database, or do you let
			compromise of one of the other services also
			comprimise KINK

			apparent consensus: don't reuse host princ.

		- Hash/Encryption and IPsec SKEYID uses service key
			using subkey might be more appropriate,
			but use of nonces make this roughly equivalent.
			seems to be OK with everyone to do our own key
			derivation based on service key and nonces..
		
	Ack reliability (extended discussion)
		[different from ISAKMP]

		wording about optimistic create, pessimistic delete needed 

		wording about consequences of ACK being dropped..

		SA creation: don't want to install outbound SA until
		the other side has inbound installed..

		options: install SA after timeout anyway?

			initiate back?

			tero/sommerfeld: retransmit both msg 1 and msg 2
			
			sommerfeld: both ends retransmitting leads to
			risk of sorceror's apprentice problem, but
			exchange is short..
			
		extended discussion ensued regarding 2 vs. 3 msg
		exchanges for create..
			
		no problem with 2-msg exchange for anything
		other than CREATE..

		several alternatives discussed for CREATE..
		
		- for CREATE, if short circuit, skip ack.
			(short-circuit == responder picked
			first choice and did not add a nonce)
			(no consensus for/against)

		- for CREATE, w/o short circuit (responder
		injects nonce or picks something other than
		the first proposal).
			unanimous: always send ACK..

	suggestions (no consensus):

		always require server to supply nonce data?
		tradeoff (always forces 3 message exchange, but avoids 
		a config knob..)

		add verbiage to the draft ("if you have a bad RNG on
		the initiator, a good RNG on the responder won't save
		you..")

	2 message exchange as worthy goal??
		(sense of WG: leaning towards yes, but not clear)

	some discussion of acks vs dead peer detection and loss of
		synchronization..

	some discussion of whether ack is actually necessary..
		seems to be down to "nuke it" vs "need to think about it.."

	need more verbiage in documents on when to install SA's.

open discussion?

	nothing more..

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available


From owner-ietf-kink@mail.vpnc.org  Sat Aug 25 17:07:09 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA14450
	for <kink-archive@odin.ietf.org>; Sat, 25 Aug 2001 17:07:09 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id f7PL3PJ12346
	for ietf-kink-bks; Sat, 25 Aug 2001 14:03:25 -0700 (PDT)
Received: from sj-msg-core-3.cisco.com (sj-msg-core-3.cisco.com [171.70.157.152])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id f7PL3ND12342
	for <ietf-kink@vpnc.org>; Sat, 25 Aug 2001 14:03:23 -0700 (PDT)
Received: from mira-sjc5-7.cisco.com (mira-sjc5-7.cisco.com [171.71.163.27])
	by sj-msg-core-3.cisco.com (8.11.3/8.9.1) with ESMTP id f7PL1SJ19755
	for <ietf-kink@vpnc.org>; Sat, 25 Aug 2001 14:01:28 -0700 (PDT)
Received: from thomasm-u1.cisco.com (thomasm-u1.cisco.com [128.107.140.53])
	by mira-sjc5-7.cisco.com (Mirapoint)
	with ESMTP id AAJ21406;
	Sat, 25 Aug 2001 14:03:20 -0700 (PDT)
Received: (thomasm@localhost) by thomasm-u1.cisco.com (8.8.8-Cisco List Logging/CISCO.WS.1.2) id OAA21015; Sat, 25 Aug 2001 14:03:20 -0700 (PDT)
From: Michael Thomas <mat@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15240.4760.406579.221374@thomasm-u1.cisco.com>
Date: Sat, 25 Aug 2001 14:03:20 -0700 (PDT)
To: ietf-kink@vpnc.org
Subject: "optmistic" defined
X-Mailer: VM 6.72 under 21.1 (patch 6) "Big Bend" XEmacs Lucid
X-Face: &,heK/V66p?[2!i|tVn,9lN0TUvEv7:9FzXREj/AuzN4m<D]vnFJ>u!4x[/Z4t{V}~L]+Sk
 @RFNnJEg~WZ/(8<`5a),-7ukALWa^&?&D2R0CSG3kO5~#6JxLF\d,g">$%B!0w{W)qIhmwhye104zd
 bUcI'1!
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 7bit



Right now the draft currently defines the
optimistic proposal as the first one. As stated,
that's obviously a little ambiguous since the
first proposal may allow for different transforms
and attributes. At the very least, we need to
define the optimistic proposal as the first
proposal conjugate, and for each proposal within
the conjugate the first transform and its first
attribute if present (for the ESP auth algorithm).

I'm not sure of a couple of things though:

1) There seem to be some other things which can
   also be negotiated like lifetimes, key rounds
   and key length. I'm not quite sure what key
   rounds and key length are intended for, but 
   I'd assume that if there is any possibility
   for negotiation, the first needs to be the
   "optimistic" attribute. I'm not as sure about
   the lifetimes since they really don't effect
   key generation which is really the point of
   the optimistic approach

2) Right now, there seems to be no direct way
   to determine that the receipient chose the
   optimistic payload. This requires a bunch of
   checking on the initiator to see if it chose
   all of the right things for each part of the
   conjugate. This seems like it could be the
   source of interoperability problems. Maybe 
   it would be better to have an explicit means of
   stating categorically that the recipient chose
   the optimistic proposal? Or is it sufficient
   to define, as above, what transforms, etc, 
   are pertinent to being optimistic?

		 Mike


From owner-ietf-kink@mail.vpnc.org  Sat Aug 25 17:08:38 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA14464
	for <kink-archive@odin.ietf.org>; Sat, 25 Aug 2001 17:08:37 -0400 (EDT)
Received: by above.proper.com (8.11.6/8.11.3) id f7PL7eP12422
	for ietf-kink-bks; Sat, 25 Aug 2001 14:07:40 -0700 (PDT)
Received: from sj-msg-core-1.cisco.com (sj-msg-core-1.cisco.com [171.71.163.11])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id f7PL7cD12418
	for <ietf-kink@vpnc.org>; Sat, 25 Aug 2001 14:07:38 -0700 (PDT)
Received: from mira-sjc5-7.cisco.com (mira-sjc5-7.cisco.com [171.71.163.27])
	by sj-msg-core-1.cisco.com (8.11.3/8.9.1) with ESMTP id f7PL7aX15046
	for <ietf-kink@vpnc.org>; Sat, 25 Aug 2001 14:07:36 -0700 (PDT)
Received: from thomasm-u1.cisco.com (thomasm-u1.cisco.com [128.107.140.53])
	by mira-sjc5-7.cisco.com (Mirapoint)
	with ESMTP id AAJ21422;
	Sat, 25 Aug 2001 14:07:35 -0700 (PDT)
Received: (thomasm@localhost) by thomasm-u1.cisco.com (8.8.8-Cisco List Logging/CISCO.WS.1.2) id OAA21018; Sat, 25 Aug 2001 14:07:35 -0700 (PDT)
From: Michael Thomas <mat@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15240.5015.414180.811845@thomasm-u1.cisco.com>
Date: Sat, 25 Aug 2001 14:07:35 -0700 (PDT)
To: ietf-kink@vpnc.org
Subject: CREATE on active SPI
X-Mailer: VM 6.72 under 21.1 (patch 6) "Big Bend" XEmacs Lucid
X-Face: &,heK/V66p?[2!i|tVn,9lN0TUvEv7:9FzXREj/AuzN4m<D]vnFJ>u!4x[/Z4t{V}~L]+Sk
 @RFNnJEg~WZ/(8<`5a),-7ukALWa^&?&D2R0CSG3kO5~#6JxLF\d,g">$%B!0w{W)qIhmwhye104zd
 bUcI'1!
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 7bit



Currently the draft is silent on what the receiver
should do if it receives a CREATE for a SPI which
it already has an active SA. My inclination is to
deem this bogus and return an error (probably via
an appropriate ISAKMP notify payload).

Objections?

		Mike


From owner-ietf-kink@mail.vpnc.org  Sat Aug 25 17:18:11 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA14540
	for <kink-archive@odin.ietf.org>; Sat, 25 Aug 2001 17:18:11 -0400 (EDT)
Received: by above.proper.com (8.11.6/8.11.3) id f7PLH9X12713
	for ietf-kink-bks; Sat, 25 Aug 2001 14:17:09 -0700 (PDT)
Received: from sj-msg-core-1.cisco.com (sj-msg-core-1.cisco.com [171.71.163.11])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id f7PLH7D12709
	for <ietf-kink@vpnc.org>; Sat, 25 Aug 2001 14:17:07 -0700 (PDT)
Received: from mira-sjc5-7.cisco.com (mira-sjc5-7.cisco.com [171.71.163.27])
	by sj-msg-core-1.cisco.com (8.11.3/8.9.1) with ESMTP id f7PLH5X16544
	for <ietf-kink@vpnc.org>; Sat, 25 Aug 2001 14:17:05 -0700 (PDT)
Received: from thomasm-u1.cisco.com (thomasm-u1.cisco.com [128.107.140.53])
	by mira-sjc5-7.cisco.com (Mirapoint)
	with ESMTP id AAJ21453;
	Sat, 25 Aug 2001 14:17:04 -0700 (PDT)
Received: (thomasm@localhost) by thomasm-u1.cisco.com (8.8.8-Cisco List Logging/CISCO.WS.1.2) id OAA21022; Sat, 25 Aug 2001 14:17:04 -0700 (PDT)
From: Michael Thomas <mat@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15240.5584.396808.178947@thomasm-u1.cisco.com>
Date: Sat, 25 Aug 2001 14:17:04 -0700 (PDT)
To: ietf-kink@vpnc.org
Subject: multiple SA's per CREATE
X-Mailer: VM 6.72 under 21.1 (patch 6) "Big Bend" XEmacs Lucid
X-Face: &,heK/V66p?[2!i|tVn,9lN0TUvEv7:9FzXREj/AuzN4m<D]vnFJ>u!4x[/Z4t{V}~L]+Sk
 @RFNnJEg~WZ/(8<`5a),-7ukALWa^&?&D2R0CSG3kO5~#6JxLF\d,g">$%B!0w{W)qIhmwhye104zd
 bUcI'1!
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 7bit



Right now, if you want to CREATE multiple SA in the
same message, there's two different ways you can
format the message:

1) Create multiple KINK ISAKMP payloads with the
   normal quick mode payloads inside

2) Take advantage of IKE's ability to have multiple
   different ISAKMP sets of messages in the same
   body

While we could allow for both, I think it would be
better to choose one to keep the complexity down.
I'd generally favor (1) because it provides the
additional benefit of "bracketing" each of the
SA's... something that's a little hazy with IKE
right now (I'm not even sure that this is a well
implemented/tested feature). It would also provide
a well-defined means of allowing per SA
notifications to be able to report errors which
are specific to the SA which had trouble.

Or... we could just deem all multi-SA commands
bogus :-)

	Mike


From owner-ietf-kink@mail.vpnc.org  Sat Aug 25 18:55:01 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA15007
	for <kink-archive@odin.ietf.org>; Sat, 25 Aug 2001 18:55:01 -0400 (EDT)
Received: by above.proper.com (8.11.6/8.11.3) id f7PMrvw14500
	for ietf-kink-bks; Sat, 25 Aug 2001 15:53:57 -0700 (PDT)
Received: from mail1.cisco.com (mail1.cisco.com [171.68.225.60])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id f7PMrtD14496
	for <ietf-kink@vpnc.org>; Sat, 25 Aug 2001 15:53:55 -0700 (PDT)
Received: from localhost (ssh-sj1.cisco.com [171.68.225.134]) by mail1.cisco.com (8.8.6 (PHNE_14041)/CISCO.SERVER.1.2) with ESMTP id PAA10670; Sat, 25 Aug 2001 15:53:53 -0700 (PDT)
Date: Sat, 25 Aug 2001 15:53:36 -0700 (PDT)
From: Jan Vilhuber <vilhuber@cisco.com>
X-Sender: vilhuber@localhost
To: Michael Thomas <mat@cisco.com>
cc: ietf-kink@vpnc.org
Subject: Re: CREATE on active SPI
In-Reply-To: <15240.5015.414180.811845@thomasm-u1.cisco.com>
Message-ID: <Pine.LNX.4.21.0108251548150.1511-100000@localhost>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>


On Sat, 25 Aug 2001, Michael Thomas wrote:

> 
> 
> Currently the draft is silent on what the receiver
> should do if it receives a CREATE for a SPI which
> it already has an active SA. My inclination is to
> deem this bogus and return an error (probably via
> an appropriate ISAKMP notify payload).
> 
It could be that the remote rebooted, and just happened to pick the exact
same SPI it had before reboot (not all THAT unlikely if you have a bad RNG),
So I'd venture the opinio that a CREATE for a SPI we already have should
result in the deletion of the existing one, and a creation of a new SPI..

Of course it could be a retransmission that took a bad turn on the internet
somewhere (and was routed through pakistan or something). Can KINK detect
retransmission without actually decrypting the packet? If so (say via a
sha-hash of the original packet; that's how I detect retransmissions in IOS's
IKE implementation), we can drop retransmissions very fast, and if we STILL
get a create for a SPI you already have it MUST be a different request (since
a retransmission would have been detected via sha-hash)...

Unless you want to include the concept of an INITIAL_CONTACT as in IKE...

jan
 --
Jan Vilhuber                                            vilhuber@cisco.com
Cisco Systems, San Jose                                     (408) 527-0847



From owner-ietf-kink@mail.vpnc.org  Sat Aug 25 18:56:17 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA15020
	for <kink-archive@odin.ietf.org>; Sat, 25 Aug 2001 18:56:16 -0400 (EDT)
Received: by above.proper.com (8.11.6/8.11.3) id f7PMtZt14529
	for ietf-kink-bks; Sat, 25 Aug 2001 15:55:35 -0700 (PDT)
Received: from mail1.cisco.com (mail1.cisco.com [171.68.225.60])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id f7PMtYD14525
	for <ietf-kink@vpnc.org>; Sat, 25 Aug 2001 15:55:34 -0700 (PDT)
Received: from localhost (ssh-sj1.cisco.com [171.68.225.134]) by mail1.cisco.com (8.8.6 (PHNE_14041)/CISCO.SERVER.1.2) with ESMTP id PAA10915; Sat, 25 Aug 2001 15:55:32 -0700 (PDT)
Date: Sat, 25 Aug 2001 15:55:14 -0700 (PDT)
From: Jan Vilhuber <vilhuber@cisco.com>
X-Sender: vilhuber@localhost
To: Michael Thomas <mat@cisco.com>
cc: ietf-kink@vpnc.org
Subject: Re: multiple SA's per CREATE
In-Reply-To: <15240.5584.396808.178947@thomasm-u1.cisco.com>
Message-ID: <Pine.LNX.4.21.0108251554290.1511-100000@localhost>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>


On Sat, 25 Aug 2001, Michael Thomas wrote:

> 
> 
> Right now, if you want to CREATE multiple SA in the
> same message, there's two different ways you can
> format the message:
> 
> 1) Create multiple KINK ISAKMP payloads with the
>    normal quick mode payloads inside
> 
> 2) Take advantage of IKE's ability to have multiple
>    different ISAKMP sets of messages in the same
>    body
> 
> While we could allow for both, I think it would be
> better to choose one to keep the complexity down.
> I'd generally favor (1) because it provides the
> additional benefit of "bracketing" each of the
> SA's... something that's a little hazy with IKE
> right now (I'm not even sure that this is a well
> implemented/tested feature). It would also provide
> a well-defined means of allowing per SA
> notifications to be able to report errors which
> are specific to the SA which had trouble.
> 
I concur that 1 sounds reasonable.

jan


> Or... we could just deem all multi-SA commands
> bogus :-)
> 
> 	Mike
> 

 --
Jan Vilhuber                                            vilhuber@cisco.com
Cisco Systems, San Jose                                     (408) 527-0847



From owner-ietf-kink@mail.vpnc.org  Sun Aug 26 19:09:30 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA16391
	for <kink-archive@odin.ietf.org>; Sun, 26 Aug 2001 19:09:30 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id f7QN5ir15427
	for ietf-kink-bks; Sun, 26 Aug 2001 16:05:44 -0700 (PDT)
Received: from fw.hel.fi.ssh.com (fw.hel.fi.ssh.com [193.64.193.124])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id f7QN5YD15420
	for <ietf-kink@vpnc.org>; Sun, 26 Aug 2001 16:05:42 -0700 (PDT)
Received: from viikuna.hel.fi.ssh.com (viikuna.hel.fi.ssh.com [10.1.0.46])
	by fw.hel.fi.ssh.com (SSH-1.27) with SMTP id f7QN5af00824
	for <ietf-kink@vpnc.org>; Mon, 27 Aug 2001 02:05:36 +0300 (EEST)
Received: (qmail 18419 invoked from network); 26 Aug 2001 23:05:36 -0000
Received: from unknown (HELO ryijy.hel.fi.ssh.com) ([10.1.0.48]) (envelope-sender <kivinen@ssh.fi>)
          by viikuna.hel.fi.ssh.com (qmail-ldap-1.03) with SMTP
          for <mat@cisco.com>; 26 Aug 2001 23:05:36 -0000
Received: (from kivinen@localhost)
	by ryijy.hel.fi.ssh.com (8.11.0/8.11.0) id f7QN5gE00696;
	Mon, 27 Aug 2001 02:05:42 +0300 (EEST)
Date: Mon, 27 Aug 2001 02:05:42 +0300 (EEST)
Message-Id: <200108262305.f7QN5gE00696@ryijy.hel.fi.ssh.com>
X-Authentication-Warning: ryijy.hel.fi.ssh.com: kivinen set sender to <kivinen@ssh.fi> using -f
From: Tero Kivinen <kivinen@ssh.fi>
To: ietf-kink@vpnc.org
CC: mat@cisco.com (Michael Thomas)
Subject: Re: "optmistic" defined
References: <15240.4760.406579.221374@thomasm-u1.cisco.com>
Organization: SSH Communications Security Oy
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="iso-8859-1"
X-Edit-Time: 8 min
X-Total-Time: 7 min
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 8bit


mat@cisco.com (Michael Thomas) writes:
> Right now the draft currently defines the
> optimistic proposal as the first one. As stated,
> that's obviously a little ambiguous since the
> first proposal may allow for different transforms
> and attributes. At the very least, we need to
> define the optimistic proposal as the first
> proposal conjugate, and for each proposal within
> the conjugate the first transform and its first
> attribute if present (for the ESP auth algorithm).

I think it is easier to remove the whole text about the optimistic
stuff, and make the negotiation always 2 packets (or 3 or 4 depending
what people decide). The Secure Shell protocol has similar optimistic
assumption and it has caused some problems in exactly same place, i.e
how to define if we actually selected the the optimistic approach or
not, does the parameters which do not affect the actual key
negotiation nullify the otherwise optimistic selection (i.e if there
are two proposals otherwise identical, but the other end selects
proposal that has life time of 3600 seconds instead of 86400 seconds).

I myself think that the gain from the optimistic approac is close to
zero, and the implementations are much easier if we do not add that
there.

Also the most common set (== best optimistic protocol suite) and the
preferred protocol suite are not necessarely same. For example the
most common protocol suite might be DES+MD5, but we might want to
propose 3DES+MD5 as our first choice (i.e the most preferred protocol
suite) instead of DES, because we think DES should be deprecated... Or
replace DES with 3DES and 3DES with AES to get up to date example.

Anyways the 3DES is going to be more common than AES for some time,
thus if we want to make use of the optimistic approach then we should
propose it first. On the other hand if we have hardware accelerator
for AES but not for 3DES, or if we otherwise just want to use faster
algorithm the preferred algorithm would be AES. 
-- 
kivinen@ssh.fi
SSH Communications Security                  http://www.ssh.fi/
SSH IPSEC Toolkit                            http://www.ssh.fi/ipsec/


From owner-ietf-kink@mail.vpnc.org  Sun Aug 26 20:31:31 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA16829
	for <kink-archive@odin.ietf.org>; Sun, 26 Aug 2001 20:31:30 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id f7R0Tko16642
	for ietf-kink-bks; Sun, 26 Aug 2001 17:29:46 -0700 (PDT)
Received: from sj-msg-core-1.cisco.com (sj-msg-core-1.cisco.com [171.71.163.11])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id f7R0TjD16638
	for <ietf-kink@vpnc.org>; Sun, 26 Aug 2001 17:29:45 -0700 (PDT)
Received: from mira-sjc5-7.cisco.com (mira-sjc5-7.cisco.com [171.71.163.27])
	by sj-msg-core-1.cisco.com (8.11.3/8.9.1) with ESMTP id f7R0TaX12570;
	Sun, 26 Aug 2001 17:29:36 -0700 (PDT)
Received: from thomasm-u1.cisco.com (thomasm-u1.cisco.com [128.107.140.53])
	by mira-sjc5-7.cisco.com (Mirapoint)
	with ESMTP id AAJ25251;
	Sun, 26 Aug 2001 17:29:34 -0700 (PDT)
Received: (thomasm@localhost) by thomasm-u1.cisco.com (8.8.8-Cisco List Logging/CISCO.WS.1.2) id RAA21286; Sun, 26 Aug 2001 17:29:34 -0700 (PDT)
From: Michael Thomas <mat@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15241.37998.251319.108961@thomasm-u1.cisco.com>
Date: Sun, 26 Aug 2001 17:29:34 -0700 (PDT)
To: Tero Kivinen <kivinen@ssh.fi>
Cc: ietf-kink@vpnc.org, mat@cisco.com (Michael Thomas)
Subject: Re: "optmistic" defined
In-Reply-To: <200108262305.f7QN5gE00696@ryijy.hel.fi.ssh.com>
References: <15240.4760.406579.221374@thomasm-u1.cisco.com>
	<200108262305.f7QN5gE00696@ryijy.hel.fi.ssh.com>
X-Mailer: VM 6.72 under 21.1 (patch 6) "Big Bend" XEmacs Lucid
X-Face: &,heK/V66p?[2!i|tVn,9lN0TUvEv7:9FzXREj/AuzN4m<D]vnFJ>u!4x[/Z4t{V}~L]+Sk
 @RFNnJEg~WZ/(8<`5a),-7ukALWa^&?&D2R0CSG3kO5~#6JxLF\d,g">$%B!0w{W)qIhmwhye104zd
 bUcI'1!
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 7bit


Tero Kivinen writes:
 > mat@cisco.com (Michael Thomas) writes:
 > > Right now the draft currently defines the
 > > optimistic proposal as the first one. As stated,
 > > that's obviously a little ambiguous since the
 > > first proposal may allow for different transforms
 > > and attributes. At the very least, we need to
 > > define the optimistic proposal as the first
 > > proposal conjugate, and for each proposal within
 > > the conjugate the first transform and its first
 > > attribute if present (for the ESP auth algorithm).
 > 
 > I think it is easier to remove the whole text about the optimistic
 > stuff, and make the negotiation always 2 packets 

   There is nothing difficult about it. It just needs well
   defined rules. Also: there is no reason to not install
   the SA initially so that it is guaranteed that if the
   optimistic proposal is chosen, there won't be a race.

 > The Secure Shell protocol has similar optimistic
 > assumption and it has caused some problems in exactly same place, i.e
 > how to define if we actually selected the the optimistic approach or
 > not, does the parameters which do not affect the actual key
 > negotiation nullify the otherwise optimistic selection (i.e if there
 > are two proposals otherwise identical, but the other end selects
 > proposal that has life time of 3600 seconds instead of 86400 seconds).

   If it is clear in the draft, then this shouldn't be 
   a problem. I implemented this on Friday and it seems
   to amount to checking that the transform, auth algorithm
   (for ESP) and encapsulation are the same, and perhaps
   the key length and key rounds. For IPCOMP it probably
   needs to also account for dictionary size and compression
   private algorithm. 

 > I myself think that the gain from the optimistic approac is close to
 > zero, and the implementations are much easier if we do not add that
 > there.

   It saves a message, and provides reliability for the
   respondent instead of a race condition. That's hardly
   "zero".

 > Also the most common set (== best optimistic protocol suite) and the
 > preferred protocol suite are not necessarely same. For example the
 > most common protocol suite might be DES+MD5, but we might want to
 > propose 3DES+MD5 as our first choice (i.e the most preferred protocol
 > suite) instead of DES, because we think DES should be deprecated... Or
 > replace DES with 3DES and 3DES with AES to get up to date example.

   This is a tradeoff that the implementation can make
   by policy. If you really, really want to use an
   uncommon transform because, say, you have hardware
   assist, then it's probably worthwhile to not choose
   the optmistic payload. Beyond that, as Dan pointed out
   on the IPsec list, in real life, it's pretty common
   that you're going to get agreement because of configuration,
   or specs which require a profile (ie, you MUST
   use 3-DES, etc). We really should take advantage of
   the common case.

 > Anyways the 3DES is going to be more common than AES for some time,
 > thus if we want to make use of the optimistic approach then we should
 > propose it first. On the other hand if we have hardware accelerator
 > for AES but not for 3DES, or if we otherwise just want to use faster
 > algorithm the preferred algorithm would be AES. 

   I don't think there's a reason why KINK
   should say anything about this. It doesn't
   harm interoperability to say nothing, and 
   saves us from trying to figure out which 
   one to bet on... I'd just assume not go there.

       Mike


From owner-ietf-kink@mail.vpnc.org  Mon Aug 27 17:30:11 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA01179
	for <kink-archive@odin.ietf.org>; Mon, 27 Aug 2001 17:30:10 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id f7RLRxa27826
	for ietf-kink-bks; Mon, 27 Aug 2001 14:27:59 -0700 (PDT)
Received: from fw.hel.fi.ssh.com (fw.hel.fi.ssh.com [193.64.193.124])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id f7RLRuD27822
	for <ietf-kink@vpnc.org>; Mon, 27 Aug 2001 14:27:56 -0700 (PDT)
Received: from viikuna.hel.fi.ssh.com (viikuna.hel.fi.ssh.com [10.1.0.46])
	by fw.hel.fi.ssh.com (SSH-1.27) with SMTP id f7RLRwf25634
	for <ietf-kink@vpnc.org>; Tue, 28 Aug 2001 00:27:58 +0300 (EEST)
Received: (qmail 19080 invoked from network); 27 Aug 2001 21:27:58 -0000
Received: from unknown (HELO ryijy.hel.fi.ssh.com) ([10.1.0.48]) (envelope-sender <kivinen@ssh.fi>)
          by viikuna.hel.fi.ssh.com (qmail-ldap-1.03) with SMTP
          for <ietf-kink@vpnc.org>; 27 Aug 2001 21:27:58 -0000
Received: (from kivinen@localhost)
	by ryijy.hel.fi.ssh.com (8.11.0/8.11.0) id f7RLS3d04012;
	Tue, 28 Aug 2001 00:28:03 +0300 (EEST)
X-Authentication-Warning: ryijy.hel.fi.ssh.com: kivinen set sender to <kivinen@ssh.fi> using -f
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15242.47971.240014.93323@ryijy.hel.fi.ssh.com>
Date: Tue, 28 Aug 2001 00:28:03 +0300
From: Tero Kivinen <kivinen@ssh.fi>
To: Michael Thomas <mat@cisco.com>
Cc: ietf-kink@vpnc.org
Subject: Re: "optmistic" defined
In-Reply-To: <15241.37998.251319.108961@thomasm-u1.cisco.com>
References: <15240.4760.406579.221374@thomasm-u1.cisco.com>
	<200108262305.f7QN5gE00696@ryijy.hel.fi.ssh.com>
	<15241.37998.251319.108961@thomasm-u1.cisco.com>
X-Mailer: VM 6.89 under Emacs 20.7.1
Organization: SSH Communications Security Oy
X-Edit-Time: 6 min
X-Total-Time: 5 min
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 7bit


Michael Thomas writes:
>  > I myself think that the gain from the optimistic approac is close to
>  > zero, and the implementations are much easier if we do not add that
>  > there.
>    It saves a message, and provides reliability for the
>    respondent instead of a race condition. That's hardly
>    "zero".

It does not save a message unless you want to send extra message.
There is nothing that prevents you doing the negotiation in 2 packets
in all times. I don't understand why people insist that if we do not
use optimistic approach then we must make the exchange to 3 or 4
packets. The handling can be exactly same regardless whether we used
optimistic or non optimistic except that the initiator installs the SA
only after he receives the reply from the responder. The responder
does exactly same (i.e installs the SA when sending the reply).

If you inisist that you want to have extra packet in case we are not
using optimistic approach, then you save one extra packet (which can
be interleaved with the normal data flow anyways, so it just saves
extra packet, not extra round trip or even half a round trip), but if
you do not want to have that extra packet then it saves you nothing.
-- 
kivinen@ssh.fi
SSH Communications Security                  http://www.ssh.fi/
SSH IPSEC Toolkit                            http://www.ssh.fi/ipsec/


From owner-ietf-kink@mail.vpnc.org  Mon Aug 27 17:37:17 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA01338
	for <kink-archive@odin.ietf.org>; Mon, 27 Aug 2001 17:37:17 -0400 (EDT)
Received: by above.proper.com (8.11.6/8.11.3) id f7RLZlc27945
	for ietf-kink-bks; Mon, 27 Aug 2001 14:35:47 -0700 (PDT)
Received: from sj-msg-core-1.cisco.com (sj-msg-core-1.cisco.com [171.71.163.11])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id f7RLZkD27941
	for <ietf-kink@vpnc.org>; Mon, 27 Aug 2001 14:35:46 -0700 (PDT)
Received: from mira-sjc5-7.cisco.com (mira-sjc5-7.cisco.com [171.71.163.27])
	by sj-msg-core-1.cisco.com (8.11.3/8.9.1) with ESMTP id f7RLZaX05382;
	Mon, 27 Aug 2001 14:35:36 -0700 (PDT)
Received: from thomasm-u1.cisco.com (thomasm-u1.cisco.com [128.107.140.53])
	by mira-sjc5-7.cisco.com (Mirapoint)
	with ESMTP id AAM05507;
	Mon, 27 Aug 2001 14:35:18 -0700 (PDT)
Received: (thomasm@localhost) by thomasm-u1.cisco.com (8.8.8-Cisco List Logging/CISCO.WS.1.2) id OAA21612; Mon, 27 Aug 2001 14:35:17 -0700 (PDT)
From: Michael Thomas <mat@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15242.48405.493383.653660@thomasm-u1.cisco.com>
Date: Mon, 27 Aug 2001 14:35:17 -0700 (PDT)
To: Tero Kivinen <kivinen@ssh.fi>
Cc: Michael Thomas <mat@cisco.com>, ietf-kink@vpnc.org
Subject: Re: "optmistic" defined
In-Reply-To: <15242.47971.240014.93323@ryijy.hel.fi.ssh.com>
References: <15240.4760.406579.221374@thomasm-u1.cisco.com>
	<200108262305.f7QN5gE00696@ryijy.hel.fi.ssh.com>
	<15241.37998.251319.108961@thomasm-u1.cisco.com>
	<15242.47971.240014.93323@ryijy.hel.fi.ssh.com>
X-Mailer: VM 6.72 under 21.1 (patch 6) "Big Bend" XEmacs Lucid
X-Face: &,heK/V66p?[2!i|tVn,9lN0TUvEv7:9FzXREj/AuzN4m<D]vnFJ>u!4x[/Z4t{V}~L]+Sk
 @RFNnJEg~WZ/(8<`5a),-7ukALWa^&?&D2R0CSG3kO5~#6JxLF\d,g">$%B!0w{W)qIhmwhye104zd
 bUcI'1!
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 7bit


Tero Kivinen writes:
 > Michael Thomas writes:
 > >  > I myself think that the gain from the optimistic approac is close to
 > >  > zero, and the implementations are much easier if we do not add that
 > >  > there.
 > >    It saves a message, and provides reliability for the
 > >    respondent instead of a race condition. That's hardly
 > >    "zero".
 > 
 > It does not save a message unless you want to send extra message.
 > There is nothing that prevents you doing the negotiation in 2 packets
 > in all times. I don't understand why people insist that if we do not
 > use optimistic approach then we must make the exchange to 3 or 4
 > packets. The handling can be exactly same regardless whether we used
 > optimistic or non optimistic except that the initiator installs the SA
 > only after he receives the reply from the responder. The responder
 > does exactly same (i.e installs the SA when sending the reply).

All I can say is read the draft. There's a race
condition if the non-optimistic proposal is picked
and the first packet sent by the respondent. How
often the race condition fails is irrelevant as
to whether it's present.

 > If you inisist that you want to have extra packet in case we are not
 > using optimistic approach, then you save one extra packet (which can
 > be interleaved with the normal data flow anyways, so it just saves
 > extra packet, not extra round trip or even half a round trip), but if
 > you do not want to have that extra packet then it saves you nothing.

One of the use scenarios is small devices on
bandwidth constrained links -- like, oh say, cell
phones. A third message requires a message of
about 200-500 bytes because of the kerberos
overhead. If we don't need to send it (along with
the unpleasant need to start a timer on the reply
message), the protocol is a lot more compact on
all fronts.

	Mike


From owner-ietf-kink@mail.vpnc.org  Mon Aug 27 17:55:47 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA01675
	for <kink-archive@odin.ietf.org>; Mon, 27 Aug 2001 17:55:46 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id f7RLrSG28224
	for ietf-kink-bks; Mon, 27 Aug 2001 14:53:28 -0700 (PDT)
Received: from fw.hel.fi.ssh.com (fw.hel.fi.ssh.com [193.64.193.124])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id f7RLrPD28220
	for <ietf-kink@vpnc.org>; Mon, 27 Aug 2001 14:53:26 -0700 (PDT)
Received: from viikuna.hel.fi.ssh.com (viikuna.hel.fi.ssh.com [10.1.0.46])
	by fw.hel.fi.ssh.com (SSH-1.27) with SMTP id f7RLrSf26059
	for <ietf-kink@vpnc.org>; Tue, 28 Aug 2001 00:53:28 +0300 (EEST)
Received: (qmail 22241 invoked from network); 27 Aug 2001 21:53:27 -0000
Received: from unknown (HELO ryijy.hel.fi.ssh.com) ([10.1.0.48]) (envelope-sender <kivinen@ssh.fi>)
          by viikuna.hel.fi.ssh.com (qmail-ldap-1.03) with SMTP
          for <ietf-kink@vpnc.org>; 27 Aug 2001 21:53:27 -0000
Received: (from kivinen@localhost)
	by ryijy.hel.fi.ssh.com (8.11.0/8.11.0) id f7RLrXY04034;
	Tue, 28 Aug 2001 00:53:33 +0300 (EEST)
X-Authentication-Warning: ryijy.hel.fi.ssh.com: kivinen set sender to <kivinen@ssh.fi> using -f
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15242.49501.376736.125401@ryijy.hel.fi.ssh.com>
Date: Tue, 28 Aug 2001 00:53:33 +0300
From: Tero Kivinen <kivinen@ssh.fi>
To: Michael Thomas <mat@cisco.com>
Cc: ietf-kink@vpnc.org
Subject: Re: "optmistic" defined
In-Reply-To: <15242.48405.493383.653660@thomasm-u1.cisco.com>
References: <15240.4760.406579.221374@thomasm-u1.cisco.com>
	<200108262305.f7QN5gE00696@ryijy.hel.fi.ssh.com>
	<15241.37998.251319.108961@thomasm-u1.cisco.com>
	<15242.47971.240014.93323@ryijy.hel.fi.ssh.com>
	<15242.48405.493383.653660@thomasm-u1.cisco.com>
X-Mailer: VM 6.89 under Emacs 20.7.1
Organization: SSH Communications Security Oy
X-Edit-Time: 12 min
X-Total-Time: 11 min
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 7bit


Michael Thomas writes:
>  > It does not save a message unless you want to send extra message.
>  > There is nothing that prevents you doing the negotiation in 2 packets
>  > in all times. I don't understand why people insist that if we do not
>  > use optimistic approach then we must make the exchange to 3 or 4
>  > packets. The handling can be exactly same regardless whether we used
>  > optimistic or non optimistic except that the initiator installs the SA
>  > only after he receives the reply from the responder. The responder
>  > does exactly same (i.e installs the SA when sending the reply).
> All I can say is read the draft. There's a race
> condition if the non-optimistic proposal is picked
> and the first packet sent by the respondent. How
> often the race condition fails is irrelevant as
> to whether it's present.

The same race condition is also in the IKE but there it is much worse,
and most of the people do not care it less (== i.e they do not use
commit bit). Some of the IPsec implementations already have fix for
this (mostly for IKE), i.e they have small queue for incoming unknown
ESP packets (or actually known SPI, but which do not yet have keying
material).

BTW I don not think it is irrelevant how often it occurs, as if the
change is small enough then we can safely say that ok, we loose few
first packets in that case. The race condition can only cause
initiator to loose first few packets if it does not have the queue, it
cannot do anything serious.

If I remember correctly somebody also complained that they cannot do
the optimistic apporoac, because they cannot change they keying
material after the SA is installed, thus there must be some way to
disable the optimistic approach. I.e we need yet another knob there to
turn off optimistic approach, and that causes even more complex
protocol.

>  > If you inisist that you want to have extra packet in case we are not
>  > using optimistic approach, then you save one extra packet (which can
>  > be interleaved with the normal data flow anyways, so it just saves
>  > extra packet, not extra round trip or even half a round trip), but if
>  > you do not want to have that extra packet then it saves you nothing.
> One of the use scenarios is small devices on
> bandwidth constrained links -- like, oh say, cell
> phones. A third message requires a message of
> about 200-500 bytes because of the kerberos
> overhead. If we don't need to send it (along with
> the unpleasant need to start a timer on the reply
> message), the protocol is a lot more compact on
> all fronts.

Thats why I was saying that do not send that third packet ever, and
always to two packets without any optimistic stuff, just install the
SAs in the responder when the first packet comes in, and install the
SAs in initiator when the responders reply comes in and everything is
done. Compact, simple, easy protocol without too mant moving parts
that can/will have bugs.
-- 
kivinen@ssh.fi
SSH Communications Security                  http://www.ssh.fi/
SSH IPSEC Toolkit                            http://www.ssh.fi/ipsec/


From owner-ietf-kink@mail.vpnc.org  Mon Aug 27 20:35:11 2001
Received: from above.proper.com (above.proper.com [208.184.76.39])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA05119
	for <kink-archive@odin.ietf.org>; Mon, 27 Aug 2001 20:35:10 -0400 (EDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id f7S0VrQ01398
	for ietf-kink-bks; Mon, 27 Aug 2001 17:31:53 -0700 (PDT)
Received: from sj-msg-core-3.cisco.com (sj-msg-core-3.cisco.com [171.70.157.152])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id f7S0VqD01390
	for <ietf-kink@vpnc.org>; Mon, 27 Aug 2001 17:31:52 -0700 (PDT)
Received: from mira-sjc5-7.cisco.com (mira-sjc5-7.cisco.com [171.71.163.27])
	by sj-msg-core-3.cisco.com (8.11.3/8.9.1) with ESMTP id f7S0TgV14845;
	Mon, 27 Aug 2001 17:29:42 -0700 (PDT)
Received: from thomasm-u1.cisco.com (thomasm-u1.cisco.com [128.107.140.53])
	by mira-sjc5-7.cisco.com (Mirapoint)
	with ESMTP id AAO01284;
	Mon, 27 Aug 2001 17:31:34 -0700 (PDT)
Received: (thomasm@localhost) by thomasm-u1.cisco.com (8.8.8-Cisco List Logging/CISCO.WS.1.2) id RAA21633; Mon, 27 Aug 2001 17:31:33 -0700 (PDT)
From: Michael Thomas <mat@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15242.58981.828071.835510@thomasm-u1.cisco.com>
Date: Mon, 27 Aug 2001 17:31:33 -0700 (PDT)
To: Tero Kivinen <kivinen@ssh.fi>
Cc: Michael Thomas <mat@cisco.com>, ietf-kink@vpnc.org
Subject: Re: "optmistic" defined
In-Reply-To: <15242.49501.376736.125401@ryijy.hel.fi.ssh.com>
References: <15240.4760.406579.221374@thomasm-u1.cisco.com>
	<200108262305.f7QN5gE00696@ryijy.hel.fi.ssh.com>
	<15241.37998.251319.108961@thomasm-u1.cisco.com>
	<15242.47971.240014.93323@ryijy.hel.fi.ssh.com>
	<15242.48405.493383.653660@thomasm-u1.cisco.com>
	<15242.49501.376736.125401@ryijy.hel.fi.ssh.com>
X-Mailer: VM 6.72 under 21.1 (patch 6) "Big Bend" XEmacs Lucid
X-Face: &,heK/V66p?[2!i|tVn,9lN0TUvEv7:9FzXREj/AuzN4m<D]vnFJ>u!4x[/Z4t{V}~L]+Sk
 @RFNnJEg~WZ/(8<`5a),-7ukALWa^&?&D2R0CSG3kO5~#6JxLF\d,g">$%B!0w{W)qIhmwhye104zd
 bUcI'1!
Sender: owner-ietf-kink@mail.vpnc.org
Precedence: bulk
List-Archive: <http://www.vpnc.org/ietf-kink/mail-archive/>
List-Unsubscribe: <mailto:ietf-kink-request@vpnc.org?body=unsubscribe>
List-ID: <ietf-kink.vpnc.org>
Content-Transfer-Encoding: 7bit


Tero Kivinen writes:
 > The same race condition is also in the IKE but there it is much worse,
 > and most of the people do not care it less (== i.e they do not use
 > commit bit). Some of the IPsec implementations already have fix for
 > this (mostly for IKE), i.e they have small queue for incoming unknown
 > ESP packets (or actually known SPI, but which do not yet have keying
 > material).

   By all means, let's faithfully reproduce IKE, bug for bug.

 > If I remember correctly somebody also complained that they cannot do
 > the optimistic apporoac, because they cannot change they keying
 > material after the SA is installed, thus there must be some way to
 > disable the optimistic approach. I.e we need yet another knob there to
 > turn off optimistic approach, and that causes even more complex
 > protocol.

   I would like more substantiation of this than an
   off the cuff comment. I would find it remarkable
   that a piece of hardware cannot be told to delete
   a currently existing SA and add another SA which
   just happens to have the same SPI as the previous.
   Indeed, I would imagine that such a piece of hardware
   is not complient with with RFC 2401 since there is
   no hysteresis with SPI's in the SADB that I'm aware of.

 > Thats why I was saying that do not send that third packet ever, and
 > always to two packets without any optimistic stuff, just install the
 > SAs in the responder when the first packet comes in, and install the
 > SAs in initiator when the responders reply comes in and everything is
 > done. 

   This has a built in race condition. 

 > Compact, simple, easy protocol without too mant moving parts
 > that can/will have bugs.

   I just implemented this. It was trivial, and I'm not that
   familiar with the freeswan code, or IKE for that matter.
   Besides gaining "simplicity" at the cost of incorrect
   behavior is not a very good design practice. 

	    Mike


