Re: IPCOMP and IPSEC

Daniel Harkins <dharkins@cisco.com> Thu, 28 May 1998 19:28 UTC

Received: (from majordom@localhost) by portal.ex.tis.com (8.8.2/8.8.2) id PAA29888 for ipsec-outgoing; Thu, 28 May 1998 15:28:42 -0400 (EDT)
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>
Sender: owner-ipsec@ex.tis.com
Precedence: bulk

  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.