Re: IPCOMP and IPSEC

Daniel Harkins <dharkins@cisco.com> Sat, 30 May 1998 01:40 UTC

Return-Path: dharkins@cisco.com
Received: from hubbub.cisco.com (mailgate-sj-1.cisco.com [198.92.30.31]) by ftp-eng.cisco.com (8.8.5-Cisco.1/8.6.5) with ESMTP id SAA08627 for <ippcp-archive-file@ftp-eng.cisco.com>; Fri, 29 May 1998 18:40:47 -0700 (PDT)
Received: from jindo.cisco.com (jindo.cisco.com [171.69.43.22]) by hubbub.cisco.com (8.8.4-Cisco.1/CISCO.GATE.1.1) with ESMTP id MAA07124 for <ippcp-archive-file@ftp-eng.cisco.com>; Thu, 28 May 1998 12:43:22 -0700 (PDT)
Received: from hubbub.cisco.com (mailgate-sj-1.cisco.com [198.92.30.31]) by jindo.cisco.com (8.8.5-Cisco.2-SunOS.5.5.1.sun4/8.6.5) with ESMTP id MAA16320 for <extdom.ippcp@aliashost.cisco.com>; Thu, 28 May 1998 12:43:17 -0700 (PDT)
Received: from jindo.cisco.com (jindo.cisco.com [171.69.43.22]) by hubbub.cisco.com (8.8.4-Cisco.1/CISCO.GATE.1.1) with ESMTP id MAA07095 for <ippcp@external.cisco.com>; Thu, 28 May 1998 12:43:14 -0700 (PDT)
Received: from dharkins-ss20.cisco.com (dharkins-ss20.cisco.com [171.69.56.149]) by jindo.cisco.com (8.8.5-Cisco.2-SunOS.5.5.1.sun4/8.6.5) with ESMTP id MAA16308; Thu, 28 May 1998 12:43:11 -0700 (PDT)
Received: from localhost.cisco.com (localhost.cisco.com [127.0.0.1]) by dharkins-ss20.cisco.com (8.6.8+c/CISCO.WS.1.1) with SMTP id MAA27813; Thu, 28 May 1998 12:43:10 -0700
Message-Id: <199805281943.MAA27813@dharkins-ss20.cisco.com>
X-Authentication-Warning: dharkins-ss20.cisco.com: Host localhost.cisco.com didn't use HELO protocol
To: mark@mentat.com
Cc: rpereira@TimeStep.com, Stephen.Waters@digital.com, ippcp@external.cisco.com, ipsec@tis.com
Subject: Re: IPCOMP and IPSEC
In-Reply-To: Your message of "Thu, 28 May 1998 12:15:26 PDT." <199805281915.MAA00927@orna.mentat.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 28 May 1998 12:43:10 -0700
From: Daniel Harkins <dharkins@cisco.com>

  Marc,

> Jumping in here....
> 
>  >   Roy,
>  > 
>  >   Actually, I don't think the way you proposed is correct. While IPCOMP
>  > can be applied in either transport or tunnel mode it *has* to be applied
>  > in the same mode as the parallel IPSec SA. The way you proposed has IPCOMP
>  > in transport and IPSec in tunnel. That won't work.
>  > 
>  >   Dan.
> 
> I think Dan's packet format makes sense, for the described scenario of
> a SG that is applying both compression and encryption/tunnelling in one
> step on behalf of a naive host.  (As a side tidbit though, from the
> SG receiver's perspective of your packet Dan, isn't ESP really in
> Transport mode with respect to IPCOMP and its IPCOMP, in turn, thats in
> tunnel mode with a next header of IP?  I don't recall any mention in the
> IPCOMP document of tunnel vs. transport, it seemed to assume that only
> ULPs are its next header payload but I don't see why that has to be.)

I guess you could say that ESP is in transport mode, but what about the
case where both AH and ESP are applied to the same packet:

	[IP2][AH][ESP][IP1][data]

Is AH in transport mode? 

> But isn't Roy's packet format OK for end-hosts that have a Compression
> Association between themselves (configured independently of IKE?) and
> there is an intermediate SG (based on its own policies and key
> negotiation) which is doing the tunnelling/encryption regardless
> whether the inner IP's payload is TCP or IPCOMP?
> 
> I think Dan's scenario one that is likely to be widely deployed but Roy's
> format seems just as "correct" for host-based compression.
 
Roy's would correct if the compression was being done by the host before
passing the packet to the SG, but Stephen (in the original post that started
this all) stated that the original packet received by the SG was:

	 [IP1][TCP][data]

In this case I don't think it's legal for a SG to add anything-- IPSec or
IPCOMP-- in transport mode. 

  Dan.