Convert a GNSS-Only Configuration to Hybrid Timing¶
Use this procedure on a node that gets its time only from GNSS: a
ts2phc instance disciplines the PHC from GNSS, the node is a
grandmaster for downstream clients, and has no PTP backhaul configured. You
do not need to delete the existing instances. You keep them, add the PTP
backhaul and the dpll-mgr instance, and apply once. The finished
configuration is the one in Instance Model.
Note
It is strongly recommended that you delete all existing PTP instances and configure hybrid timing from the beginning, as described in Configure Hybrid Timing.
To delete the existing configuration, see Remove PTP Configurations. This procedure is provided as an alternative for users who need the flexibility of keeping their existing configuration.
Prerequisites
The node meets the requirements in Prerequisites. The node needs a backhaul connection to an upstream grandmaster that is on the same time base as the node’s GNSS, configured with the fast message rates.
Plan a maintenance window.
system ptp-instance-applyrestarts all PTP services, so the timing on the fronthaul is interrupted briefly.Record the current configuration so that you can return to it:
~(keystone_admin)]$ system ptp-instance-list ~(keystone_admin)]$ system ptp-instance-show <instance> ~(keystone_admin)]$ system ptp-interface-list ~(keystone_admin)]$ system ptp-interface-show <interface>
Note
Examples use the instance and interface names of the reference configuration
(clock0, ts1, ptp01bh, eno8703, eno8403). Keep your
existing names and substitute them. If a parameter that you must change
already exists with a different value, delete it with system
ptp-instance-parameter-delete (or system
ptp-interface-parameter-delete) and add it again.
Procedure
Keep the existing GNSS
ts2phcinstance (ts1in the examples). It becomes thets2_0channel ofdpll-mgr. The clock interface of the E825 base port must already havesdp1=input.Add the SDP0 export to the clock interface, so that the backhaul-disciplined PHC feeds the DPLL:
~(keystone_admin)]$ system ptp-interface-parameter-add clock0if1 sdp0=output period_sdp0=1pps
Create the backhaul
ptp4linstance, as in step to create the servoing backhaul of the Step-by-Step Procedure (Reference Configuration). For a PTS backhaul, use the instance in Scenario B.~(keystone_admin)]$ system ptp-instance-add ptp01bh ptp4l ~(keystone_admin)]$ system ptp-instance-parameter-add ptp01bh domainNumber=24 tx_timestamp_timeout=700 clientOnly=1 ~(keystone_admin)]$ system ptp-instance-parameter-add ptp01bh free_running=0 servo_offset_threshold=10 servo_num_offset_values=5 gear=P ~(keystone_admin)]$ system ptp-instance-parameter-add ptp01bh logAnnounceInterval=-3 logSyncInterval=-4 logMinDelayReqInterval=-4 ~(keystone_admin)]$ system host-ptp-instance-assign controller-0 ptp01bh ~(keystone_admin)]$ system ptp-interface-add ptp01bhif1 ptp01bh ~(keystone_admin)]$ system host-if-ptp-assign controller-0 eno8403 ptp01bhif1
Set
domainNumberto the domain of the upstream grandmaster.Keep the existing fronthaul
ptp4landphc2sysinstances. They are unchanged.phc2sysmust keep following the fronthaulptp4linstance (uds_addressanddomainNumber), not the new backhaul instance.If the node has an E830, give it its own
ts2phcinstance (ts2in the examples). It becomes thets2_1channel ofdpll-mgr. Keep the existing E830 fronthaulptp4linstance. Thets2instance uses the generic PHC source, so the E830 PHC follows the E825 PHC the active source, and the clock interface of the E830 port must havesdp1=input.Create the instance as follows, or correct your existing one to match (see the step to add the E830 in the Step-by-Step Procedure (Reference Configuration)).
~(keystone_admin)]$ system ptp-interface-add clock0if2 clock0 ~(keystone_admin)]$ system ptp-interface-parameter-add clock0if2 sdp1=input ~(keystone_admin)]$ system host-if-ptp-assign controller-0 enp108s0f0 clock0if2 ~(keystone_admin)]$ system ptp-instance-add ts2 ts2phc ~(keystone_admin)]$ system ptp-instance-parameter-add ts2 cmdline_opts='-s generic' ~(keystone_admin)]$ system host-ptp-instance-assign controller-0 ts2 ~(keystone_admin)]$ system ptp-interface-add ts2if1 ts2 ~(keystone_admin)]$ system ptp-interface-parameter-add ts2if1 ts2phc.channel=1 ts2phc.pin_index=1 ~(keystone_admin)]$ system host-if-ptp-assign controller-0 enp108s0f0 ts2if1
If the GNSS
ts2phcinstance (ts1) is also assigned to the E830 port, so that one instance serves both adapters, remove that assignment first:~(keystone_admin)]$ system host-if-ptp-remove controller-0 enp108s0f0 ts1if1
Create the
dpll-mgrinstance, naming your existing GNSS instance inchannel_ts2_0, as in step to create and configure the dpll-mgr instance in Step-by-Step Procedure (Reference Configuration).~(keystone_admin)]$ system ptp-instance-add dpll-mgr1 dpll-mgr ~(keystone_admin)]$ system ptp-instance-parameter-add dpll-mgr1 --section config phc_interface=eno8703 channel_ptp_bh=ptp01bh channel_ts2_0=ts1 channel_ts2_1=ts2 ~(keystone_admin)]$ system host-ptp-instance-assign controller-0 dpll-mgr1
If the node has no E830, omit
channel_ts2_1.Apply the configuration.
~(keystone_admin)]$ system ptp-instance-apply
After applying the configuration go to Verify the Configuration to continue.
Postrequisites
The clockClass on the fronthaul now follows the rules in clockClass on the Fronthaul.
To return to the previous configuration, delete the dpll-mgr instance (see
Remove PTP Configurations),
restore the parameters that you recorded, and run
system ptp-instance-apply.