Convert a PTP-Only Configuration to Hybrid TimingΒΆ
Overview
This section describes how a node gets its time only from a PTP backhaul: a
backhaul ptp4l instance disciplines the PHC from the upstream grandmaster,
and the node has no GNSS source configured. You do not need to delete the
existing instances. You keep them, add a GNSS source 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. A GNSS receiver and antenna must be attached and have a fix.
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, ptp01fh, phc1, eno8703). 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
Add the GNSS input and the SDP0 export to the clock interface of the E825 base port. Skip a parameter that is already set to the same value.
~(keystone_admin)]$ system ptp-interface-parameter-add clock0if1 sdp1=input tspll_cfg=timeref_156.25 ~(keystone_admin)]$ system ptp-interface-parameter-add clock0if1 sdp0=output period_sdp0=1pps
Create the GNSS
ts2phcinstance, as in step to create the GNSS ts2phc instance of the Step-by-Step Procedure (Reference Configuration).~(keystone_admin)]$ system ptp-instance-add ts1 ts2phc ~(keystone_admin)]$ system ptp-instance-parameter-add ts1 ts2phc.nmea_serialport=/dev/ttyACM0 ~(keystone_admin)]$ system host-ptp-instance-assign controller-0 ts1 ~(keystone_admin)]$ system ptp-interface-add ts1if1 ts1 ~(keystone_admin)]$ system ptp-interface-parameter-add ts1if1 ts2phc.channel=1 ts2phc.pin_index=1 ~(keystone_admin)]$ system host-if-ptp-assign controller-0 eno8703 ts1if1
Update the existing backhaul
ptp4linstance so that it only receives, runs its servo, and starts in the parked state. Once configured,dpll-mgrmanages the gear state automatically. These are the parameters of step to create the servoing backhaul and export it on SDP0 of the Step-by-Step Procedure (Reference Configuration).ptp01bhis used below as an example; change the instance name accordingly.~(keystone_admin)]$ system ptp-instance-parameter-add ptp01bh clientOnly=1 ~(keystone_admin)]$ system ptp-instance-parameter-add ptp01bh free_running=0 servo_offset_threshold=10 servo_num_offset_values=5 gear=P
The upstream grandmaster must use the same fast message rates (
logAnnounceInterval=-3,logSyncInterval=-4,logMinDelayReqInterval=-4).Update the system-clock (
phc2sys) instance. In a PTP-only configuration it follows the backhaulptp4linstance. In hybrid timing the backhaul instance is parked while GNSS is the source, and its port stays inUNCALIBRATED.phc2syswith-wwaits for a port inMASTERorSLAVEstate, so it must follow a fronthaulptp4linstance instead. Setuds_addressanddomainNumberto those of the fronthaul instance see Step-by-Step Procedure (Reference Configuration).phc1andptp01fhare used below as examples; change the instance names accordingly.~(keystone_admin)]$ system ptp-instance-show phc1 ~(keystone_admin)]$ system ptp-instance-parameter-delete phc1 uds_address=/var/run/ptp4l-ptp01bh ~(keystone_admin)]$ system ptp-instance-parameter-delete phc1 domainNumber=<backhaul-domain> ~(keystone_admin)]$ system ptp-instance-parameter-add phc1 uds_address=/var/run/ptp4l-ptp01fh domainNumber=24
Keep
cmdline_opts='-w -s eno8703', whereeno8703is the E825 base port.If the node has an E830, keep its fronthaul
ptp4linstance. Thets2phcinstance of the E830 must usecmdline_opts='-s generic', and the clock interface of the E830 port must havesdp1=inputsee Step-by-Step Procedure (Reference Configuration).~(keystone_admin)]$ system ptp-interface-parameter-add clock0if2 sdp1=input
Create the
dpll-mgrinstance, see 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. For a PTP-primary node, also setdpll1_pin_priority_mapas in Scenario C.Apply the configuration.
~(keystone_admin)]$ system ptp-instance-apply
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.