Monitor and Operate Hybrid Timing

Quick Health Check

Run these on the host that runs dpll-mgr (use the instance and configuration-file names from your configuration):

# 1. The manager: state, selected source, gears, holdover
cat /var/run/dpll_mgr/status.json | python3 -m json.tool

# 2. The backhaul: port state, upstream grandmaster, offset
sudo pmc -u -b 0 -f /etc/linuxptp/ptpinstance/ptp4l-ptp01bh.conf 'GET PORT_DATA_SET'
sudo pmc -u -b 0 -f /etc/linuxptp/ptpinstance/ptp4l-ptp01bh.conf 'GET PARENT_DATA_SET'
sudo pmc -u -b 0 -f /etc/linuxptp/ptpinstance/ptp4l-ptp01bh.conf 'GET TIME_STATUS_NP'

# 3. What the fronthaul advertises
sudo pmc -u -b 0 -f /etc/linuxptp/ptpinstance/ptp4l-ptp01fh.conf 'GET GRANDMASTER_SETTINGS_NP'

# 4. Hardware pin state (read-only)
sudo python3 /opt/collectd/extensions/python/troubleshoot/dpll_pin_info.py

# 5. Alarms (the timing alarms use alarm ID 100.119)
~(keystone_admin)]$ fm alarm-list

Compare the result with the expected values in Hybrid Timing Failover Behavior (by event) and Verify the Configuration (healthy baseline).

The status.json File

dpll-mgr writes /var/run/dpll_mgr/status.json whenever its state changes (it is not rewritten periodically). Example status.json File shows an example.

Field

Meaning

format_version

Layout version of the file (currently 1).

timestamp

Time of the last write.

operation_mode

SW_BASED.

dpll_lock_status

locked, locked_ho_acq, holdover or unlocked (Lock States, Holdover, and Liveness).

current_master

GNSS_REF4P, SDP0_REF0N, or HOLDOVER_0..``HOLDOVER_3``.

previous_master

The source before the last change.

in_holdover

true while in holdover.

holdover_level, holdover_duration_s

Tier (-1 when not in holdover; 0..``3``) and seconds spent in holdover.

gearshift

The gear of each channel: ptp_bh, ts2_0, ts2_1 (PARK or DRIVE).

phase_offset_ns, drift_rate_ns_per_s

Informational.

ptp_port_state

Informational. Use pmc (Quick Health Check) for the backhaul port state.

connected_pin

The pin the DPLL is locked to (none in holdover).

ever_locked

true after the first lock since dpll-mgr started. Alarms are not raised before this (start-up grace).

pins

For each input pin, an eec (frequency) and a pps (phase) entry with the pin state and priority.

Pin state values: connected - the DPLL is locked to this pin; selectable - valid and ready, but not selected (a healthy standby); disconnected - not in use. The backhaul pin SDP0_REF0N is always disconnected on the eec (frequency) side - that is normal (Two DPLL Planes: Frequency and Phase).

Alarms

All timing alarms use alarm ID 100.119 and are distinguished by the entity ID and reason text.

Alarm

Entity ID (suffix)

Severity

Raised when

Cleared when

DPLL holdover

instance=<dpll-mgr>.ptp=holdover

Warning / Minor / Major / Critical by tier (Holdover and Alarm Escalation)

The DPLL is in holdover (after the first lock).

The DPLL locks again.

Not locked to remote PTP Grand Master

instance=<instance>.ptp=no-lock

Major

Raised on the backhaul instance when it has no upstream grandmaster while another source is active, and on the dpll-mgr instance when it reports unlocked after the first lock.

The grandmaster is locked again, or the DPLL locks.

PTP clocking is out of tolerance

instance=<instance>.ptp=out-of-tolerance

Minor, then Major

The measured offset exceeds the configured thresholds (see PTP Instance Monitoring Parameters).

The offset returns within tolerance.

GNSS signal loss / 1PPS signal loss

interface=<port>.ptp=GNSS-signal-loss, ...=1PPS-signal-loss

Minor, escalating to Major

A source is lost. Raised while the DPLL is locked to a different source (for example after a failover to the backhaul). States include holdover, holdover-expired and holdover-unstable (freerun).

The source is restored.

Process alarm

instance=<instance>.ptp

Major

A configured PTP service is not running.

The service runs again.

Alarms follow the DPLL with a delay of up to about 30 to 90 seconds.

Synchronization-State Notifications

If the PTP Notification application is installed, the node publishes O-RAN synchronization states. For the hybrid-timing configuration:

  • The backhaul instance reports Monitoring while GNSS is the active source (the instance is parked) and Locked while it is driving the clock. If the grandmaster is lost it moves to Holdover and then Freerun.

  • The overall state stays Locked across a healthy failover between GNSS and the backhaul.

  • A GNSS source that is a healthy standby (pin selectable, with a valid fix) is reported as SYNCHRONIZED, not as a failure. A GNSS source that is lost or has no fix is reported as FAILURE-NOFIX.

See the PTP Notification documentation for the API.

Logs

Log

Contents

/var/log/user.log

dpll-mgr messages: source selection, FAILOVER DETECTED, gearshift (Sending GEARSHIFT ...), pin enable/disable (Disabling / Enabling PTP pins REF0P and REF0N), liveness events, and the ts2phc/ptp4l instance logs. Filter with grep dpll-mgr.

/var/log/collectd.log

Platform monitoring log: the timing status for every audit cycle, and alarm raise and clear messages.

/etc/linuxptp/ptpinstance/

The rendered configuration files, including dpll-mgr-<instance>.json.

Operational Controls

These are monitoring-section parameters, applied with system ptp-instance-apply.

Parameter

On instance

Default

Effect

holdover_seconds

ts2phc, clock, ptp4l

14400 (4 h)

The in-specification holdover window used for the clockClass ladder (clockClass on the Fronthaul) and the signal-loss alarm. See PTP Instance Monitoring Parameters.

For a ptp4l instance the effective holdover time is the smaller of its own value and the value of its upstream ts2phc or clock instance, so set the value on every instance in the chain that you want to change. For example, to shorten the window to one hour on the GNSS ts2phc instance and the E825 fronthaul ptp4l instance:

~(keystone_admin)]$ system ptp-instance-parameter-add ts1 --section monitoring holdover_seconds=3600
~(keystone_admin)]$ system ptp-instance-parameter-add ptp01fh --section monitoring holdover_seconds=3600
~(keystone_admin)]$ system ptp-instance-apply

Host and Software Operations

  • Reboot or lock/unlock: dpll-mgr starts after all the ptp4l and ts2phc instances it controls are ready, re-locks to the primary source and clears the alarms. No holdover alarm is raised before the first lock.

  • Changing the configuration (any key, or any instance parameter) requires system ptp-instance-apply. After the apply, all PTP services are restarted.

  • Patch, software upgrade and rollback. The timing configuration - every PTP instance, its parameters, its interfaces and host assignments, including the dpll-mgr config section - is part of the system inventory. It is retained when you apply a patch, upgrade to a new load, or roll back. When a host comes up on the new (or restored) software, dpll-mgr starts from the stored parameters, re-locks to the primary source and clears the alarms. Update one host at a time and check each host against the healthy baseline (Verify the Configuration) before you update the next. See Manual Host Software Deployment and Manual Rollback Host Software Deployment.

  • Backup and restore. The timing configuration is included in the system backup, so no separate timing backup is needed. After a restore, the hosts are reconfigured from the restored configuration; confirm the healthy baseline (Verify the Configuration) once the services are up. See Back Up System Data Overview and Restore Platform System Data and Storage.