Re: [MLS] Message ordering

Martin Thomson <martin.thomson@gmail.com> Wed, 30 May 2018 01:14 UTC

Return-Path: <martin.thomson@gmail.com>
X-Original-To: mls@ietfa.amsl.com
Delivered-To: mls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AB10612D574 for <mls@ietfa.amsl.com>; Tue, 29 May 2018 18:14:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9xHfC9w_UDo6 for <mls@ietfa.amsl.com>; Tue, 29 May 2018 18:14:24 -0700 (PDT)
Received: from mail-ot0-x235.google.com (mail-ot0-x235.google.com [IPv6:2607:f8b0:4003:c0f::235]) (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 663EE12EAE0 for <mls@ietf.org>; Tue, 29 May 2018 18:14:24 -0700 (PDT)
Received: by mail-ot0-x235.google.com with SMTP id n1-v6so19229847otf.7 for <mls@ietf.org>; Tue, 29 May 2018 18:14:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=QVj+0u8t85gvdpQ8nmTY6aO291O7J1iqsizjwB0bU9E=; b=eAIKVXEAdhcNK0PyE+ZPpVEOokI1H/Bam3bRCPfGjjsLoZqjbcgSasEpcQMyJ3IF6t xqjBMPp6pceKvEPMjkV0aQtIPh9g7DW1tne2rXcBuY86pdbjPLPBo75neY/wCwHNLtVs Lwj3vScgHfFFQpKesho7Q08tsckNDxWFYmKeOxoyrrQIqUdOcE031R/J06D6sOrtx7FQ /iHQkKJUjJY5vbVVmneVblvPqIwVu686Nj8bTa+mi0MUC7v6W65iCVfj8h3fRcOPieCw IgOtGr/g8+77UykbabyqoDP61q5ph7f9uoCc9qP/CX41zf+I+HfTF5oWwd9tLTiK2r/S 4rAQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=QVj+0u8t85gvdpQ8nmTY6aO291O7J1iqsizjwB0bU9E=; b=Oownsp9BYY6EhsYauEwuJU8Mb572UTB6S1HqkCWUAVu/uuv/5qBN/TkgxxtVVv89WI cDz+FiICcBL0vWm6kuXKooHCgHYSBBQe2jTL58wQ3oGtLH9ZVaILPtadQm7jShilngS/ O+c9Dv/LoHorSmI1v9H3fC62t1lweb6A7u57pFZU9L1jocoOgheHeP9a0u12JhRGiCf9 5wjAQc6pUC58IpV2k1zjv7Q6WKUr27R/kryG5GR9YcGvDmDzKyaloIN69FEaa3LC2BcP yqLDZKZ+x7GgifYsiHsJ5J04o08HMqFmhVqApI2o/Gru5g4vU7MjHhWXcYD1sNaqLt1v 3fbg==
X-Gm-Message-State: ALKqPwcem+/UWi8QXmLKHgaHskWJF5H2/BubRvUsg8r86XIRgcP2aEqZ 39ARalcsIFH+vFy4AmsHbu42h7Tws/HrIyqfFxg=
X-Google-Smtp-Source: ADUXVKJN8whbsaQvoZIEjgDQECAtOMVW8ItaavLhDFtkqnWs33AUJZquwWBtNfEFIcyJs/SrJh7P0I+dF1lkx06jumM=
X-Received: by 2002:a9d:3637:: with SMTP id w52-v6mr431777otb.394.1527642863735; Tue, 29 May 2018 18:14:23 -0700 (PDT)
MIME-Version: 1.0
References: <008b01d3f788$3f34bc70$bd9e3550$@virgilsecurity.com> <27E7AA31-0993-45E7-86D1-0D90EFB2D487@gmail.com> <CABcZeBMeoCX2pUbqLgoZhsJ4A0_yhOmeYbPQYA2+VxVdNsv3yw@mail.gmail.com> <00ac01d3f792$58e9a770$0abcf650$@virgilsecurity.com>
In-Reply-To: <00ac01d3f792$58e9a770$0abcf650$@virgilsecurity.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Wed, 30 May 2018 11:14:14 +1000
Message-ID: <CABkgnnWvg024wVu5tMckWOQqu5qktLVKm-K62+9JaDekd_9OLA@mail.gmail.com>
To: scratch@virgilsecurity.com
Cc: Eric Rescorla <ekr@rtfm.com>, Karthikeyan Bhargavan <karthik.bhargavan@gmail.com>, mls@ietf.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/mls/Jw30dy4b0HPfsDkfIma9Q3-xuEg>
Subject: Re: [MLS] Message ordering
X-BeenThere: mls@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Messaging Layer Security <mls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mls>, <mailto:mls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mls/>
List-Post: <mailto:mls@ietf.org>
List-Help: <mailto:mls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mls>, <mailto:mls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 30 May 2018 01:14:28 -0000

If that is the path you take, it's probably better to have a global key
update rate and to derive individual update rates based on that and the
group size.
On Wed, May 30, 2018 at 7:17 AM Alexey Ermishkin
<scratch@virgilsecurity.com>
wrote:

> Key management or, let’s call it group sate change, usually happens less
frequently than the messaging itself. It can also be performed as a
background task, affecting user experience much less.

> There could also be some quotas on key rotation depending on the group
size.

> Suppose we have a policy that that every member can rotate his key only
once per 24 hours.
> In case of evenly distributed group It would allow a group of ~40k people
have state update about every 2 seconds which will reduce the waiting time
for newcomers and reduce the possible merge conflicts

> From: MLS <mls-bounces@ietf.org> On Behalf Of Eric Rescorla
> Sent: Wednesday, May 30, 2018 1:57 AM
> To: Karthikeyan Bhargavan <karthik.bhargavan@gmail.com>
> Cc: Alexey Ermishkin <scratch@virgilsecurity.com>; mls@ietf.org
> Subject: Re: [MLS] Message ordering



> The difficulty is that key management also depends on clear ordering.



> -Ekr





> On Tue, May 29, 2018 at 1:53 PM, Karthikeyan Bhargavan
<karthik.bhargavan@gmail..com> wrote:

> > All messages (not only state change messages) must have a counter field
> > which must be unique among all the messages and server must reject
messages
> > that have this field duplicated.

> Good catch. I think this may be too strong a requirement.
> With the right design adjustments, we will probably find that per-sender
counters are enough.

> -Karthik



> > This might be ok for a group of 3. But as MLS targets groups up to 50k
> > users, I believe  the percent of rejected messages will dramatically
> > increase and affect user experience.
> > I know that ART or TreeKem is, in the end, supposed to be bound to
double
> > ratchet's KDF chain which have one sequence of message numbers per
"epoch"
> > but that clearly won't work for large groups where participants will
> > constantly have to work on some "consensus" during communication.
> > I believe there's better solution to this problem. Maybe we should
consider
> > making a unique KDF chain (prefix?) for each group member and perform
> > timestamp-based ordering, I'm not sure.
> >
> > Regards,
> > Alex
> >
> >
> > _______________________________________________
> > MLS mailing list
> > MLS@ietf.org
> > https://www.ietf.org/mailman/listinfo/mls

> _______________________________________________
> MLS mailing list
> MLS@ietf.org
> https://www.ietf.org/mailman/listinfo/mls



> _______________________________________________
> MLS mailing list
> MLS@ietf.org
> https://www.ietf.org/mailman/listinfo/mls