Re: [Ntp] Follow-up to yesterday's mic comment about PTP security

Daniel Franke <dfoxfranke@gmail.com> Thu, 25 July 2019 11:48 UTC

Return-Path: <dfoxfranke@gmail.com>
X-Original-To: ntp@ietfa.amsl.com
Delivered-To: ntp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A30B1120020 for <ntp@ietfa.amsl.com>; Thu, 25 Jul 2019 04:48:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 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_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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nt6PxbmBmhT1 for <ntp@ietfa.amsl.com>; Thu, 25 Jul 2019 04:48:36 -0700 (PDT)
Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) (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 12D12120019 for <ntp@ietf.org>; Thu, 25 Jul 2019 04:48:36 -0700 (PDT)
Received: by mail-io1-xd44.google.com with SMTP id s7so96441000iob.11 for <ntp@ietf.org>; Thu, 25 Jul 2019 04:48:36 -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; bh=2Vb6YOCsSvzWkmXn1uSv2SPFxCvI8uL1HCD9E8Mb63A=; b=c3vPyI2biU21hDZxWf4xOt8fWQnkuqf5Ijl39zahgOHEr5ARX1z+dDaxENKhEB02g3 F2ofB3AwjHNZBZ19Yq57TyCe+zr/uLOvwv3mfX5w5jXnfDXhGFvZqgASCTtELlhvsFtM aKT+1jcRHGjQAwpvDPrvc2ZBj/bB5hd6vVACb2mFyxErMjVuB7KTc5MvA739SoDp7bNc dYkiFxzEyXxlsvGqCAc2wjZEnpvtZnD04wA7Bx5Hf7nZg1qnxg+8SZvi7Bw4S/j/sjYd puJdHXHUH6RBPQPCaZ6n5UIHo6qC5jvQH6Dn7sjSn1bldkn/KD791XaHnj3DaySGMUt4 pKeg==
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; bh=2Vb6YOCsSvzWkmXn1uSv2SPFxCvI8uL1HCD9E8Mb63A=; b=IpcSpWJ8uKnv1fg0P8MEFXaDF7sM/Rbd2eY9DkICMRU6jIBC/2Jj5zTtoAfYLVS04g F1Gy6uJ8hUHDryLoTWBJNMk1uPzTRMLGtO+FHsaEW6hcBpkvLHlIhUb6PzU8hr5l5Lj3 vvSuz1oyDmIKpyc9sOfJzWz/dPekKS8zKcDcYek98g1E28HHeLeSKicnvNoHQTPxya1R 3iGBJB5697NAszJ2FW5gLgZgwiz7ynlJYGI/u8XcOpY2dKJN/SKM9aqkNs0vJrrV1JxF qy2remnyl7P3q8lZpUBmrniEDDgLrgMrCH3LemLP+jq6KAbBZlbD24oXS3P1/pIJOCAY +NXg==
X-Gm-Message-State: APjAAAXTaRXpiCRbVQjgWIbKGpuG1sD09uZqBkDyPxcDjtm8RmIuPvnQ yI3uQwzWrHxoYe+7Bb90HdVgedwQBsSOF7F2R0o=
X-Google-Smtp-Source: APXvYqyszxhc2rIkwroH/QsXV/+kCHDkK8mlShsvRqYnCj36xeEqyumrGMlni2O8F17c26WOMiRo0Qx1WQbCtWQbXlo=
X-Received: by 2002:a5e:c30f:: with SMTP id a15mr38798639iok.246.1564055315352; Thu, 25 Jul 2019 04:48:35 -0700 (PDT)
MIME-Version: 1.0
References: <CAJm83bD89oPE+WouWUD=qVqFzZ5-vw6E3RVsdVRteH0cEXyYjg@mail.gmail.com> <OFBC3F40BE.7ED6BF0D-ONC1258441.0023FF5E-C1258441.002675FE@ptb.de> <CAJm83bA74UiYbVbfYOHk4Vsw=go0d5P70uwbJ7CDvFrkdtcbfw@mail.gmail.com> <5D3941DA020000A100032624@gwsmtp.uni-regensburg.de>
In-Reply-To: <5D3941DA020000A100032624@gwsmtp.uni-regensburg.de>
From: Daniel Franke <dfoxfranke@gmail.com>
Date: Thu, 25 Jul 2019 07:48:23 -0400
Message-ID: <CAJm83bBYMOEagHTzHqU=1oZshe8XwUjPMULNjRh+rqtQ=GmM4w@mail.gmail.com>
To: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
Cc: kristof.teichel@ptb.de, "ntp@ietf.org" <ntp@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/VvG1eVPAODLHJswFpo0RzIRbIyE>
Subject: Re: [Ntp] Follow-up to yesterday's mic comment about PTP security
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <ntp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ntp>, <mailto:ntp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ntp/>
List-Post: <mailto:ntp@ietf.org>
List-Help: <mailto:ntp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ntp>, <mailto:ntp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Jul 2019 11:48:38 -0000

> The probem is the "distance" here, as it definitely refers to "cable length",
> or more specifically "route length". Back in the time when the WWW started,
> connections inside Germany were routed via USA sometimes (that was the time
> whan a "good" transferrate was near 5kB/s). To make matters worse, you cannot
> safely assume that the route (length) from A to B will be the same as from B to
> A.

For the purposes of determining an error bound using the formula I
gave, assuming a distance that is too short will give you a more
conservative bound. So the safest assumption is that you are
communicating in a straight line in both directions, through a vacuum
medium. Making more "realistic" assumptions will give you a tighter
bound, but then an adversary who can violate those assumptions can
violate your error bound.