Re: Packet number encryption negotiation

Boris Pismenny <borispismenny@gmail.com> Wed, 08 March 2023 13:01 UTC

Return-Path: <borispismenny@gmail.com>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8C59BC151534 for <quic@ietfa.amsl.com>; Wed, 8 Mar 2023 05:01:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.994
X-Spam-Level:
X-Spam-Status: No, score=-1.994 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, HTTPS_HTTP_MISMATCH=0.1, RCVD_IN_ZEN_BLOCKED_OPENDNS=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 NLMUBuU7sWW9 for <quic@ietfa.amsl.com>; Wed, 8 Mar 2023 05:01:51 -0800 (PST)
Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (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 9F87FC151532 for <quic@ietf.org>; Wed, 8 Mar 2023 05:01:51 -0800 (PST)
Received: by mail-ed1-x531.google.com with SMTP id j11so45860872edq.4 for <quic@ietf.org>; Wed, 08 Mar 2023 05:01:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678280510; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=vlJRAudHykvxnu/D5Wqq0rfjkg7XpdWAWV1thiLcYV0=; b=QGXbAleZZhP64GbheyEEJyS+og6w68NCmMs2ak8/cv5/1uQ3OIQYqKu+iKIWJ0ZhpT 8zEPq9lQScE92czYElLICWeiOQPL5/Xz8dG1CG3Oj0F4bDbZv4eMZDK5sVoqm5mqNyTf gtpUHyeJlI4Ktp2qOcGBqVDfa5L3EWGvE4PQD5vdHmZSAcecXMsO7IyimtSDdubJltEC yAuJSAq05TtQDSRqABXmSHXDWEDbFcHJrdH5wtcCbuSDjgrSM690kzBn9+5PwgnJgcO8 rYD0kPlr3HpOvf+LF0SkPm02AV+FSx2VeW+WeCZAqnzEHR8kAC2m4DKC3cYoacnMx/US Fh6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678280510; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vlJRAudHykvxnu/D5Wqq0rfjkg7XpdWAWV1thiLcYV0=; b=rGpzJb8LPrO+RcV/6MF21nV2nOCXGWU2gSk4XwEOow6D9q3vc0lBAt4qHGuXrT7u42 LBHO/p8q7V5FXXqi34dvRbTWfb5pKloPIk6Xt7ibWjy80ZRDNSksmTYEZsUCuJtij29B 3dq8vnsKCQFuB53CNm+0UpD5MMJrEyoFuHMzTRZCOn9NlGIofAGPYLFLb5F4JO74l+cy zRg/QcBiJVjkPOdFjUTIafJ+e36Uj+q5+0hXGcJgitjt/yFHZksjxIb1qOTd6xf8BuxB JIR/O5LZq2okd7fFlB6SfMV9I7Wv2DDA3fFknIGG8vWjRKaBkU4ojGYyJfr1InuoxiM5 7RmQ==
X-Gm-Message-State: AO0yUKUJR+mxRXEQzDXoAyRnnD/X5w0ecQf9sh1Rq0BIWz1GLcVxQDsX oMCiELaK52A1t0/EGAq9u3rxYx9YjoPpEBOQBtQ=
X-Google-Smtp-Source: AK7set/1AUTSz19N8x+H6XWtnsGVi2rE2a6KariooNkyIDL8FY2xLb9FcIYJ3WL94Jtcb1nZ+v33HxPv993yNHi7zdg=
X-Received: by 2002:a17:907:ca29:b0:882:cdb5:4e60 with SMTP id uk41-20020a170907ca2900b00882cdb54e60mr9055061ejc.11.1678280510002; Wed, 08 Mar 2023 05:01:50 -0800 (PST)
MIME-Version: 1.0
References: <CAKJMo+ttNyyTOhKg99k9HEgFCCZfR-yY_GeQ-ot6_09U1T3LPw@mail.gmail.com> <2b54d5c1-e094-d128-5c37-88ed63a0a0d8@ericsson.com> <CAKJMo+u=OZtNAmwYhSOXnrxNKTFFfup6k_W14=sos00gvqeP6g@mail.gmail.com> <b53ca341-2ff7-c5f9-758e-cc94fba923d7@ericsson.com>
In-Reply-To: <b53ca341-2ff7-c5f9-758e-cc94fba923d7@ericsson.com>
From: Boris Pismenny <borispismenny@gmail.com>
Date: Wed, 08 Mar 2023 14:01:56 +0100
Message-ID: <CAKJMo+vi9GHCA4eVV5tT3fa5WnAUeFgyQZaGujZ172t6s0beVg@mail.gmail.com>
Subject: Re: Packet number encryption negotiation
To: Michael Eriksson <michael.eriksson@ericsson.com>
Cc: IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000a1d96a05f66321e7"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/0Bgj3ns2Ro1mv0yKmbsMAGtuPPQ>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 08 Mar 2023 13:01:55 -0000

>
>
>
>> What I want to add is that you should consider multipath QUIC when you
>> design your hardware. It affects the AEAD nonce generation.
>>
>> Regular, unipath, QUIC sets the top 34 bits of the packet number to zero
>> when generating the nonce. In the upcoming multipath extension, the top 32
>> bits can be set to non-zero values.
>>
>> https://www.rfc-editor.org/rfc/rfc9001.html#name-aead-usage
>>
>> https://www.ietf.org/archive/id/draft-ietf-quic-multipath-03.html#name-packet-protection-for-quic
>> -
>>
>
> Thanks for the pointers, I've encountered multi-path QUIC on another
> discussion about QUIC offload (
> https://github.com/microsoft/quic-offloads/issues/9#issuecomment-1305823308
> <https://protect2.fireeye.com/v1/url?k=31323334-501d5122-313273af-454445555731-88d69ea0099e1120&q=1&e=e27b5977-1b4e-4703-957b-3236511a2976&u=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fquic-offloads%2Fissues%2F9%23issuecomment-1305823308>).
> IIUC, the main challenge with multipath will be to synchronize receive side
> NIC offloads when two NICs are being used in parallel to carry the same
> flow's packet number space.
>
>
> There will only be separate packet number spaces for each path in the
> upcoming version of the multipath draft. Then I guess you will not have the
> problem you mention above. If you still would, why is this not a problem
> with regular unipath QUIC?
>
>
Indeed, this can also happen with unipath QUIC. In both cases, it is
probably not the common case. But, if it does happen, it will make
offloading more challenging.