Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Configure PTP Default Profile

You can configure the timeTransmitter clock and the timeReceiver clock for Precision Time Protocol (PTP) to help synchronize clocks in a distributed system. This time synchronization is achieved through packets that are transmitted and received in a session between the timeTransmitter clock and the timeReceiver clock. The default profile is enabled by default. You do not need to enable the profile-type statement to use the default profile.

Configure PTP and its Options

This topic includes the following tasks:

Configure PTP Options

To configure PTP options:

  1. In configuration mode, go to the [edit protocols ptp] hierarchy level:
  2. Configure the clock mode as either boundary or ordinary. This attribute is mandatory and has no default value.

    The boundary option signifies that the clock can be both a timeTransmitter clock and a timeReceiver clock. The ordinary option signifies that the clock is either a timeTransmitter clock or a timeReceiver clock.

  3. Configure the PTP domain option with values from 0 through 127. The default value is 0.
  4. Configure the priority1 option with values from 0 through 255. The default value is 128.

    The priority1 value determines the best timeTransmitter clock. The priority1-value is also advertised in the timeTransmitter clock’s announce message to other timeReceiver clocks.

  5. Configure the priority2 option with values from 0 through 255. The default value is 128.

    The priority2 value differentiates and prioritizes the timeTransmitter clock to avoid confusion when priority1-value is the same for different timeTransmitter clocks in a network.

  6. Configure the multicast-mode option to enable multicast transport.

Configure TimeReceiver Clock Options

Configure the following options after the aforementioned PTP options have been set.

  1. Configure the timeReceiver clock.
  2. (Optional) Configure the delay-request option in the timeReceiver node with values from –7 through 7. The default value is 0.

    The delay request value is the logarithmic mean interval in seconds between the delay request messages sent by the timeReceiver to the timeTransmitter.

  3. Configure the interface for the timeReceiver.
    Note: PTP interfaces are unsupported and raise a Chassis Alarm, when PTP is configured on: MX10004 or MX10008 with JNP10K-LC2101 line cards and JNP10008-SF2 Switch Fabric Board.MX10008/MX100016 with JNP10K-LC2101 Line cards and JNP10008-SF Switch Fabric Board and Hypermode is enabled by config [ set forwarding-options hyper-mode ]
  4. Configure the multicast-mode option for the timeReceiver. You can set this option when PTP multicast mode of messaging is needed.
  5. Configure the transport option in multicast mode as IPv4.

    The encapsulation type for PTP packet transport is IPv4.

  6. Configure the IP address of the local logical interface.

Configure TimeTransmitter Clock Options

Configure the following options after the aforementioned PTP options and timeReceiver clock options have been set.

  1. Configure the timeTransmitter clock.
  2. Configure the delay-req-timeout option for the timeTransmitter.

    The maximum timeout for delay request messages is between 30 and 300 seconds. We recommend 30 seconds.

  3. Configure the interface for the timeTransmitter.
  4. Configure the multicast-mode option for the timeTransmitter. You can set this option when PTP multicast mode of messaging is needed.
  5. Configure the transport option in multicast mode as IPv4.

    The encapsulation type for PTP packet transport is IPv4.

  6. Configure the IP address of the interface acting as the local PTP timeTransmitter port.
  7. Configure the interface to be used to connect with the PTP grandmaster clock.

    If the timeTransmitter clock connection is through a 1-Gigabit Ethernet interface, configure the ptp0 interface.

    This interface is named ptp0 by default.

  8. Configure the multicast-mode option for the PTP grandmaster clock interface. You can set this option when PTP multicast mode of messaging is needed.
  9. Configure the transport option in multicast mode as IPv4.

    The encapsulation type for PTP packet transport is IPv4.