ptp
语法
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; }
语法 (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; }
语法(ACX7100-32C、ACX7100-48L 和 ACX7024)
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; 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; }
语法(QFX 系列)
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; } }
语法 (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; } }
语法 (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; } }
语法(PTX10004 和 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; } }
层次结构级别
[edit logical-systems name protocols], [edit protocols]
描述
在设备上配置 PTP。PTP,也称为 IEEE 1588v2,是一种基于数据包的技术,使运营商能够在基于数据包的移动回传网络上提供同步服务。IEEE 1588 PTP(第 2 版)时钟同步标准是一种高度精确的时间同步协议,用于同步分布式系统中的时钟。
系统时钟可以根据节点在网络中的角色进行分类。它们大致分为普通时钟和边界时钟。时间发射器时钟和时间接收器时钟称为普通时钟。边界时钟可以用作时间发射器时钟或时间接收器时钟。
您可以为精确时间协议 (PTP) 配置 timeTransmitter 时钟和 timeReceiver 时钟,以帮助同步分布式系统中的时钟。时间同步是通过在 timeTransmitter 时钟和 timeReceiver 时钟之间的会话中传输和接收的数据包实现的。
从 Junos OS 演化版 22.2R1 开始,使用 PTP 计时配置文件(如 G.8275.1 和 G.8275.2),T-TSC 时钟接受的时钟属性 priority2
值为 255。除 255 以外的任何值都将被 T-TSC 时钟拒绝。
从 Junos OS 演化版 23.2R1 开始,要支持 PTP 计时配置文件(如 G.8275.1 和 G.8275.2),您可以配置无源端口和有状态接口的计时性能和监控(仅在PTX10008设备上)。
选项
acquiring-state-announce-grandmaster | 当处于获取状态时,使用主数据集来通告消息。 |
|||
clock-mode | 时钟模式 |
|
||
disable-lag-revertive-switchover | 禁用 LAG 的恢复切换。 |
|||
domain | PTP 域号 |
|
||
e2e-transparent | 启用端到端IEEE1588透明时钟功能。 |
|||
frequency-lock-threshold | 控制伺服将锁定的频率偏移(以十亿分之一 (ppb) 为单位)。查看 频率锁定阈值。
注意:
此选项仅在支持的平台上可用。 |
|||
holdover-time-error-budget | 规格时间误差预算中的 PTP 时钟保持,以纳秒 (ns) 为单位 |
|
|
|
ipv4-dscp | 要用于 PTP 数据包的 IPv4 DiffServ 代码点 (DSCP) 值 |
|
||
ipv6-dscp | 要用于 PTP 数据包的 IPv6 DiffServ 代码点 (DSCP) 值 |
|
||
local-priority | 分配给本地时钟的优先级 |
|
||
phase-adjust-threshold | 设置将由 G.8275.2 增强型舵机在相位对齐状态下调整的最大相位偏移。查看 阶段调整阈值。
注意:
此选项仅在支持的平台上可用。 |
|||
phase-lock-threshold | 控制 G.8275.2 增强型伺服进入相位对齐状态的最大相位偏移。查看 锁相阈值。
注意:
此选项仅在支持的平台上可用。 |
|||
phy-timestamping | PHY 时间戳功能。 |
|||
priority1 | 用于选择最佳时间发射机时钟 |
|
||
priority2 | 选择最佳时间的决胜局发射机时钟 |
|
||
profile-type | PTP 配置文件类型 |
|
||
syntonized-e2e-transparent | 实现端到端同步IEEE1588透明时钟功能。 |
|||
timescale | TimeTransmitter 的时间刻度 |
|
||
unicast-negotiation | 启用单播协商。 |
|||
utc-leap-seconds | UTC 闰秒偏移量 |
|
||
The following options are available only for PTX10008 devices: | performance-monitor | Configure performance-monitor PTP packet delay metrics | 被动端口 – 为被动端口启用 PTP 性能监控
|
|
stateful interface | 用于将接口设置为 PTP 有状态角色的状态参数。 |
<接口名称> – 接口名称或端口范围。例如,et-0/0/4:0.0、et-0/0/4:1.0、et-2/0/4.0 被动端口监控 – 配置被动端口监控。
|
not-timeTransmitter – 将端口配置为timeReceiver或无源或侦听端口。 |
仅测量 – 将端口配置为被动端口或侦听端口。 |
其余语句将单独解释。请参阅 CLI 资源管理器。
所需权限级别
routing-在配置中查看此语句。
发布信息
Junos OS 12.2R1 版中引入的语句
frequency-lock-threshold
、 phase-adjust-threshold
和 phase-lock-threshold
Junos OS 23.4R1 版中为 MX10008 路由器引入的选项。
frequency-lock-threshold
Junos OS 演化版 24.2R1 中 ACX7100-32C、ACX7100-48L 和 ACX7024 路由器支持的 、 phase-adjust-threshold
和 phase-lock-threshold
选项。
在 Junos OS 演化版 24.2R1 中添加到 QFX5130-48C 设备的 PTP 配置文件类型选项。