From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: me.kalin@gmail.com Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 11fdeb1f for ; Wed, 16 May 2018 20:35:25 +0000 (UTC) Received: from mail-ot0-x22d.google.com (mail-ot0-x22d.google.com [IPv6:2607:f8b0:4003:c0f::22d]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id eb011b0b for ; Wed, 16 May 2018 20:35:25 +0000 (UTC) Received: by mail-ot0-x22d.google.com with SMTP id t1-v6so2474431ott.13 for ; Wed, 16 May 2018 13:35:48 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20C72316-B8FC-4515-8DC8-8BC82BF3864F@cgws.de> References: <793381ba-b59d-50e4-6d7b-cbe9bef91ba1@cgws.de> <489c2f57-574a-1223-9c4d-266904e52c94@gmail.com> <20180515202126.yw57deh6st5ebnk6@kowloon> <20C72316-B8FC-4515-8DC8-8BC82BF3864F@cgws.de> From: Kalin KOZHUHAROV Date: Wed, 16 May 2018 22:35:27 +0200 Message-ID: Subject: Re: Need for HW-clock independent timestamps To: Axel Neumann Content-Type: text/plain; charset="UTF-8" Cc: WireGuard mailing list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hello Axel, I may have not been clear in my last response, it was to be taken in the context of the whole thread... On Wed, May 16, 2018 at 9:32 PM, Axel Neumann wrote: > > > Am 15. Mai 2018 22:49:15 MESZ schrieb Kalin KOZHUHAROV : >>On Tue, May 15, 2018 at 10:21 PM, Devan Carpenter > >>> Using NTP is not a viable solution for a distributed mesh network. >>What >>> if the Internet is only accesible via WG, or what if the network is >>not >>> connected to the Internet at all? >>> >>Why do you need the Internet at all? >>You can do as simple as plug a $20 GPS receiver (serial/USB) in any >>node and get precise time that is shared with others in the network. > I meant to have one (or few) nodes that do provide time over UDP from a GPS or other time-source, i.e. not connected to the Internet. Not every node needs that. Alternatively, as a pure software solution, every node of the network may be required to run ntp on udp, or even other time protocol (say RFC 867, RFC 868). So any new node, before connecting to the WG endpoint with WG tunnel, sets its time from it. Nodes that do have access to the Net (exit nodes in a way), can run ntpd internally and also don't need GPS or other time sources, if the purpose of the network is "connect to the Net". Cheers, Kalin.