ptp
Syntax
ptp {
acquiring-state-announce-grandmaster;
afts;
apts (domain domain | apply-groups | apply-groups-except;
clock-class-threshold <value>;
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-error-limit {...}
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 | g.8275.1 | g.8275.1.enh | g.8275.2 | g.8275.2.enh | ieee1588v2-custom | ieee-2008);
slave {...}
stateful {...}
unicast-negotiation;
utc-leap-seconds utc-leap-seconds;
}Syntax (ACX7100-32C and ACX7100-48L)
ptp {
apts (domain domain | apply-groups | apply-groups-except)
clock-class-threshold <value>
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(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 ( PTX10008)
ptp {
clock-mode(boundary | ordinary);
delay-comp {...}
disable-lag-revertive-switchover;
domain domain;
local-priority local-priority;
master {
announce-interval announce-interval;
}
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 {...}
utc-leap-seconds
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.
Options
| acquiring-state-announce-grandmaster |
Use grandmaster data set for announce messages when in acquiring state. |
||
| afts |
Enable assisted full timing support (AFTS) mode of operation. See, Assisted Full Timing Support (AFTS). |
||
| clock-class-threshold <value> |
The clock class threshold limit value for the upstream PTP timeTransmitter. The system will consider the upstream PTP timeTransmitter as a backup source only if the timeTransmitter's clock class is less than or equal to the set threshold value. If this parameter is not configured, the value is set to default. |
Note:
This option is available only on supported platforms. |
|
| clock-mode |
Clock mode |
|
|
| delay-comp | PTP delay compensation values. | ||
| 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-in-spec-duration |
In case, both GNSS and the PTP timing reference are lost or inactive, then the internal clock oscillator provides synchronization for the specified duration. After the holdover time expires, the clock class transition happens based on the mode of the system (T-GM, APTS or AFTS). For example, in T-GM mode, when the holdover timer is set to 120 minutes, the system sends the clock class 7 for 120 minutes and thereafter clock class 160 is sent. Similarly, in T-BC-A mode, when the holdover timer is set to 120 minutes, the system sends the clock class 135 for 120 minutes and thereafter clock class 165 is sent. 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-error-limit | Parameters for configuring a phase-error threshold. Review phase-error-limit. 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 |
|
|
| performance-monitor |
Configure performance-monitor PTP packet delay metrics
|
||
| 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
|
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.
phase-error-limit option introducted in Junos OS Release 25.4R1.
clock-class-threshold <value> option introduced in Junos OS
Evolved Release 25.4R1.
afts option introduced in Junos OS Evolved Release 25.4R1 for
ACX7348, ACX7332, and ACX7024.