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-apply restarts 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

  1. Keep the existing GNSS ts2phc instance (ts1 in the examples). It becomes the ts2_0 channel of dpll-mgr. The clock interface of the E825 base port must already have sdp1=input.

  2. 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
    
  3. Create the backhaul ptp4l instance, 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 domainNumber to the domain of the upstream grandmaster.

  4. Keep the existing fronthaul ptp4l and phc2sys instances. They are unchanged. phc2sys must keep following the fronthaul ptp4l instance (uds_address and domainNumber), not the new backhaul instance.

    If the node has an E830, give it its own ts2phc instance (ts2 in the examples). It becomes the ts2_1 channel of dpll-mgr. Keep the existing E830 fronthaul ptp4l instance. The ts2 instance 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 have sdp1=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 ts2phc instance (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
    
  5. Create the dpll-mgr instance, naming your existing GNSS instance in channel_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.

  6. Apply the configuration.

    ~(keystone_admin)]$ system ptp-instance-apply
    
  7. 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.