Re: IP compression of entire datagram

Avram Shacham <shacham@cisco.com> Thu, 03 September 1998 00:45 UTC

Return-Path: shacham@cisco.com
Received: from kickme.cisco.com (kickme.cisco.com [198.92.30.42]) by ftp-eng.cisco.com (8.8.5-Cisco.1/8.6.5) with ESMTP id RAA02676 for <ippcp-archive-file@ftp-eng.cisco.com>; Wed, 2 Sep 1998 17:45:57 -0700 (PDT)
Received: from hubbub.cisco.com (mailgate-sj-1.cisco.com [198.92.30.31]) by kickme.cisco.com (8.9.1a/8.9.1) with ESMTP id RAA15597 for <extdom.ippcp@filter.cisco.com>; Wed, 2 Sep 1998 17:45:44 -0700 (PDT)
Received: from airedale.cisco.com (airedale.cisco.com [171.69.1.135]) by hubbub.cisco.com (8.8.4-Cisco.1/CISCO.GATE.1.1) with SMTP id RAA17926 for <ippcp@external.cisco.com>; Wed, 2 Sep 1998 17:45:13 -0700 (PDT)
Received: from shacham-home-pc-4.cisco.com ([171.69.50.148]) by airedale.cisco.com (8.6.12/8.6.5) with SMTP id RAA29320; Wed, 2 Sep 1998 17:44:38 -0700
Message-Id: <199809030044.RAA29320@airedale.cisco.com>
X-Sender: shacham@airedale.cisco.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0.2
Date: Wed, 02 Sep 1998 17:43:26 -0700
To: Michael Giniger <mginiger@tiac.net>
From: Avram Shacham <shacham@cisco.com>
Subject: Re: IP compression of entire datagram
Cc: ipsec@tis.com, ippcp@external.cisco.com
In-Reply-To: <35ED63E7.37BB7B34@tiac.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

Michael,

At 03:27 PM 9/2/98 +0000, Michael Giniger wrote:
>Hi
>
>I was reading through the IP compression draft and it appears that the
>draft only intends for IP compression to be performed on the payload
>portion of IP packets.  In the case of  IP security gateways that
>operate in tunnel mode, is it correct (and standards compliant) to
>perform IP compression on the entire inner IP datagram instead of just
>the payload portion of the inner IP datagram?

Right, IPComp is applied to the IP payload and in the case of a tunnel the payload does include the inner IP header.

Example #1:
     [IP2][IP1][TCP][data]
becomes
     [IP2][IPCOMP][IP1][TCP][data]
                           ****************** compressed
Example #2:
  [IP2]
    [ESP spi+replay+iv]
      [IPCOMP]
        [IP1]           ** compressed 
        [TCP]         ** compressed
        [data]         ** compressed
      [ESP padding+next protocol+auth]

This subject was discussed on both ipsec and ippcp mailing lists in the past (recently during 5-98), in case you are looking for more information.

Regards,
avram