ptp
Syntax
ptp { acquiring-state-announce-grandmaster; clock-mode(boundary | ordinary); disable-lag-revertive-switchover; domain domain; e2e-transparent; frequency-lock-threshold frequency-lock-threshold; holdover-time-error-budget holdover-time-error-budget; ipv4-dscp ipv4-dscp; ipv6-dscp ipv6-dscp; local-priority local-priority; master {...} path-trace; performance-monitor {...} phase-adjust-threshold phase-adjust-threshold; phase-lock-threshold phase-lock-threshold; phy-timestamping; priority1 priority1; priority2 priority2; profile-type(aes67 | aes67-smpte | enterprise-profile | g.8275.1 | g.8275.1.enh | g.8275.2 | g.8275.2.enh | ieee1588v2-custom | ieee-2008 | smpte); slave {...} stateful {...} syntonized-e2e-transparent; timescale arbitrary; unicast-negotiation; utc-leap-seconds utc-leap-seconds; }
Syntax (MX10008)
ptp { clock-mode(boundary | ordinary); disable-lag-revertive-switchover; domain domain; e2e-transparent; frequency-lock-threshold frequency-lock-threshold; holdover-time-error-budget holdover-time-error-budget; ipv4-dscp ipv4-dscp; ipv6-dscp ipv6-dscp; local-priority local-priority; master {...} path-trace; performance-monitor {...} phase-adjust-threshold phase-adjust-threshold; phase-lock-threshold phase-lock-threshold; phy-timestamping; priority1 priority1; priority2 priority2; profile-type(aes67 | aes67-smpte | enterprise-profile | g.8275.1 | g.8275.1.enh | g.8275.2 | g.8275.2.enh | ieee1588v2-custom | ieee-2008 | smpte); slave {...} stateful {...} unicast-negotiation; utc-leap-seconds utc-leap-seconds; }
Syntax (ACX7100-32C, ACX7100-48L and ACX7024)
ptp { apts (domain domain | apply-groups | apply-groups-except) clock-mode(boundary | ordinary); disable-lag-revertive-switchover; domain domain; e2e-transparent; frequency-lock-threshold frequency-lock-threshold; holdover-in-spec-duration time duration; holdover-time-error-budget holdover-time-error-budget; ipv4-dscp ipv4-dscp; ipv6-dscp ipv6-dscp; local-priority local-priority; master {...} path-trace; performance-monitor {...} phase-adjust-threshold phase-adjust-threshold; phase-lock-threshold phase-lock-threshold; priority1 priority1; priority2 priority2; profile-type(enterprise-profile | g.8275.1 | g.8275.1.enh | g.8275.2.enh ); slave {...} stateful {...} syntonized-e2e-transparent; timescale arbitrary; unicast-negotiation; utc-leap-seconds utc-leap-seconds; }
Syntax (QFX Series)
ptp { clock-mode(boundary | ordinary); domain domain; ipv4-dscp ipv4-dscp; ipv6-dscp ipv6-dscp; local-priority local-priority; priority2 priority2; profile-type(aes67 | aes67-smpte | enterprise-profile | g.8275.2.enh | smpte); unicast-negotiation; slave { interface interface-name; announce-interval announce-interval; sync-interval sync-interval; delay-request delay-request; announce-timeout announce-timeout; grant-duration grant-duration; } master { interface interface-name; announce-interval announce-interval; sync-interval sync-interval; delay-req-timeout delay-req-timeout; } }
Syntax (QFX5120-48T)
ptp { clock-mode(boundary | ordinary); domain domain; ipv4-dscp ipv4-dscp; ipv6-dscp ipv6-dscp; local-priority local-priority; priority2 priority2; profile-type(g.8275.2.enh); unicast-negotiation; slave { interface interface-name; announce-interval announce-interval; sync-interval sync-interval; delay-request delay-request; announce-timeout announce-timeout; grant-duration grant-duration; } master { interface interface-name; announce-interval announce-interval; sync-interval sync-interval; delay-req-timeout delay-req-timeout; } }
Syntax (QFX5130-48C)
ptp { clock-mode(boundary | ordinary); domain domain; e2e-transparent; ipv4-dscp ipv4-dscp; local-priority local-priority; priority2 priority2; profile-type(aes67 | aes67-smpte | enterprise-profile | smpte); slave { interface interface-name; announce-interval announce-interval; sync-interval sync-interval; delay-request delay-request; announce-timeout announce-timeout; } master { interface interface-name; announce-interval announce-interval; sync-interval sync-interval; delay-req-timeout delay-req-timeout; } }
Syntax (PTX10004 and PTX10008)
ptp { acquiring-state-announce-grandmaster; clock-mode(boundary | ordinary); disable-lag-revertive-switchover; domain domain; e2e-transparent; holdover-time-error-budget holdover-time-error-budget; ipv4-dscp ipv4-dscp; ipv6-dscp ipv6-dscp; local-priority local-priority; master { announce-interval announce-interval; } phy-timestamping; priority1 priority1; priority2 priority2; profile-type(aes67 | aes67-smpte | enterprise-profile | g.8275.1 | g.8275.2 | g.8275.2.enh | ieee-2008 | ieee1588v2-custom | smpte); slave { announce-interval announce-interval; announce-timeout announce-timeout; } syntonized-e2e-transparent; timescale arbitrary; unicast-negotiation; utc-leap-seconds utc-leap-seconds; performance-monitor passive-port { delay-request-rate delay-request-rate; } stateful interface interface-number { passive-port-monitor { passive-port-monitor; phase-threshold <offset-threshold-value>; } not-master; } }
Hierarchy Level
[edit logical-systems name protocols], [edit protocols]
Description
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 timeTransmitter clock and the timeReceiver clock are known as ordinary clocks. The boundary clock can operate as either a timeTransmitter clock or a timeReceiver clock.
You can configure the timeTransmitter clock and the timeReceiver 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 timeTransmitter clock and the timeReceiver 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.2R1, 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).
Options
acquiring-state-announce-grandmaster |
Use grandmaster data set for announce messages when in acquiring state. |
|||
clock-mode |
Clock mode |
|
||
disable-lag-revertive-switchover |
Disable revertive switchover for LAG. |
|||
domain |
PTP domain number. This option is applicable to G.8275.1 profile. |
|
||
e2e-transparent |
Enable end-to-end IEEE1588 transparent clock functionality. |
|||
frequency-lock-threshold |
Control the frequency offset in parts per billion (ppb) that the servo will lock with. Review frequency-lock-threshold. Note:
This option is available only on supported platforms. |
|||
holdover-time-error-budget |
PTP clock holdover in specification time error budget in nano second (ns) |
|
|
|
ipv4-dscp |
IPv4 DiffServ code point (DSCP) value to be used for PTP packets |
|
||
ipv6-dscp |
IPv6 DiffServ code point (DSCP) value to be used for PTP packets |
|
||
local-priority |
Priority assigned to the local clock |
|
||
phase-adjust-threshold | Set the maximum phase offset that will be adjusted by the G.8275.2 enhanced servo
in a phase-aligned state. Review phase-adjust-threshold. Note:
This option is available only on supported platforms. |
|||
phase-lock-threshold | Control the maximum phase offset with which G.8275.2 enhanced servo enters the
phase-aligned state. Review phase-lock-threshold. Note:
This option is available only on supported platforms. |
|||
phy-timestamping |
PHY timestamping feature. |
|||
priority1 |
Used in selecting best timeTransmitter clock |
|
||
priority2 |
Tie-breaker in selecting best timeTransmitter clock |
|
||
profile-type |
PTP profile type |
|
||
syntonized-e2e-transparent |
Enable end-to-end syntonized IEEE1588 transparent clock functionality. |
|||
timescale |
The timescale of the timeTransmitter. |
|
||
unicast-negotiation |
Enable unicast negotiation. |
|||
utc-leap-seconds |
UTC leap seconds offset |
|
||
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
|
|
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.
|
not-master – Configures port as timeReceiver or passive or listening port. |
measure-only – Configures 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
frequency-lock-threshold
, phase-adjust-threshold
, and
phase-lock-threshold
options introduced in Junos OS Release 23.4R1
for MX10008 routers.
frequency-lock-threshold
, phase-adjust-threshold
, and
phase-lock-threshold
options supported on ACX7100-32C, ACX7100-48L,
and ACX7024 routers in Junos OS Evolved Release 24.2R1.
PTP profile-type options added to QFX5130-48C devices in Junos OS Evolved Release 24.2R1.
apts
and holdover-in-spec-duration
options introduced
in Junos OS Evolved Release 24.2R2 for ACX7024.