Hybrid Timing Introduction¶
What Hybrid Timing Is¶
A Granite Rapids-D (GNR-D) system contains a hardware timing module: a ZL3073x digital phase-locked loop (DPLL) on the E825-C network adapter. The DPLL disciplines the frequency and phase of the adapter’s PTP hardware clock (PHC) and, through the platform’s PTP services, every other clock on the host and every downstream device that synchronizes to it.
The DPLL can take its reference from more than one source. Hybrid timing lets you configure two sources at the same time and have the system choose and switch between them automatically:
GNSS - a satellite receiver attached to the node, delivering a 1PPS signal and time-of-day.
PTP backhaul - a PTP stream received from an upstream grandmaster or boundary clock over the network (ITU-T G.8275.1 full timing support, or G.8275.2 partial timing support).
One source is the primary and the other is the secondary. If the primary is lost, the system fails over to the secondary without a time discontinuity; if both are lost, it holds the last good frequency and phase (holdover) for as long as the hardware can, while raising alarms of increasing severity. When the primary returns, the system fails back.
The node acts as a PTP boundary clock (T-BC) towards the network (it receives from the backhaul) and as a grandmaster (T-GM) towards its own downstream clients (the fronthaul): downstream devices see a single, continuous, correctly-qualified time source whichever upstream source is currently active.
Components¶
Component |
Type / name in the example |
What it does in hybrid timing |
|---|---|---|
dpll-mgr |
|
The decision-maker. Programs the DPLL pin priorities, watches which
source is locked, tells the other services when to start or stop
disciplining the clock (“gearshift”), tracks holdover, and publishes its
state in |
clock |
|
Configures the E825/E830 SDP pins and the timing-module reference frequency. |
ts2phc (GNSS) |
|
Disciplines the E825 PHC from the GNSS receiver (NMEA + 1PPS). |
ts2phc (generic) |
|
Copies the E825 PHC time to the E830 PHC ( |
ptp4l (backhaul) |
|
Client of the upstream grandmaster. Runs as a servoing client that dpll-mgr can park or drive. Its recovered time is exported on pin SDP0 as a 1PPS reference for the DPLL. |
ptp4l (fronthaul) |
|
Grandmaster instances serving downstream clients on the E825 and E830 ports. |
phc2sys |
|
Keeps the system clock aligned with the E825 PHC. |
ptp-notification |
optional application |
Publishes O-RAN synchronization-state notifications. |
gnss-monitor |
optional instance |
Reports GNSS receiver quality metrics. |
Supported Scenarios¶
# |
Scenario |
Primary |
Secondary |
Backhaul |
Status |
|---|---|---|---|---|---|
A |
GNSS primary, PTP backhaul secondary |
GNSS |
PTP backhaul |
G.8275.1, L2 multicast |
Supported |
B |
GNSS primary, PTS backhaul secondary |
GNSS |
PTP backhaul |
G.8275.2, UDPv6 unicast (Partial Timing Support, PTS) |
Supported |
C |
PTP backhaul primary, GNSS secondary |
PTP backhaul |
GNSS |
G.8275.1, L2 multicast |
Supported |
Scenarios A, B and C use exactly the same set of PTP instances; only the dpll-mgr pin priorities (and the backhaul transport) differ. Changes per Scenario shows the delta for each.
Choosing a scenario
GNSS primary (scenario A or B) is the default and the recommended choice. It needs no pin-priority keys, and the node takes its time from its own GNSS receiver whenever it is available, using the backhaul as the fallback.
Choose between A and B by what the backhaul network provides. A uses G.8275.1 (full timing support: the nodes on the path between your node and the grandmaster support PTP). B uses G.8275.2 (partial timing support: the path can include nodes that do not support PTP).
PTP backhaul primary (scenario C) is for sites where the backhaul is the authoritative time source: the network grandmaster is the reference and GNSS is the fallback.
You can change from A to C later by changing one key (Scenario C: PTP Backhaul Primary, GNSS Secondary).
Note
A node that uses a single timing source - GNSS only, or a PTP source
only - does not use dpll-mgr. It is configured with the standard PTP
instances (ptp4l, ts2phc, phc2sys, clock). See
Configure PTP Service Using the CLI
and
Example PTP Instance Configurations.
This guide covers nodes that use both a GNSS source and a PTP backhaul.
Note
SyncE is not covered by this guide. For SyncE frequency distribution, see Configure synce4l Service.
Requirements¶
Hardware
A Granite Rapids-D system with an E825-C adapter (integrated ZL3073x DPLL). An E830-CC add-in adapter is optional; if present it is kept aligned to the E825 by a dedicated
ts2phcinstance.For GNSS sources: a GNSS receiver connected to the E825 timing module and a working antenna with a valid fix. See GNSS Receiver Control (Granite Rapids-D).
For the PTP backhaul: a network link from the backhaul port to an upstream grandmaster or boundary clock.
Software
StarlingX release R14.0 and later, which includes the
dpll-mgrservice and the structuredconfigsection fordpll-mgrinstances.Optional: the PTP Notification application, if you consume O-RAN synchronization notifications.
Network and timing prerequisites
The upstream grandmaster must be on the same absolute time base as the node’s GNSS (that is, itself GNSS-synchronized). If it is not, the node’s PHC (GNSS-disciplined) and the backhaul will differ by a fixed phase offset and an out-of-tolerance alarm is raised even though the PTP servo reports a perfect lock.
Use the fast message rates on both ends of the backhaul (
logAnnounceInterval=-3,logSyncInterval=-4,logMinDelayReqInterval=-4). With the default slow rates a servoing backhaul cannot hold lock against the oscillator drift of the adapter, and the node repeatedly drops to holdover.
Supported Configurations and Restrictions¶
Hybrid timing with
dpll-mgris supported on Granite Rapids-D systems with the E825-C adapter (ZL3073x DPLL) only.Only one
dpll-mgrinstance is allowed per host, and it takes no PTP interface.dpll-mgrcontrols up to three channels: one backhaulptp4linstance and up to twots2phcinstances.Failover and fail-back take about 12 to 19 seconds because the DPLL hardware must re-lock to the new reference.
Do not set the SDP0 pin state manually. A manual change to that pin cannot be undone without a cold reboot.
The upstream grandmaster must be on the same time base as the node’s GNSS (Requirements).
dpll-mgris for nodes that use both a GNSS source and a PTP backhaul. A node with a single source uses the standard PTP configuration withoutdpll-mgr(Supported Scenarios).