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-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, 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

  1. 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
    
  2. Create the GNSS ts2phc instance, 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
    
  3. Update the existing backhaul ptp4l instance so that it only receives, runs its servo, and starts in the parked state. Once configured, dpll-mgr manages 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). ptp01bh is 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).

  4. Update the system-clock (phc2sys) instance. In a PTP-only configuration it follows the backhaul ptp4l instance. In hybrid timing the backhaul instance is parked while GNSS is the source, and its port stays in UNCALIBRATED. phc2sys with -w waits for a port in MASTER or SLAVE state, so it must follow a fronthaul ptp4l instance instead. Set uds_address and domainNumber to those of the fronthaul instance see Step-by-Step Procedure (Reference Configuration). phc1 and ptp01fh are 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', where eno8703 is the E825 base port.

  5. If the node has an E830, keep its fronthaul ptp4l instance. The ts2phc instance of the E830 must use cmdline_opts='-s generic', and the clock interface of the E830 port must have sdp1=input see Step-by-Step Procedure (Reference Configuration).

    ~(keystone_admin)]$ system ptp-interface-parameter-add clock0if2 sdp1=input
    
  6. Create the dpll-mgr instance, 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 set dpll1_pin_priority_map as in Scenario C.

  7. Apply the configuration.

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