[IPsec] More comments on draft-mglt-ipsecme-diet-esp-07

Robert Moskowitz <rgm-sec@htt-consult.com> Wed, 11 May 2022 20:48 UTC

Return-Path: <rgm-sec@htt-consult.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 1E6A1C159497 for <ipsec@ietfa.amsl.com>; Wed, 11 May 2022 13:48:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.9
X-Spam-Level:
X-Spam-Status: No, score=-6.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 lbtGBv_UKNzJ for <ipsec@ietfa.amsl.com>; Wed, 11 May 2022 13:48:17 -0700 (PDT)
Received: from z9m9z.htt-consult.com (z9m9z.htt-consult.com [23.123.122.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E25C3C157B5E for <ipsec@ietf.org>; Wed, 11 May 2022 13:48:17 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by z9m9z.htt-consult.com (Postfix) with ESMTP id 7CF8862569 for <ipsec@ietf.org>; Wed, 11 May 2022 16:47:29 -0400 (EDT)
X-Virus-Scanned: amavisd-new at htt-consult.com
Received: from z9m9z.htt-consult.com ([127.0.0.1]) by localhost (z9m9z.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Mt5sOnRs2ubL for <ipsec@ietf.org>; Wed, 11 May 2022 16:47:20 -0400 (EDT)
Received: from [192.168.160.11] (unknown [192.168.160.11]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by z9m9z.htt-consult.com (Postfix) with ESMTPSA id 4AEDD62434 for <ipsec@ietf.org>; Wed, 11 May 2022 16:47:20 -0400 (EDT)
Message-ID: <8a70e8c1-f9c5-9e13-36de-2f5f224400e5@htt-consult.com>
Date: Wed, 11 May 2022 16:48:02 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0
Content-Language: en-US
From: Robert Moskowitz <rgm-sec@htt-consult.com>
To: ipsec@ietf.org
References: <b510dbad-fa37-7591-ebf6-e3af2a31c140@htt-consult.com>
In-Reply-To: <b510dbad-fa37-7591-ebf6-e3af2a31c140@htt-consult.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipsec/UEF9_TLpNR-z-wLAdyzJoRcCd8I>
Subject: [IPsec] More comments on draft-mglt-ipsecme-diet-esp-07
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, 11 May 2022 20:48:20 -0000

Continuing at sec 6.1:

Skipping 6.2 for now, as it will not be used for current use case (I 
realize I may have one for Manned Aircraft).

Good til 7.2, then skipping 7.2 and 7.3 for now.

I like 7.4 in that UDP gets compressed to zero bytes.  And the way you 
have constructed diet-esp to include transport, a separate SCHC rule for 
transport is not needed.  Now if the payload is CoAP, then things will 
be different.  Per the rfc 8824.

Skip 7.5 and 7.6

Sec 11:

    Security Parameter Index (SPI):
       Until Diet-ESP is not deployed outside the scope of IoT and small
       devices,


r/ not / /

?

What is that not doing there?

    Sequence Number (SN):  If incremented for each ESP packet, the SN may
       leak some information like the amount of transmitted data or the
       age of the sensor.

If 2 bytes of SN are sent using a counter, there is little to no leakage 
of sensor age.

If little traffic from sensor then only 1 byte may be better for this 
purpose.

I just don't see this as a risk if care is taken.  You may want to say this.

Finally where is the open source code available?

You need a UDP app in transport mode example in App 1.  :)

If you get this draft active, I will work on providing that example.  ;)


thanks.