Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?




Syntax (QFX5120-48T)

Syntax (PTX10008)

Hierarchy Level


Configure PTP on the device. PTP, also known as IEEE 1588v2, is a packet-based technology that enables the operator to deliver synchronization services on packet-based mobile backhaul networks. IEEE 1588 PTP (Version 2) clock synchronization standard is a highly precise protocol for time synchronization that synchronizes clocks in a distributed system.

The system clocks can be categorized based on the role of the node in the network. They are broadly categorized into ordinary clocks and boundary clocks. The primary clock and the client clock are known as ordinary clocks. The boundary clock can operate as either a primary clock or a client clock.

You can configure the primary clock and the client clock for Precision Time Protocol (PTP) to help synchronize clocks in a distributed system. The time synchronization is achieved through packets that are transmitted and received in a session between the primary clock and the client clock.

Starting in Junos OS Evolved Release 22.2R1, with PTP timing profiles, such as G.8275.1 and G.8275.2, the accepted clock attribute priority2 value is 255 for T-TSC clock. Any value other than 255 is rejected by the T-TSC clocks.

Starting in Junos OS Evolved Release 23.1R1, to support PTP timing profiles, such as G.8275.1 and G.8275.2, you can configure timing performance and monitoring for passive ports and stateful interfaces (only on PTX10008 devices).



Use grandmaster data set for announce messages when in acquiring state.


Clock mode

  • boundary—The clock mode of the node is a boundary clock where the clock acts as both primary and client.

  • ordinary—The clock mode of the node is a system clock where the clock acts either as a primary or as a client. The ordinary option is not supported on ACX710 devices.


Disable revertive switchover for LAG.


PTP domain number

  • 0 through 127.


Enable end-to-end IEEE1588 transparent clock functionality.


PTP clock holdover in specification time error budget in nano second (ns)

  • 400

  • 0 through 10000.


IPv4 DiffServ code point (DSCP) value to be used for PTP packets

  • 0 through 63.


IPv6 DiffServ code point (DSCP) value to be used for PTP packets

  • 0 through 63.


Priority assigned to the local clock

  • 1 through 255.


PHY timestamping feature.


Used in selecting best master clock

  • 0 through 255.


Tie-breaker in selecting best master clock

  • 0 through 255.


PTP profile type

  • aes67—Enable the AES67 PTP profile.

  • aes67-smpte—Enable the AES67 and SMPTE ST-2059-2 PTP profile.

  • enterprise-profile—Enable the enterprise profile. The enterprise profile supports IEEE 1588 PTPv2 transport over multicast IPv4. When the enterprise profile is enabled, no other profiles can be enabled. Also, unicast negotiation is disabled when you enable the enterprise profile.

  • g.8275.1—Enable the G.8275.1 PTP profile.

  • g.8275.1.enh—Enable the enhanced G.8275.1 PTP profile. This profile supports PTP over IPv4 and IPv6.

  • g.8275.2—Enable the G.8275.2 PTP profile.

  • g.8275.2.enh—Enable the enhanced G.8275.2 PTP profile.

  • ieee-2008—Enable the IEEE 2008 profile type (default).

  • ieee1588v2-custom—Enable the IEEE1588v2 with Multicast.

  • smpte—Enable the SMPTE ST-2059-2 PTP Profile.


Enable end-to-end syntonized IEEE1588 transparent clock functionality.


The timescale of Master

  • arbitrary—Master clock with arbitrary timescale.


Enable unicast negotiation.


UTC leap seconds offset

  • 0 through 255.

The following options are available only for PTX10008 devices: performance-monitor Configure performance-monitor PTP packet delay metrics

passive-port – Enable PTP performance monitoring for passive ports

  • delay-request-rate – Log mean interval between delay requests. Valid range is -4 to 4. This represents the packet rates as 2^(-4) that is (16 packets per second) to 2^4 (1 packets per 1 second). Default value is -4.
  • monitor-enable – Enable monitoring of passive ports.
stateful interface

Stateful parameters to set interfaces to PTP stateful role.

<interface name> – Interface name or port range. For example, et-0/0/4:0.0, et-0/0/4:1.0, et-2/0/4.0

passive-port-monitor – Configure passive port monitoring.

  • monitor-enable – Enable monitoring of PTP performance on the passive port.
  • phase-threshold <offset-threshold-value> – Configure phase offset threshold value for raising alarm, relative to active slave port. Valid range is 20 to 100000000.

not-master – Configuring port as passive or listening port.

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

routing-To view this statement in the configuration.

Release Information

Statement introduced in Junos OS Release 12.2R1