Re: [IPsec] diet-esp - How do you know?

Daniel Migault <mglt.ietf@gmail.com> Wed, 25 May 2022 14:06 UTC

Return-Path: <mglt.ietf@gmail.com>
X-Original-To: ipsec@ietfa.amsl.com
Delivered-To: ipsec@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 23A53C1D5AC2 for <ipsec@ietfa.amsl.com>; Wed, 25 May 2022 07:06:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.095
X-Spam-Level:
X-Spam-Status: No, score=-2.095 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jq-oY18x7rYH for <ipsec@ietfa.amsl.com>; Wed, 25 May 2022 07:06:10 -0700 (PDT)
Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4E075C1D5ABF for <ipsec@ietf.org>; Wed, 25 May 2022 07:06:10 -0700 (PDT)
Received: by mail-lf1-x132.google.com with SMTP id u23so36210495lfc.1 for <ipsec@ietf.org>; Wed, 25 May 2022 07:06:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VjcF97udT5IwZyhiJhH5FVVQQJaJ71ny759VmxvM//Q=; b=lAJZrIalkb75peCELKvQfwJaE+q20D+//PedYPXZrkSk9FyMXowUEKNbiXdi/A3pYK 5iRN3pz+G/u6jYKQiqnTI5vykLoPbaOsQaq7Eg/3NBEyUJxIaIVW3++BME7GPHWl0lWn zhUx7GMMizgts95K9lzSZV6gqM2LZ4z1fYdrAszfu0Iucg4hfXaYxPAWm571yCuoECkS HC62VyUiUhSg47ftws9IQdLJyxcWppNMlk107OBL0uXJECJ1276BRbI6VLsxT5oivdbd dpMzAy0uvht+XB4wuJhdAZWZ9prz2JAzvp1vdSKZj2IMQ9GH/EWHwZOfWPmMUQDS7h6H X4uA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VjcF97udT5IwZyhiJhH5FVVQQJaJ71ny759VmxvM//Q=; b=2P02RRk8FIahnL8UTDnSB+qZZdifPQ/MtVOxOauL6UP0N8XBWjEw2S341unRCH2Ydm cc9V2lQBy6m5tj83p/69wGKcmw4DmpSPLYGoOyf7DopaWeOsHAwv9BIvqH9NCC+1efze bYuWkJqKnjKGCFkPhLoIyAlCjHvj2WY/CtNJu3sOwALA74bsS4yIBPJehkKGqWNQKbpI PFHXFGQ2GCQWLur7j169+p5JOSW47imzPfmn62AL4YlshKKyaPAmLKeGLDV7b2Iloh8e bBqVwIseYIrek01ZiJLRJOzGo6xxMhkdymK9E2Z+9c5/Q1di0BRCo93heaOwYb6E57Iy IHkw==
X-Gm-Message-State: AOAM531XUJrhIuUxSkGU7oB262qXt5Y1rYHSESEtPnl8ldID7SOf8jjV vUcu8SkWmjIfGKK3x1h67uMLxmqzJp66HTYZlnA/Lttz
X-Google-Smtp-Source: ABdhPJxl1jGEgVzQER31eGI1vlSS3/na8AQo5M2Q7KRALd61aW4jwJdso7qXT8jGADfU7XRiTr8j8dDiL8oDoYtuUJA=
X-Received: by 2002:a05:6512:6cd:b0:477:c615:f36e with SMTP id u13-20020a05651206cd00b00477c615f36emr23272717lff.197.1653487568284; Wed, 25 May 2022 07:06:08 -0700 (PDT)
MIME-Version: 1.0
References: <245277bb-6d70-dbcd-b99e-badc435b9c4d@htt-consult.com> <CAGL5yWa=hjCZD912YJPWM-x_=ChTo=yULk1P5FRfkfB9Db9+Gg@mail.gmail.com> <CADZyTknARDjj=SZmstnBqxo5hJp-NzH09a6cH5Dxj3Zg7VfyAw@mail.gmail.com> <f55061a1-b1af-8ce5-7ecc-8d7ccef0ee03@htt-consult.com> <CADZyTknQSiCrBvdsnjQU8OcTCRhCOBeNW0CC10xhK6cHnD+76g@mail.gmail.com> <bf9499e1-0533-a503-e72b-ddd6ea62835a@htt-consult.com> <CADZyTk=x7WD+e5T+XF2VQuJevz_SexHysgSw=-rYjuOEZxRYEg@mail.gmail.com> <a6841378-c8c7-c9d1-59d1-674490f9e50e@htt-consult.com>
In-Reply-To: <a6841378-c8c7-c9d1-59d1-674490f9e50e@htt-consult.com>
From: Daniel Migault <mglt.ietf@gmail.com>
Date: Wed, 25 May 2022 10:05:56 -0400
Message-ID: <CADZyTkmaNcsj+RxHQHRyzz6n-egDRbi6oabSMfc1as-5otpc0g@mail.gmail.com>
To: Robert Moskowitz <rgm-sec@htt-consult.com>
Cc: Paul Wouters <paul.wouters=40aiven.io@dmarc.ietf.org>, IPsecME WG <ipsec@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000025f7d505dfd69363"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipsec/ZsV_N1njAaFYWmCGAS-d8Hq58XM>
Subject: Re: [IPsec] diet-esp - How do you know?
X-BeenThere: ipsec@ietf.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: Discussion of IPsec protocols <ipsec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipsec>, <mailto:ipsec-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipsec/>
List-Post: <mailto:ipsec@ietf.org>
List-Help: <mailto:ipsec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipsec>, <mailto:ipsec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 25 May 2022 14:06:11 -0000

On Wed, May 25, 2022 at 8:15 AM Robert Moskowitz <rgm-sec@htt-consult.com>
wrote:

>
>
> On 5/24/22 17:26, Daniel Migault wrote:
>
> The IKE negotiation is for diet-esp is currently defined in a specific
> draft:
>
> https://datatracker.ietf.org/doc/draft-mglt-ipsecme-ikev2-diet-esp-extension/
>
>
> I totally missed this draft.  It should at least be referenced in
> ipsecme-diet-esp.
>
 Sure.

>
> I will have to go read it to see if it covers my concerns.
>
>
> I think you are suggesting that the architecture description details what
> is negotiated by IKEv2. Am I correct ?
>
>
> This is an arch doc?  Does not read like one! I was thinking about
> explicit sections on IKE processes.  But now that I know that there is an
> IKE draft, at least referencing it in the intro should cover things.
> Maybe.  ;)
>
> By arch, I meant the description of where in the stack
compression/decompresison occurs. This is summarized in section 4
currently.

>
> Yours,
> Daniel
>
> On Tue, May 24, 2022 at 4:59 PM Robert Moskowitz <rgm-sec@htt-consult.com>
> wrote:
>
>> In My Highly Biased Opinion,,,
>>
>> There should be a section on the IKE negotiation of diet-esp,
>> specifically calling out how this is done.  Especially the incoming SPI
>> selection.
>>
>> Then there should be a section, perhaps sub-section of above, on incoming
>> datagram processing to recognize a shortened SPI on the wire and pass it
>> off to diet-esp processing.
>>
>> I keep thinking back to when we had fun writing 2410 and one implementor
>> did not get the joke and did it wrong and would not interop in null mode
>> with any other product.
>>
>> They were really not happy campers...
>>
>> On 5/24/22 16:47, Daniel Migault wrote:
>>
>> The issue only comes when a gateway wants to support all sizes of SPIs 0
>> - 1 - 2 - 3 - 4 bytes - which is very unlikely. For a deterministic lookup,
>> I would suggest using IP addresses and the minimum allowed byted compressed
>> SPI.
>> If you use 2 - 3 bytes, the likelihood of collision might still be very
>> low to support an additional signature check.
>>
>> Yours,
>> Daniel
>>
>> On Tue, May 24, 2022 at 4:30 PM Robert Moskowitz <rgm-sec@htt-consult.com>
>> wrote:
>>
>>> That is the 'easy' part.
>>>
>>> What does the code do when it receives an ESP packet?  How do it know
>>> that it is a diet-esp packet and apply the rules?
>>>
>>> Next Header just says: ESP.
>>>
>>> On 5/24/22 16:23, Daniel Migault wrote:
>>>
>>> This is correct. IKEv2 is used both to agree on the use of Diet-ESP as
>>> well as values to be used for the compression/decompression.
>>>
>>> Yours,
>>> Daniel
>>>
>>> On Tue, May 24, 2022 at 11:14 AM Paul Wouters <paul.wouters=
>>> 40aiven.io@dmarc.ietf.org> wrote:
>>>
>>>>
>>>> On Sun, May 22, 2022 at 9:20 PM Robert Moskowitz <
>>>> rgm-sec@htt-consult.com> wrote:
>>>>
>>>>> I think there is something else I am missing here.
>>>>>
>>>>> How does the receiving system 'know' that the packet is a diet-esp
>>>>> packet?
>>>>>
>>>>
>>>>
>>>> https://datatracker.ietf.org/doc/html/draft-mglt-ipsecme-ikev2-diet-esp-extension-02
>>>>
>>>> It's negotiated with IKEv2.
>>>>
>>>> I guess the IKE stack has to signal this to the ESP implementation on
>>>> what to expect when
>>>> the policy is installed ?
>>>>
>>>> Paul
>>>>
>>>> _______________________________________________
>>>> IPsec mailing list
>>>> IPsec@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/ipsec
>>>>
>>>
>>>
>>> --
>>> Daniel Migault
>>> Ericsson
>>>
>>> _______________________________________________
>>> IPsec mailing listIPsec@ietf.orghttps://www.ietf.org/mailman/listinfo/ipsec
>>>
>>>
>>>
>>
>> --
>> Daniel Migault
>> Ericsson
>>
>> _______________________________________________
>> IPsec mailing listIPsec@ietf.orghttps://www.ietf.org/mailman/listinfo/ipsec
>>
>>
>>
>
> --
> Daniel Migault
> Ericsson
>
> _______________________________________________
> IPsec mailing listIPsec@ietf.orghttps://www.ietf.org/mailman/listinfo/ipsec
>
>
>

-- 
Daniel Migault
Ericsson