Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Timing and Synchronization Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configure PTP TimeTransmitter Clock

date_range 20-Dec-24

This topic talks about configuring PTP timeTransmitter boundary clock interface and parameters.

A Precision Time Protocol (PTP) timeTransmitter clock in either boundary or ordinary clock mode sends PTP messages to the timeReceiver clocks so that they can establish their relative time offset from this timeTransmitter’s clock or clock reference. You cannot configure an ordinary timeTransmitter clock on a device. The timeTransmitter boundary clock synchronizes time through a boundary timeReceiver port. To configure a timeTransmitter boundary clock, you must include the boundary statement at the [edit protocols ptp clock-mode] hierarchy level and at least one timeTransmitter with the master statement and at least one timeReceiver with the slave statement at the [edit protocols ptp] hierarchy level. ACX5048 and ACX5096 routers do not support ordinary and boundary clock.

To configure a PTP timeTransmitter clock, complete the following tasks:

Configure PTP TimeTransmitter Boundary Clock Parameters

To configure the parameters of a PTP timeTransmitter boundary clock:

  1. Configure the clock mode.
    content_copy zoom_out_map
    [edit protocols ptp]
    user@host# set clock-mode (boundary | ordinary)
    
  2. Configure the timeTransmitter clock.
    content_copy zoom_out_map
    [edit protocols ptp]
    user@host# edit master
    
  3. (Optional) Specify the log mean interval between announce messages—from 0 through 4. By default, one announce message is sent every two seconds. This configuration is used for manual clock clients. The timeTransmitter boundary clock sends announce messages to manual clock clients as specified in the announce-interval value.
    content_copy zoom_out_map
    [edit protocols ptp master]
    user@host# set announce-interval announce-interval-value
    
  4. Configure the interface on which to respond to downstream clock clients and timeReceiver clocks.
    content_copy zoom_out_map
    [edit protocols ptp master]
    user@host# edit interface interface-name
    
  5. (Optional) Specify the maximum log mean interval between announce messages—from 0 through 4. The default value is 4.
    content_copy zoom_out_map
    [edit protocols ptp master]
    user@host# set max-announce-interval max-announce-interval-value
    
  6. (Optional) Specify the maximum log mean interval between delay-response messages—from –7 through 4. The default value is 4.
    content_copy zoom_out_map
    [edit protocols ptp master]
    user@host# set max-delay-response-interval max-delay-response-interval-value
    
  7. (Optional) Specify the maximum log mean interval between synchronization messages—from –7 through 4. The default value is 4.
    content_copy zoom_out_map
    [edit protocols ptp master]
    user@host# set max-sync-interval max-sync-interval-value
    
  8. (Optional) Specify the minimum log mean interval between announce messages—from –0 through 4. The default value is 0.
    content_copy zoom_out_map
    [edit protocols ptp master]
    user@host# set min-announce-interval min-announce-interval
    
  9. (Optional) Specify the minimum log mean interval between delay-response messages—from –7 through 4. The default value is –7.
    content_copy zoom_out_map
    [edit protocols ptp master]
    user@host# set min-delay-response-interval min-delay-response-interval
    
  10. (Optional) Specify the minimum log mean interval between synchronization messages—from –7 through 4. The default value is –7.
    content_copy zoom_out_map
    [edit protocols ptp master]
    user@host# set min-sync-interval min-sync-interval-value
    
  11. (Optional) Specify the log mean interval between synchronization messages—from –7 through 4. The default value is –6. This configuration is used for manual clock clients. The timeTransmitter boundary clock sends synchronization messages to manual clock clients as specified in the syn-interval-value statement.
    content_copy zoom_out_map
    [edit protocols ptp master]
    user@host# set sync-interval sync-interval-value
    

After you have configured the PTP timeTransmitter clock parameters, enter the commit command from configuration mode.

Configure a PTP TimeTransmitter Clock Interface

After you have configured the timeTransmitter clock parameters, complete the configuration of the timeTransmitter clock by configuring an interface to act in the role of the timeTransmitter clock.

To configure a PTP timeTransmitter clock interface:

  1. Configure the interface on which to respond to downstream PTP timeReceiver clocks or clock clients.
    content_copy zoom_out_map
    [edit protocols ptp master]
    user@host# edit interface interface-name
    
    Note:

    For the configuration to work, the interface you specify must be configured at the [edit interfaces interface-name] hierarchy level.

  2. On this interface, configure downstream PTP timeReceiver clocks.
    content_copy zoom_out_map
    [edit protocols ptp master interface interface-name]
    user@host# edit unicast-mode
    
  3. Configure the IP address of the remote PTP host, or configure a subnet mask so that any host belonging to that subnet can join the timeTransmitter clock. You can configure up to 512 timeReceiver clocks for each timeTransmitter boundary clock.
    content_copy zoom_out_map
    [edit protocols ptp master interface interface-name unicast-mode]
    user@host# edit clock-client ip-address
    
    Note:
    • You can configure the maximum number of timeReceiver clocks (512) in the following combination:

      • Automatic timeReceiver clocks 256.

      • Manual and secure timeReceiver clocks 256—Any combination of manual and secure timeReceiver clocks is allowed as long as the combined total amounts to 256.

    • You can configure a maximum of 512 timeReceiver clocks in any combination of automatic, manual, and secure timeReceiver clocks for ACX7100 devices on Junos OS Evolved.

    Note:

    If you need to add a new PTP configuration when you toggle from a secure timeReceiver to an automatic timeReceiver or from an automatic timeReceiver to a secure timeReceiver in the PTP configuration of a boundary clock, then you should delete the existing PTP configuration and issue the commit command. After which, you can add a new PTP configuration and issue the commit command.

  4. Configure the IP address of the interface acting as the local PTP timeTransmitter.
    content_copy zoom_out_map
    [edit protocols ptp master interface interface-name unicast-mode clock-client ip-address]
    user@host# set local-ip-address local-ip-address
    
  5. (Optional) When the unicast-negotiation statement is configured at the [edit protocols ptp] hierarchy level, configure a clock client to immediately receive announce and synchronization messages from the timeTransmitter boundary clock without unicast negotiation.
    content_copy zoom_out_map
    [edit protocols ptp master interface interface-name unicast-mode clock-client ip-address local-ip-address local-ip-address]
    user@host# set manual
    
  6. Specify the encapsulation type for PTP packet transport—IPv4. This statement is mandatory.
    content_copy zoom_out_map
    [edit protocols ptp master interface interface-name unicast-mode]
    user@host# set transport ipv4
    

After you have configured the PTP timeTransmitter clock interface, enter the commit command from configuration mode.

footer-navigation