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 |
|---|---|
|
Layout version of the file (currently |
|
Time of the last write. |
|
|
|
|
|
|
|
The source before the last change. |
|
|
|
Tier ( |
|
The gear of each channel: |
|
Informational. |
|
Informational. Use |
|
The pin the DPLL is locked to ( |
|
|
|
For each input pin, an |
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 |
|
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 |
|
Major |
Raised on the backhaul instance when it has no upstream grandmaster
while another source is active, and on the |
The grandmaster is locked again, or the DPLL locks. |
PTP clocking is 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 |
|
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
|
The source is restored. |
Process alarm |
|
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 |
|---|---|
|
|
|
Platform monitoring log: the timing status for every audit cycle, and alarm raise and clear messages. |
|
The rendered configuration files, including
|
Operational Controls¶
These are monitoring-section parameters, applied with
system ptp-instance-apply.
Parameter |
On instance |
Default |
Effect |
|---|---|---|---|
|
|
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-mgrstarts after all theptp4landts2phcinstances 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-mgrconfigsection - 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-mgrstarts 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.