[Ntp] symmetricom tp1100 stratum and leap indicator behavior

Andy Harrison <aharrison+ntp@gmail.com> Wed, 31 July 2019 19:19 UTC

Return-Path: <aharrison@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 DE47312004F for <ntp@ietfa.amsl.com>; Wed, 31 Jul 2019 12:19:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 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, HTML_MESSAGE=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 A7F2240JZAfC for <ntp@ietfa.amsl.com>; Wed, 31 Jul 2019 12:19:30 -0700 (PDT)
Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (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 E8901120018 for <ntp@ietf.org>; Wed, 31 Jul 2019 12:19:29 -0700 (PDT)
Received: by mail-io1-xd30.google.com with SMTP id g20so138766093ioc.12 for <ntp@ietf.org>; Wed, 31 Jul 2019 12:19:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=1IcseQjkF4koDGYI5gDqhlPxquiCJPOLPKrV+2CVQYk=; b=Hiakn11ZLMN1dBkvi/3Ov5DZ4TtD7Kybc7ObGP2pxnNQO5GzNzQW/Quk3mNFCI7FVS vhSdY8rtK9w1gKQLdgEO9VYpi1WNVOO0RR+a6ngIPB0otN56ZbM0JvQcDrzms7to50Zu fKC6XDeHF+gUi33EFy667r287rFwyvU7l7r2yXyGTGoLBHurHhlVQ1FslujIq1rWFIzm 0RcecMj7CpUjmWN24QLjVysyPKC8GovN0BAUocaPJJmpPfxtDmrj9vkLfD2Btn2MZxwl INnE0EYE26RXdGNet530sIsLGPJnpl3QwPSRqcja9lFR9+f7FWHeaBWTY0QR8V9BoudO CP8A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=1IcseQjkF4koDGYI5gDqhlPxquiCJPOLPKrV+2CVQYk=; b=BM5WlWgaVpLfj0xSXyhPL66dAedchQ6j8XICQeidYlfBKMoK2gSjnKq3lTQpcCh8HW RwJQKxH4wULH1Dck6J8gXdJBTPMind6i3dJWXugnMkm2QUUTfl7bfuBezSDb5CQdNPvC 9YADZU75hOnNC16iTOQwNaRdmjOnGLD7ml241G9sszqweklCRsCH0ukX8xDxF0jxS36m 1F6+QUVWxV9AKWw4Wp6q2XWSPMXGrIzA7wxlrYAfFUFE9rQHGZq+doXcTrOr7VSyN4nD /rjTZAsVAHpSZvf2dQ1GLO6mk0ah+G1Jwm+2gFfYpqE0pjwG4O55hgSljdG52u5Gt0AG NtzQ==
X-Gm-Message-State: APjAAAXC30AhhtjVK4DL3LOx5UYvGDxNWp2zW+DMbudBnjXTZ4Fbe+TK qLjWiXgpsy0Mh15u4j7RzoDcoscwroKOM2YRnjgQ+Cu34g==
X-Google-Smtp-Source: APXvYqysdVglwwXy6ZelTH5dRzJTq49HVto/AbNbmHBtNqwu/xyfeqdYmqblg2HGQ4DRuSMCfCmteXiGwHE0HwmNyJs=
X-Received: by 2002:a5e:9304:: with SMTP id k4mr28731430iom.206.1564600768851; Wed, 31 Jul 2019 12:19:28 -0700 (PDT)
MIME-Version: 1.0
From: Andy Harrison <aharrison+ntp@gmail.com>
Date: Wed, 31 Jul 2019 15:19:18 -0400
Message-ID: <CACJmLABdDsvzwv-xsXhLWmkYmuwp=4A+xirmbRy=AeCSsi0Jag@mail.gmail.com>
To: ntp@ietf.org
Content-Type: multipart/alternative; boundary="0000000000000af792058eff012d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/HtbFcHlJjPRWuRwoO8KPFzIz1Ww>
Subject: [Ntp] symmetricom tp1100 stratum and leap indicator behavior
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: Wed, 31 Jul 2019 20:19:54 -0000

The backstory...  I've been tasked with deploying a pair of Symmetricom
TP1100 Time Providers with GPS antennae as the official time source for the
company (replacing an ancient server with a Meinberg card in it).  My
company actually purchased the Symmetricoms a few years ago, but they never
got around to putting them in production.  No one was able or willing to
put in the time to get them going.  I started working at the company
recently and they gave the project to me.

I've got them up and running and my test ntp client (my Linux workstation
running ntp 4.2.8p12) can pull time from them just fine.

Now for the hard part.  What we want to happen is that if the GPS of the
primary Symmetricom goes offline, we want the clients to start getting time
from the backup unit.

Ideally what would happen is the GPS goes offline, the Symmetricom would
set itself to a higher stratum level and the clients abandon it for the
device that has the better stratum, but this is not what happens.

I had to use Wireshark to see that instead, when the GPS goes offline, the
Symmetricom stops advertising a stratum level (Wireshark shows "unspecified
or invalid") while the leap indicator shows "clock unsynchronized" (3 I
think it was).  (When I enable the GPS again, Wireshark shows the stratum
level coming through as 1 and leap indicator shows 0 "no warning".)

On my workstation test client, ntp apparently doesn't know what to do when
a time source stops indicating its stratum level so it keeps right on
showing stratum 1 in ntpq output even though Wireshark clearly shows the
packets coming through with stratum level "unspecified or invalid".

So, my question is, can I configure ntp in such a way that it responds to
either a lack of advertised stratum or a leap warning indicator greater
than 0?


Thanks!


-- 
Andrew