Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

close
keyboard_arrow_left
Timing and Synchronization Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
keyboard_arrow_right

Configure PTP Default Profile

date_range 20-Dec-24

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:
    content_copy zoom_out_map
    [edit]
    user@host# edit protocols ptp
    
  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.

    content_copy zoom_out_map
    [edit protocols ptp]
    user@host# set clock-mode (boundary | ordinary)
    
  3. Configure the PTP domain option with values from 0 through 127. The default value is 0.
    content_copy zoom_out_map
    [edit protocols ptp]
    user@host# set domain domain-value
    
  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.

    content_copy zoom_out_map
    [edit protocols ptp]
    user@host# set priority1 priority1-value
    
  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.

    content_copy zoom_out_map
    [edit protocols ptp]
    user@host# set priority2 priority2-value
    
  6. Configure the multicast-mode option to enable multicast transport.
    content_copy zoom_out_map
    [edit protocols ptp]
    user@host# set multicast-mode
    

Configure TimeReceiver Clock Options

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

  1. Configure the timeReceiver clock.
    content_copy zoom_out_map
    [edit protocols ptp]
    user@host# edit slave
    
  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.

    content_copy zoom_out_map
    [edit protocols ptp slave]
    user@host# set delay-request delay-request-value
    
  3. Configure the interface for the timeReceiver.
    content_copy zoom_out_map
    [edit protocols ptp slave]
    user@host# set interface interface-name
    
    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.
    content_copy zoom_out_map
    [edit protocols ptp slave interface interface-name]
    user@host# set multicast-mode
    
  5. Configure the transport option in multicast mode as IPv4.

    The encapsulation type for PTP packet transport is IPv4.

    content_copy zoom_out_map
    [edit protocols ptp slave interface interface-name multicast-mode]
    user@host# set transport ipv4
    
  6. Configure the IP address of the local logical interface.
    content_copy zoom_out_map
    [edit protocols ptp slave interface interface-name multicast-mode]
    user@host# set local-ip-address IP address
    

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.
    content_copy zoom_out_map
    [edit protocols ptp]
    user@host# edit master
    
  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.

    content_copy zoom_out_map
    [edit protocols ptp master]
    user@host# set delay-req-timeout seconds
    
  3. Configure the interface for the timeTransmitter.
    content_copy zoom_out_map
    [edit protocols ptp master]
    user@host# set interface interface-name
    
  4. Configure the multicast-mode option for the timeTransmitter. You can set this option when PTP multicast mode of messaging is needed.
    content_copy zoom_out_map
    [edit protocols ptp master interface interface-name]
    user@host# set multicast-mode
    
  5. Configure the transport option in multicast mode as IPv4.

    The encapsulation type for PTP packet transport is IPv4.

    content_copy zoom_out_map
    [edit protocols ptp master interface interface-name multicast-mode]
    user@host# set transport ipv4
    
  6. Configure the IP address of the interface acting as the local PTP timeTransmitter port.
    content_copy zoom_out_map
    [edit protocols ptp master interface interface-name multicast-mode clock-client ip-address]
    user@host# set local-ip-address local-ip-address
    
  7. Configure the interface to be used to connect with the PTP grandmaster clock.
    content_copy zoom_out_map
    [edit protocols ptp master]
    user@host# set interface interface-name
    

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

    This interface is named ptp0 by default.

    content_copy zoom_out_map
    [edit protocols ptp master]
    user@host# set interface ptp0
    
  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.
    content_copy zoom_out_map
    [edit protocols ptp master interface]
    user@host# set interface-name multicast-mode
    
  9. Configure the transport option in multicast mode as IPv4.

    The encapsulation type for PTP packet transport is IPv4.

    content_copy zoom_out_map
    [edit protocols ptp master interface interface-name multicast-mode]
    user@host# set transport ipv4
    
external-footer-nav