Re: Need your help: different connection IDs in the same datagram
Dmitri Tikhonov <dtikhonov@litespeedtech.com> Thu, 16 July 2020 00:32 UTC
Return-Path: <dtikhonov@litespeedtech.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 63F453A0F19 for <quic@ietfa.amsl.com>; Wed, 15 Jul 2020 17:32:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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=litespeedtech-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9_MU5it7RFiJ for <quic@ietfa.amsl.com>; Wed, 15 Jul 2020 17:32:52 -0700 (PDT)
Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D04863A0F17 for <quic@ietf.org>; Wed, 15 Jul 2020 17:32:51 -0700 (PDT)
Received: by mail-qv1-xf30.google.com with SMTP id p7so1909415qvl.4 for <quic@ietf.org>; Wed, 15 Jul 2020 17:32:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=litespeedtech-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=uKLpFnPCBgm0AJJZewjn5O/ox/K81jV9MSb6gVs+gpU=; b=mfjwN3LdEp1+r0GQF+IPoiep1OaJ9/Pkb3Dn4oRZGslERwbv4H6pX12CDEbiAcbDsw fDsMjmyMbl8sL5YxfX9+qq29tONdpOHW//NGHGLxs508WaL0J62YJWZPMBvWy5xfwnSQ U78GutxTbaqsjjs84jfZDstkMNUKfrNmvHp0yOMr1Xk9HC/eDAQTj3pD32fC/18c9bDO qzvIi/Ci+Om/8hOe6utr7A0W4wSAtA9WKxGogyVteRnhFKQoIwCCwma5MqEWChybOI7F iZXILvwSeREGtGfWUSWE6FLuCWF2ZPAV24SqWOQuNfx5DhoNNMV03RDixmQFbTE2sECm Uxrg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=uKLpFnPCBgm0AJJZewjn5O/ox/K81jV9MSb6gVs+gpU=; b=T1zuto7Z3h9ZbK/camJ52NjbyMt2sgjdvLs6Ki+zbUMPgFNTyn7nrBUAhi4mqTOzYF dIPCky9i1NReDIoX9WVIMKBGJUqq0cGTfI941VOC8szjneBAE3g5bZnU6km4Gd1X30gq TRibLsEQpDLVv3bezR49/bA6smUUWkXfhG5Okszfkgp2YCIUQ7gHRaf/A+MWjaU9b/dZ E6xDeaKFGqrrlhScEghC/WtDnJhsgN6uGp1AZ4rsEGAw6o8Jvd4y5Bm3NDXtQxVZVJd2 siWrsMH99t2FfGRfzp9/bmLMQAKlRQC07KyWmt9A8E7KBg0x0Df/L+mOF/BA1EjX1eDq jYpA==
X-Gm-Message-State: AOAM530ggJgH3zWs9/zkp0znPJ8JiCDXElnziKTWsMQ6WueJJjxjkW1H YV0bcnp03dVvunByMyR4jMtojX01r71kMg==
X-Google-Smtp-Source: ABdhPJwLmRgor964z66m/uHbcWhRbHV4/8ng0f0WMuy5Lr12nhcirax4u+MMbHQPb7Z9IeqYH9M9Hw==
X-Received: by 2002:ad4:46ea:: with SMTP id h10mr1931288qvw.145.1594859570497; Wed, 15 Jul 2020 17:32:50 -0700 (PDT)
Received: from lubuntu (ool-44c1d219.dyn.optonline.net. [68.193.210.25]) by smtp.gmail.com with ESMTPSA id y67sm5126468qka.101.2020.07.15.17.32.49 for <quic@ietf.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 17:32:50 -0700 (PDT)
Date: Wed, 15 Jul 2020 20:32:44 -0400
From: Dmitri Tikhonov <dtikhonov@litespeedtech.com>
To: quic@ietf.org
Subject: Re: Need your help: different connection IDs in the same datagram
Message-ID: <20200716003244.GG9808@lubuntu>
Mail-Followup-To: quic@ietf.org
References: <ae21cc02-3357-40c8-a1e9-3966fdf575a5@www.fastmail.com> <20200715180231.GB9808@lubuntu> <7ee5a352-fef6-44ed-9e82-09194aae366e@www.fastmail.com> <20200715235957.GE9808@lubuntu> <4f59efcf-0fc6-4e64-ad20-8eb4e1978095@www.fastmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <4f59efcf-0fc6-4e64-ad20-8eb4e1978095@www.fastmail.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/mh--QnXdQawItBPKUvjv4BwIDSU>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 16 Jul 2020 00:32:53 -0000
On Thu, Jul 16, 2020 at 10:29:07AM +1000, Martin Thomson wrote:
> On Thu, Jul 16, 2020, at 09:59, Dmitri Tikhonov wrote:
> > You've lost me a bit, Martin. Is this the code you aimed for?
> ....
> > if (conn)
> > {
> > #if VARIANT_A
> > if (!conn_owns_scid(conn, dcid))
> > #elif VARIANT_B
> > if (conn != lookup_by_dcid(dcid))
> > #else
> > if (false)
> > #endif
> > continue;
> > }
> > conn = process_packet(quic_packet);
> > }
>
> Yeah, the point being that the check here is added at your discretion.
> It is possible to rely on the crypto to ensure that the connection
> rejects anything that isn't intended for it.
I see. That's true, this is another way to do it. On the other hand,
this is even less efficient than a hash lookup.
- Dmitri.
- Need your help: different connection IDs in the s… Martin Thomson
- Re: Need your help: different connection IDs in t… Marten Seemann
- RE: Need your help: different connection IDs in t… Nick Banks
- Re: Need your help: different connection IDs in t… Dmitri Tikhonov
- Re: Need your help: different connection IDs in t… Ian Swett
- Re: Need your help: different connection IDs in t… David Schinazi
- RE: Need your help: different connection IDs in t… Mike Bishop
- Re: Need your help: different connection IDs in t… Ian Swett
- Re: Need your help: different connection IDs in t… Martin Thomson
- Re: Need your help: different connection IDs in t… Martin Thomson
- Re: Need your help: different connection IDs in t… Dmitri Tikhonov
- Re: Need your help: different connection IDs in t… Dmitri Tikhonov
- Re: Need your help: different connection IDs in t… Martin Thomson
- Re: Need your help: different connection IDs in t… David Schinazi
- Re: Need your help: different connection IDs in t… Dmitri Tikhonov
- Re: Need your help: different connection IDs in t… Martin Thomson
- Re: Need your help: different connection IDs in t… Jana Iyengar
- Re: Need your help: different connection IDs in t… Kazuho Oku