Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    NTP status question

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 298 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • QinnQ
      Qinn
      last edited by Qinn

      Does anybody know why the NTP status in the dashboard says "Sync Source 45.138.55.60 (stratum 1, .GPS.)" To the best of my knowledge "stratum 1", would mean I have a Cesium clock om my roof, which I am sure is not the case, last time I checked the roof 😉

      Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
      Firmware: Latest-stable-pfSense CE (amd64)
      Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

      E johnpozJ 2 Replies Last reply Reply Quote 0
      • E
        elvisimprsntr @Qinn
        last edited by elvisimprsntr

        @Qinn

        Stratum 0 is a reference clock

        Stratum 1 .GPS., means you are syncing to a source which has a reference clock.

        Example, I have a GPS reference clock connected to pfSense

        Screenshot 2024-11-15 at 9.41.54 AM.png

        https://github.com/elvisimprsntr/pfsense-ntp-gps

        1 Reply Last reply Reply Quote 2
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @Qinn
          last edited by

          @Qinn

          Stratum 0 refers to the ‘reference’ clock itself—typically an atomic clock, GPS clock, or radio clock.
          Stratum 1 refers to any machine that synchronizes its system clock directly with the ‘reference’ clock that resides at Stratum 0. For example, a server that has a GPS unit plugged into one of its serial ports.
          Stratum 2 refers to any machine that synchronizes its system clock with the clock on a Stratum 1 server.
          Stratum 3 refers to any machine that synchronizes its system clock with the clock on a Stratum 2 server, and so on.
          

          So in the above case, since he has his pfsense directly syncing with a reference clock, it is a 0, but anything syncing off of his pfsense ntp server would list that as a 1..

          So for example, I run my own ntp server as well with a gps hat using pps.

          If I look on a client using that as its its ntp it lists it as a 1

          ntpq> pe
               remote           refid      st t when poll reach   delay   offset  jitter
          ==============================================================================
          *ntp.home.arpa   .PPS.            1 u   92  128  377    0.786   +0.321   0.093
          

          But if I look on my ntp server

          ntpq> pe
               remote                                   refid      st t when poll reach   delay   offset   jitter
          =======================================================================================================
          *SHM(1)                                  .PPS.            0 l    3   16  377   0.0000  -0.5164   0.0244
          -SHM(0)                                  .GPS.            0 l   43   64  377   0.0000 -159.534   2.2688
          +ntp-0.gw.illinois.edu                   128.174.38.133   2 u   12   64  377  11.7514   2.2352   2.1540
          +ntp.your.org                            .GPS.            1 u   33   64  377  10.3975   2.5761   1.6993
          -tock.usshc.com                          .WAAS.           1 u    -   64  377  15.9844   1.6906   0.4770
          -ntp1.netwrx1.com                        127.127.28.0     2 u   13   64  377  37.6681  -5.6588   1.7070
          ntpq> 
          

          Notice the SHM sources are listed as 0.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 2
          • QinnQ
            Qinn
            last edited by

            Thnx guys 👍

            Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
            Firmware: Latest-stable-pfSense CE (amd64)
            Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.