Re: [IPsec] [saag] IETF 114 IPsecME report

Valery Smyslov <smyslov.ietf@gmail.com> Tue, 31 January 2023 14:02 UTC

Return-Path: <smyslov.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 00849C14F726 for <ipsec@ietfa.amsl.com>; Tue, 31 Jan 2023 06:02:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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 k1yyJ1mLXr72 for <ipsec@ietfa.amsl.com>; Tue, 31 Jan 2023 06:02:32 -0800 (PST)
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 8B16CC14EB19 for <ipsec@ietf.org>; Tue, 31 Jan 2023 06:02:32 -0800 (PST)
Received: by mail-lf1-x132.google.com with SMTP id j17so24380795lfr.3 for <ipsec@ietf.org>; Tue, 31 Jan 2023 06:02:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-language:thread-index:content-transfer-encoding :mime-version:message-id:date:subject:in-reply-to:references:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=NaoAu3+tm9szUY7ndj9JS39BeHocSm/dxUZ1PIzz7Uk=; b=R37A4z/lXAQrxeO0LdL9BDBWTRtdQJQDiPVlm/YEPuVqsX5rABS6gBTEcvwCg3KV+y fJkkxcqtp5nBzKaPylYWyMC1ITeCGe48qqhFY5HUY5GOzLtIyaoGtGTuNp3Aet0cKV6+ UBaGIMZkiDweOx+N+SdG7TZSge+2yljZEXTbcnLtDnr3wmucPTFVYxUDdKngQ43nsDUr esnW4JisA4bUo51LhgNssrmPff3iiv9juIRhzzYtZUpclgnM9XLB+ze0j/mHOlu0VvlQ qBqzm44Zo3FCAoPtCTFwG3rIB4NXhCFRkpatVfj/ZHSA22hQyoLH2yO3dIomAIoRSppa XIfQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-language:thread-index:content-transfer-encoding :mime-version:message-id:date:subject:in-reply-to:references:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NaoAu3+tm9szUY7ndj9JS39BeHocSm/dxUZ1PIzz7Uk=; b=4e5Qv8udMi9afUppSZXzWj0Yg8RvT3LtqqulK1BLAgGT//yUTARlP5evIS1MoRDiCM WogNcLhFq/sw8IDsnMeh9eLQNk72YkLPrxcevPuVxYa+qA2Ag0+PiWjySgZnL+kkDN51 XVsNxhbbVGV+gtuHBy4LDXwR3Y3pxJVaVzWd5mxP5tnaeZQuZVYZ22CnQtQzTpaOf1qy /TYzTPNQA8KmP2HsXqKyuejabep+X6TXF3k9OIE96flDrI4UaPv6hpRqncHgVkhLkTD5 bai0FramM4W0IKmrOrBYLztkIxVy73fuG5nR1BpG0nWcPKQTe/qci9bH/kWsga2uGwss JB6Q==
X-Gm-Message-State: AO0yUKUNdPEFiFNEJ2kPBetz8tKULSAACxjN7QjTWVx/tlUiZWl35V6s DbkQCFRWpZcZCUvImA7wv4acoCbZjwg=
X-Google-Smtp-Source: AK7set/KSEEdh6esyYHRFMYl3+FZ1ItNyRyMv8bv5+iOuOzzFf5RmRG0MYh5MbwYmLNarWwSEUnwbg==
X-Received: by 2002:ac2:5a4b:0:b0:4c0:2ddc:4559 with SMTP id r11-20020ac25a4b000000b004c02ddc4559mr898362lfn.69.1675173750355; Tue, 31 Jan 2023 06:02:30 -0800 (PST)
Received: from buildpc ([93.188.44.204]) by smtp.gmail.com with ESMTPSA id z8-20020a056512376800b004d580823c25sm985568lft.11.2023.01.31.06.02.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jan 2023 06:02:29 -0800 (PST)
From: Valery Smyslov <smyslov.ietf@gmail.com>
To: 'Paul Wouters' <paul@nohats.ca>
Cc: 'Tero Kivinen' <kivinen@iki.fi>, 'Paul Wouters' <paul.wouters@aiven.io>, ipsec@ietf.org, 'Yoav Nir' <ynir.ietf@gmail.com>, 'Roman Danyliw' <rdd@cert.org>
References: <25311.20490.971667.883557@fireball.acr.fi> <CAGL5yWbWUvqPPsC3e-rqEc5i00WWXAhe=_SurmiWDNzfF54rRg@mail.gmail.com> <CAGL5yWbpx2K3X7FpMVASUeTzQZ2A=tKDw9s5UBqWUKbGnTgxiw@mail.gmail.com> <25558.47779.655532.512440@fireball.acr.fi> <016301d93576$bb63c030$322b4090$@gmail.com> <b3438e48-84b0-d8bc-b9ef-b0b3ae00794c@nohats.ca>
In-Reply-To: <b3438e48-84b0-d8bc-b9ef-b0b3ae00794c@nohats.ca>
Date: Tue, 31 Jan 2023 17:02:29 +0300
Message-ID: <016f01d9357c$a86ec9b0$f94c5d10$@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQIgvL5PIvTMn4bG60OyNKXMODbfRQLH29ciAg85jPgCEOUVAgJRWqnwAjWrufGtzgXdwA==
Content-Language: ru
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipsec/ujfBXVEgy0kvAzsDRIBKRYSrfgs>
Subject: Re: [IPsec] [saag] IETF 114 IPsecME report
X-BeenThere: ipsec@ietf.org
X-Mailman-Version: 2.1.39
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: Tue, 31 Jan 2023 14:02:33 -0000

Hi Paul,

> > The "proper" way would be to introduce new TS types
> > TS_IPV4_ADDR_RANGE_WITH_SECLABEL and TS_IPV6_ADDR_RANGE_WITH_SECLABEL.
> > I recall that it was already tried before, but I don't remember
> > why this way was abandoned.
> 
> The fear of combinatory explosion if something else got added. Eg lets
> say we have a similar new TS TYPE that modifies like sec_label. Let's
> call it FOO. We would end up with:
> 
> TS_IPV4_ADDR_RANGE
> TS_IPV4_ADDR_RANGE_WITH_SECLABEL
> TS_IPV4_ADDR_RANGE_WITH_FOO
> TS_IPV4_ADDR_RANGE_WITH_SECLABEL_AND_FOO
> TS_IPV6_ADDR_RANGE
> TS_IPV4_ADDR_RANGE_WITH_FOO
> TS_IPV6_ADDR_RANGE_WITH_SECLABEL
> TS_IPV6_ADDR_RANGE_WITH_SECLABEL_AND_FOO
> 
> The WG thought this would be a worse solution.

This could be solved by adding only two new TS types
TS_IPV4_ADDR_RANGE_WITH_CONSTRAINTS and TS_IPV6_ADDR_RANGE_WITH_CONSTRAINTS
with a format that allows to add new constraints to the Traffic Selector.

Something like:

                        1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   TS Type     |IP Protocol ID*|       Selector Length         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |           Start Port*         |           End Port*           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                         Starting Address*                     ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                         Ending Address*                       ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   ~                              Constraints*                       ~
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

where each constraint can be represented as an Attribute 
(it is also possible to introduce a dedicated structure) and all of them are treated with AND.
This way we may add any number of additional restrictions
to the base Traffic Selector.

Regards,
Valery.

> 
> Paul