60-PTP典型配置举例
本章节下载: 60-PTP典型配置举例 (572.14 KB)
目 录
3 二层环境下使用IEEE 1588 version 2协议的PTP典型配置举例
4 三层组播环境下使用IEEE 1588 version 2协议的PTP典型配置举例
5 三层单播环境下使用IEEE 1588 version 2协议的PTP典型配置举例
7 组播环境下使用SMPTE ST 2059-2协议的PTP典型配置举例
8 单播环境下使用SMPTE ST 2059-2协议的PTP典型配置举例
本章介绍了与PTP有关的各种典型配置举例。
本文档不严格与具体软、硬件版本对应,如果使用过程中与产品实际情况有差异,请参考相关产品手册,或以设备实际情况为准。
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文档假设您已了解PTP特性。
Device A、Device B和Device C采用IEEE 1588 version 2协议标准以及IEEE 802.3/Ethernet报文封装格式。
在由Device A、Device B和Device C组成的PTP域中,Device A和Device C的时钟节点类型都为OC,Device B的时钟节点类型为E2ETC。所有时钟节点都按照各自默认的最优时钟属性通过BMC协议动态选举最优时钟。
Device A和Device C的延时测量机制都采用缺省的请求应答机制。
图3-1 PTP组网图
表3-1 适用产品及版本
产品 |
软件版本 |
S6812系列 S6813系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S6550XE-HI系列 |
Release 6008及以上版本、Release 8106Pxx |
S6526XE-HI[EI]系列 |
Release 8340P02及以上版本 |
S6510系列 |
不支持 |
S6525XE-HI系列 |
Release 6008及以上版本、Release 8106Pxx |
S5850系列 |
不支持 |
S5570S-EI系列 |
不支持 |
S5560X-EI系列 |
不支持 |
S5560X-HI系列 |
Release 6615Pxx系列、Release 6628Pxx |
S5500V2-EI系列 |
不支持 |
MS4520V2-30F |
不支持 |
MS4520V2-30C MS4520V2-54C |
不支持 |
MS4520V2-28S MS4520V2-24TP |
不支持 |
ES5500系列 |
不支持 |
S6520X-HI系列 S6520X-EI系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S6520X-SI系列 S6520-SI系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S5000-EI系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
MS4600系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S5560S-EI系列 S5560S-SI系列 |
不支持 |
S5500V3-24P-SI S5500V3-48P-SI |
不支持 |
S5500V3-SI系列(除S5500V3-24P-SI、S5500V3-48P-SI) |
不支持 |
S5170-EI系列 |
不支持 |
S5130S-HI系列 S5130S-EI[-R]系列 S5130S-SI系列 S5130S-LI系列 |
不支持 |
S5120V2-SI系列 S5120V2-LI系列 |
不支持 |
S5120V3-EI系列 |
不支持 |
S5120V3-36F-SI S5120V3-28P-HPWR-SI S5120V3-54P-PWR-SI |
不支持 |
S5120V3-SI系列(除S5120V3-36F-SI、S5120V3-28P-HPWR-SI、S5120V3-54P-PWR-SI) |
不支持 |
S5120V3-LI系列 |
不支持 |
S3600V3-EI系列 |
不支持 |
S3600V3-SI系列 |
不支持 |
S3100V3-EI系列 S3100V3-SI系列 |
不支持 |
S5110V2系列 |
不支持 |
S5110V2-SI系列 |
不支持 |
S5000V3-EI系列 S5000V5-EI系列 |
不支持 |
S5000E-X系列 S5000X-EI系列 |
不支持 |
E128C E152C E500C系列 E500D系列 |
不支持 |
MS4320V2系列 MS4320V3系列 MS4300V2系列 MS4320系列 MS4200系列 |
不支持 |
WS5850-WiNet系列 |
不支持 |
WS5820-WiNet系列 WS5810-WiNet系列 |
不支持 |
WAS6000系列 |
不支持 |
IE4300-12P-AC & IE4300-12P-PWR IE4300-M系列(除IE4300-28P-M) IE4320系列(除IE4320-28P) |
不支持 |
IE4300-28P-M IE4320-28P |
Release 63xx系列 |
IE4520系列 |
Release 66xx系列 |
S5135S-EI系列 |
不支持 |
# 配置协议标准为IEEE 1588 version 2。
<DeviceA> system-view
[DeviceA] ptp profile 1588v2
# 配置时钟节点类型为OC。
[DeviceA] ptp mode oc
# 开启全局PTP功能。
[DeviceA] ptp global enable
# 配置通过PTP协议获取系统时间。
# 配置PTP域。
[DeviceA] ptp domain 0
[DeviceA] clock protocol ptp
# 在接口GigabitEthernet1/0/1上开启PTP功能。
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] ptp enable
[DeviceA-GigabitEthernet1/0/1] quit
# 配置协议标准为IEEE 1588 version 2。
<DeviceB> system-view
[DeviceB] ptp profile 1588v2
# 配置时钟节点类型为E2ETC。
[DeviceB] ptp mode e2etc
# 配置PTP域。
[DeviceB] ptp domain 0
# 开启全局PTP功能。
[DeviceB] ptp global enable
# 配置通过PTP协议获取系统时间。
[DeviceB] clock protocol ptp
# 在接口GigabitEthernet1/0/1上开启PTP功能。
[DeviceB] interface gigabitethernet 1/0/1
[DeviceB-GigabitEthernet1/0/1] ptp enable
[DeviceB-GigabitEthernet1/0/1] quit
# 在接口GigabitEthernet1/0/2上开启PTP功能。
[DeviceB] interface gigabitethernet 1/0/2
[DeviceB-GigabitEthernet1/0/2] ptp enable
[DeviceB-GigabitEthernet1/0/2] quit
# 配置协议标准为IEEE 1588 version 2。
<DeviceC> system-view
[DeviceC] ptp profile 1588v2
# 配置时钟节点类型为OC。
[DeviceC] ptp mode oc
# 配置PTP域。
[DeviceC] ptp domain 0
# 开启全局PTP功能。
[DeviceC] ptp global enable
# 配置通过PTP协议获取系统时间。
[DeviceC] clock protocol ptp
# 在接口GigabitEthernet1/0/1上开启PTP功能。
[DeviceC] interface gigabitethernet 1/0/1
[DeviceC-GigabitEthernet1/0/1] ptp enable
[DeviceC-GigabitEthernet1/0/1] quit
· 对于display ptp clock命令的显示信息,仅S6550XE-HI系列、S6526XE-HI、S6526XE-EI和S6525XE-HI系列支持"Lock status"字段。
· 对于display ptp interface brief命令的显示信息,仅S6550XE-HI系列、S6526XE-HI、S6526XE-EI和S6525XE-HI系列支持"InstID"字段。
当网络拓扑稳定后,通过使用display ptp clock命令可以查看设备上PTP时钟信息,display ptp interface brief命令显示简要运行信息。例如:
# 在Device A上显示设备的PTP时钟信息。
[DeviceA] display ptp clock
PTP global state : Enabled
PTP profile : IEEE 1588 Version 2
PTP mode : OC
Slave only : No
Lock status : Unlocked
Clock ID : 000FE2-FFFE-FF0000
Clock type : Local
Clock domain : 0
Number of PTP ports : 1
Priority1 : 128
Priority2 : 128
Clock quality :
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Offset from master : 0 (ns)
Mean path delay : 0 (ns)
Steps removed : 0
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device A上显示PTP的简要运行信息。
[DeviceA] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
GE1/0/1 0 Master E2E Two 0
# 在Device B上显示设备的PTP时钟信息。
[DeviceB] display ptp clock
PTP global state : Enabled
PTP profile : IEEE 1588 Version 2
PTP mode : E2ETC
Slave only : No
Lock status : Unlocked
Clock ID : 000FE2-FFFE-FF0001
Clock type : Local
Clock domain : 0
Number of PTP ports : 2
Priority1 : 128
Priority2 : 128
Clock quality :
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Offset from master : N/A
Mean path delay : N/A
Steps removed : N/A
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device B上显示PTP的简要运行信息。
[DeviceB] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
GE1/0/1 0 N/A E2E Two 0
GE1/0/2 0 N/A E2E Two 0
# 在Device C上显示设备的PTP时钟信息。
[DeviceC] display ptp clock
PTP global state : Enabled
PTP profile : IEEE 1588 Version 2
PTP mode : OC
Slave only : No
Lock status : Locked
Clock ID : 000FE2-FFFE-FF0002
Clock type : Local
Clock domain : 0
Number of PTP ports : 2
Priority1 : 128
Priority2 : 128
Clock quality :
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Offset from master : 25
Mean path delay : 323
Steps removed : 2
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device C上显示PTP的简要运行信息。
[DeviceC] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
GE1/0/1 0 Slave E2E Two 0
通过显示信息可以看出,Device A被选为最优时钟,其接口GigabitEthernet1/0/1为主接口,对外发布同步时间。
· Device A和Device C的配置文件:
#
clock protocol ptp
#
ptp profile 1588v2
ptp mode oc
#
interface GigabitEthernet 1/0/1
ptp enable
#
· Device B的配置文件:
#
clock protocol ptp
#
ptp profile 1588v2
ptp mode e2etc
#
interface GigabitEthernet 1/0/1
ptp enable
#
interface GigabitEthernet 1/0/2
ptp enable
#
Device A、Device B和Device C采用IEEE 1588 version 2协议标准以及组播UDP(IPv4)封装格式。
在由Device A、Device B和Device C组成的PTP域中,Device A和Device C的时钟节点类型都为OC,Device B的时钟节点类型为P2PTC。所有时钟节点都按照各自默认的最优时钟属性通过BMC协议动态选举最优时钟。
Device A和Device C的延时测量机制都采用端延时机制。
图4-1 PTP组网图
表4-1 适用产品及版本
产品 |
软件版本 |
S6812系列 S6813系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S6550XE-HI系列 |
Release 6008及以上版本、Release 8106Pxx |
S6526XE-HI[EI]系列 |
Release 8340P02及以上版本 |
S6510系列 |
不支持 |
S6525XE-HI系列 |
Release 6008及以上版本、Release 8106Pxx |
S5850系列 |
不支持 |
S5560X-EI系列 |
不支持 |
S5560X-HI系列 |
Release 6615Pxx系列、Release 6628Pxx |
S5570S-EI系列 |
不支持 |
S5500V2-EI系列 |
不支持 |
MS4520V2-30F |
不支持 |
MS4520V2-30C MS4520V2-54C |
不支持 |
MS4520V2-28S MS4520V2-24TP |
不支持 |
ES5500系列 |
不支持 |
S6520X-HI系列 S6520X-EI系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S6520X-SI系列 S6520-SI系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S5000-EI系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
MS4600系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S5560S-EI系列 S5560S-SI系列 |
不支持 |
S5500V3-24P-SI S5500V3-48P-SI |
不支持 |
S5500V3-SI系列(除S5500V3-24P-SI、S5500V3-48P-SI) |
不支持 |
S5170-EI系列 |
不支持 |
S5130S-HI系列 S5130S-EI[-R]系列 S5130S-SI系列 S5130S-LI系列 |
不支持 |
S5120V2-SI系列 S5120V2-LI系列 |
不支持 |
S5120V3-EI系列 |
不支持 |
S5120V3-36F-SI S5120V3-28P-HPWR-SI S5120V3-54P-PWR-SI |
不支持 |
S5120V3-SI系列(除S5120V3-36F-SI、S5120V3-28P-HPWR-SI、S5120V3-54P-PWR-SI) |
不支持 |
S5120V3-LI系列 |
不支持 |
S3600V3-EI系列 |
不支持 |
S3600V3-SI系列 |
不支持 |
S3100V3-EI系列 S3100V3-SI系列 |
不支持 |
S5110V2系列 |
不支持 |
S5110V2-SI系列 |
不支持 |
S5000V3-EI系列 S5000V5-EI系列 |
不支持 |
S5000E-X系列 S5000X-EI系列 |
不支持 |
E128C E152C E500C系列 E500D系列 |
不支持 |
MS4320V2系列 MS4320V3系列 MS4300V2系列 MS4320系列 MS4200系列 |
不支持 |
WS5850-WiNet系列 |
不支持 |
WS5820-WiNet系列 WS5810-WiNet系列 |
不支持 |
WAS6000系列 |
不支持 |
IE4300-12P-AC & IE4300-12P-PWR IE4300-M系列(除IE4300-28P-M) IE4320系列(除IE4320-28P) |
不支持 |
IE4300-28P-M IE4320-28P |
Release 63xx系列 |
IE4520系列 |
Release 66xx系列 |
S5135S-EI系列 |
不支持 |
# 配置协议标准为IEEE 1588 Version 2。
<DeviceA> system-view
[DeviceA] ptp profile 1588v2
# 配置时钟节点类型为OC。
[DeviceA] ptp mode oc
# 配置PTP域。
[DeviceA] ptp domain 0
# 开启全局PTP功能。
[DeviceA] ptp global enable
# 配置组播UDP(IPv4)封装的源IP地址。
[DeviceA] ptp source 10.10.10.1
# 配置通过PTP协议获取系统时间。
[DeviceA] clock protocol ptp
# 在接口GigabitEthernet1/0/1上配置PTP报文封装格式为UDP(IPv4)、延时测量机制为端延时机制,并开启PTP功能。
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] ptp transport-protocol udp
[DeviceA-GigabitEthernet1/0/1] ptp delay-mechanism p2p
[DeviceA-GigabitEthernet1/0/1] ptp enable
[DeviceA-GigabitEthernet1/0/1] quit
# 配置协议标准为IEEE 1588 Version 2。
<DeviceB> system-view
[DeviceB] ptp profile 1588v2
# 配置时钟节点类型为P2PTC。
[DeviceB] ptp mode p2ptc
# 配置PTP域。
[DeviceB] ptp domain 0
# 开启全局PTP功能。
[DeviceB] ptp global enable
# 配置组播UDP(IPv4)封装的源IP地址。
[DeviceB] ptp source 10.10.10.2
# 配置通过PTP协议获取系统时间。
[DeviceB] clock protocol ptp
# 在接口GigabitEthernet1/0/1上配置PTP报文封装格式为UDP(IPv4),并开启PTP功能。
[DeviceB] interface gigabitethernet 1/0/1
[DeviceB-GigabitEthernet1/0/1] ptp transport-protocol udp
[DeviceB-GigabitEthernet1/0/1] ptp enable
[DeviceB-GigabitEthernet1/0/1] quit
# 在接口GigabitEthernet1/0/2上配置PTP报文封装格式为UDP(IPv4),并开启PTP功能。
[DeviceB] interface gigabitethernet 1/0/2
[DeviceB-GigabitEthernet1/0/2] ptp transport-protocol udp
[DeviceB-GigabitEthernet1/0/2] ptp enable
[DeviceB-GigabitEthernet1/0/2] quit
# 配置协议标准为IEEE 1588 Version 2。
<DeviceC> system-view
[DeviceC] ptp profile 1588v2
# 配置时钟节点类型为OC。
[DeviceC] ptp mode oc
# 配置PTP域。
[DeviceC] ptp domain 0
# 开启全局PTP功能。
[DeviceC] ptp global enable
# 配置组播UDP(IPv4)封装的源IP地址。
[DeviceC] ptp source 11.10.10.1
# 配置通过PTP协议获取系统时间。
[DeviceC] clock protocol ptp
# 在接口GigabitEthernet1/0/1上配置PTP报文封装格式为UDP(IPv4)、延时测量机制为端延时机制,并开启PTP功能。
[DeviceC] interface gigabitethernet 1/0/1
[DeviceC-GigabitEthernet1/0/1] ptp transport-protocol udp
[DeviceC-GigabitEthernet1/0/1] ptp delay-mechanism p2p
[DeviceC-GigabitEthernet1/0/1] ptp enable
[DeviceC-GigabitEthernet1/0/1] quit
· 对于display ptp clock命令的显示信息,仅S6550XE-HI系列和S6525XE-HI系列支持"Lock status"字段。
· 对于display ptp interface brief命令的显示信息,仅S6550XE-HI系列和S6525XE-HI系列支持"InstID"字段。
当网络拓扑稳定后,通过使用display ptp clock命令可以查看设备上PTP时钟信息,display ptp interface brief命令显示简要运行信息。例如:
# 在Device A上显示设备的PTP时钟信息。
[DeviceA] display ptp clock
PTP global state : Enabled
PTP profile : IEEE 1588 Version 2
PTP mode : OC
Slave only : No
Lock status : Unlocked
Clock ID : 000FE2-FFFE-FF0000
Clock type : Local
Clock domain : 0
Number of PTP ports : 1
Priority1 : 128
Priority2 : 128
Clock quality :
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Offset from master : 0 (ns)
Mean path delay : 0 (ns)
Steps removed : 0
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device A上显示PTP的简要运行信息。
[DeviceA] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
GE1/0/1 0 Master P2P Two 0
# 在Device B上显示设备的PTP时钟信息。
[DeviceB] display ptp clock
PTP global state : Enabled
PTP profile : IEEE 1588 Version 2
PTP mode : P2PTC
Slave only : No
Lock status : Unlocked
Clock ID : 000FE2-FFFE-FF0001
Clock type : Local
Clock domain : 0
Number of PTP ports : 2
Priority1 : 128
Priority2 : 128
Clock quality :
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Offset from master : N/A
Mean path delay : N/A
Steps removed : N/A
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device B上显示PTP的简要运行信息。
[DeviceB] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
GE1/0/1 0 N/A P2P Two 0
GE1/0/2 0 N/A P2P Two 0
# 在Device C上显示设备的PTP时钟信息。
[DeviceC] display ptp clock
PTP global state : Enabled
PTP profile : IEEE 1588 Version 2
PTP mode : OC
Slave only : No
Lock status : Unlocked
Clock ID : 000FE2-FFFE-FF0002
Clock type : Local
Clock domain : 0
Number of PTP ports : 1
Priority1 : 128
Priority2 : 128
Clock quality :
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Offset from master : 0 (ns)
Mean path delay : 0 (ns)
Steps removed : 0
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device C上显示PTP的简要运行信息。
[DeviceC] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
GE1/0/1 0 Slave P2P Two 0
通过显示信息可以看出,Device A被选为最优时钟,其接口GigabitEthernet1/0/1为主接口,对外发布同步时间。
· Device A
#
clock protocol ptp
#
ptp profile 1588v2
ptp mode oc
ptp source 10.10.10.1
#
interface GigabitEthernet 1/0/1
ptp delay-mechanism p2p
ptp transport-protocol udp
ptp enable
#
· Device B
#
clock protocol ptp
#
ptp profile 1588v2
ptp mode p2ptc
ptp source 10.10.10.2
#
interface GigabitEthernet 1/0/1
ptp transport-protocol udp
ptp enable
#
interface GigabitEthernet 1/0/2
ptp transport-protocol udp
ptp enable
#
· Device C
#
clock protocol ptp
#
ptp profile 1588v2
ptp mode oc
ptp source 11.10.10.1
#
interface GigabitEthernet 1/0/1
ptp delay-mechanism p2p
ptp transport-protocol udp
ptp enable
#
Device A、Device B和Device C采用IEEE 1588 version 2协议标准以及单播IPv4 UDP封装格式。
在由Device A、Device B、Device C和基站组成的PTP域中,Device A、Device B和Device C的时钟节点类型都为BC,Device A外接ToD时钟源,Device C通过以太网接口连接基站,最终使得Device A、Device B、Device C、基站都和ToD时钟源的时间保持同步。
PTP域所有时钟节点的延时测量机制都采用缺省的请求应答机制。
图5-1 PTP组网图
表5-1 适用产品及版本
产品 |
软件版本 |
S6812系列 S6813系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S6550XE-HI系列 |
Release 6008及以上版本、Release 8106Pxx |
S6526XE-HI[EI]系列 |
不支持 |
S6510系列 |
不支持 |
S6525XE-HI系列 |
Release 6008及以上版本、Release 8106Pxx |
S5850系列 |
不支持 |
S5570S-EI系列 |
不支持 |
S5560X-EI系列 |
不支持 |
S5560X-HI系列 |
Release 6615Pxx系列、Release 6628Pxx |
S5500V2-EI系列 |
不支持 |
MS4520V2-30F |
不支持 |
MS4520V2-30C MS4520V2-54C |
不支持 |
MS4520V2-28S MS4520V2-24TP |
不支持 |
ES5500系列 |
不支持 |
S6520X-HI系列 S6520X-EI系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S6520X-SI系列 S6520-SI系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S5000-EI系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
MS4600系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S5560S-EI系列 S5560S-SI系列 |
不支持 |
S5500V3-24P-SI S5500V3-48P-SI |
不支持 |
S5500V3-SI系列(除S5500V3-24P-SI、S5500V3-48P-SI) |
不支持 |
S5170-EI系列 |
不支持 |
S5130S-HI系列 S5130S-EI[-R]系列 S5130S-SI系列 S5130S-LI系列 |
不支持 |
S5120V2-SI系列 S5120V2-LI系列 |
不支持 |
S5120V3-EI系列 |
不支持 |
S5120V3-36F-SI S5120V3-28P-HPWR-SI S5120V3-54P-PWR-SI |
不支持 |
S5120V3-SI系列(除S5120V3-36F-SI、S5120V3-28P-HPWR-SI、S5120V3-54P-PWR-SI) |
不支持 |
S5120V3-LI系列 |
不支持 |
S3600V3-EI系列 |
不支持 |
S3600V3-SI系列 |
不支持 |
S3100V3-EI系列 S3100V3-SI系列 |
不支持 |
S5110V2系列 |
不支持 |
S5110V2-SI系列 |
不支持 |
S5000V3-EI系列 S5000V5-EI系列 |
不支持 |
S5000E-X系列 S5000X-EI系列 |
不支持 |
E128C E152C E500C系列 E500D系列 |
不支持 |
MS4320V2系列 MS4320V3系列 MS4300V2系列 MS4320系列 MS4200系列 |
不支持 |
WS5850-WiNet系列 |
不支持 |
WS5820-WiNet系列 WS5810-WiNet系列 |
不支持 |
WAS6000系列 |
不支持 |
IE4300-12P-AC & IE4300-12P-PWR IE4300-M系列(除IE4300-28P-M) IE4320系列(除IE4320-28P) |
不支持 |
IE4300-28P-M IE4320-28P |
不支持 |
IE4520系列 |
不支持 |
S5135S-EI系列 |
不支持 |
本系列交换机不支持ToD接口,不能作为Device A,可以作为Device B或者C
按照上图配置各接口的IP地址,并确保路由可达,具体配置过程略。
# 配置协议标准为IEEE 1588 Version 2。
<DeviceA> system-view
[DeviceA] ptp profile 1588v2
# 配置时钟节点类型为BC。
[DeviceA] ptp mode bc
# 配置PTP域。
[DeviceA] ptp domain 0
# 开启全局PTP功能。
[DeviceA] ptp global enable
# 配置第一路ToD时钟信号为入方向、接收时延校正时间为1000纳秒。
[DeviceA] ptp tod0 input delay 1000
# 配置第一路外接ToD时钟源的第一优先级值为0。
[DeviceA] ptp priority clock-source tod0 priority1 0
# 在接口GigabitEthernet1/0/1上配置采用IPv4 UDP封装格式的单播PTP报文的目的IP地址,并开启PTP功能。
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] ptp transport-protocol udp
[DeviceA-GigabitEthernet1/0/1] ptp unicast-destination 10.10.10.2
[DeviceA-GigabitEthernet1/0/1] ptp enable
[DeviceA-GigabitEthernet1/0/1] quit
# 配置协议标准为IEEE 1588 Version 2。
<DeviceB> system-view
[DeviceB] ptp profile 1588v2
# 配置时钟节点类型为BC。
[DeviceB] ptp mode bc
# 配置PTP域。
[DeviceB] ptp domain 0
# 开启全局PTP功能。
[DeviceB] ptp global enable
# 配置设备通过PTP协议获取系统时间。
[DeviceA] clock protocol ptp
# 在接口GigabitEthernet1/0/1上配置采用IPv4 UDP封装格式的单播PTP报文的目的IP地址,并开启PTP功能。
[DeviceB] interface gigabitethernet 1/0/1
[DeviceB-GigabitEthernet1/0/1] ptp transport-protocol udp
[DeviceB-GigabitEthernet1/0/1] ptp unicast-destination 10.10.10.1
[DeviceB-GigabitEthernet1/0/1] ptp enable
[DeviceB-GigabitEthernet1/0/1] quit
# 在接口GigabitEthernet1/0/2上配置采用IPv4 UDP封装格式的单播PTP报文的目的IP地址,并开启PTP功能。
[DeviceB] interface gigabitethernet 1/0/2
[DeviceB-GigabitEthernet1/0/2] ptp transport-protocol udp
[DeviceB-GigabitEthernet1/0/2] ptp unicast-destination 11.10.10.1
[DeviceB-GigabitEthernet1/0/2] ptp enable
[DeviceB-GigabitEthernet1/0/2] quit
# 配置协议标准为IEEE 1588 Version 2。
<DeviceC> system-view
[DeviceC] ptp profile 1588v2
# 配置时钟节点类型为BC。
[DeviceC] ptp mode bc
# 配置PTP域。
[DeviceC] ptp domain 0
# 开启全局PTP功能。
[DeviceC] ptp global enable
# 配置设备通过PTP协议获取系统时间。
[DeviceA] clock protocol ptp
# 在接口GigabitEthernet1/0/1上配置采用IPv4 UDP封装格式的单播PTP报文的目的IP地址,并开启PTP功能。
[DeviceC] interface gigabitethernet 1/0/1
[DeviceC-GigabitEthernet1/0/1] ptp transport-protocol udp
[DeviceC-GigabitEthernet1/0/1] ptp unicast-destination 11.10.10.2
[DeviceC-GigabitEthernet1/0/1] ptp enable
[DeviceC-GigabitEthernet1/0/1] quit
# 在接口GigabitEthernet1/0/2上配置IPv4 UDP封装格式,单播PTP报文的目的IP地址,并开启PTP功能。
[DeviceC] interface gigabitethernet 1/0/2
[DeviceC-GigabitEthernet1/0/2] ptp transport-protocol udp
[DeviceC-GigabitEthernet1/0/2] ptp unicast-destination 12.10.10.1
[DeviceC-GigabitEthernet1/0/2] ptp enable
[DeviceC-GigabitEthernet1/0/2] quit
请在基站上配置PTP域值为0,PTP报文封装格式为IPv4 UDP,单播PTP报文的目的IP地址为12.10.10.2,延时测量机制为请求应答机制。具体配置请参见基站的相关手册。
· 对于display ptp clock命令的显示信息,仅S6550XE-HI系列和S6525XE-HI系列支持"Lock status"字段。
· 对于display ptp interface brief命令的显示信息,仅S6550XE-HI系列和S6525XE-HI系列支持"InstID"字段。
当网络拓扑稳定后,通过使用display ptp clock命令可以查看设备上PTP时钟信息,display ptp interface brief命令显示简要运行信息。例如:
# 在Device A上显示设备的PTP时钟信息。
[DeviceA] display ptp clock
PTP global state : Enabled
PTP profile : IEEE 1588 Version 2
PTP mode : BC
Slave only : No
Lock status : Unlocked
Clock ID : 000FE2-FFFE-FF0000
Clock type : ToD0
ToD direction : In
ToD delay time : 1000 (ns)
Clock domain : 0
Number of PTP ports : 1
Priority1 : 0
Priority2 : 128
Clock quality :
Class : 6
Accuracy : 32
Offset (log variance) : 65535
Offset from master : 0 (ns)
Mean path delay : 0 (ns)
Steps removed : 0
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device A上显示PTP的简要运行信息。
[DeviceA] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
GE1/0/1 0 Master E2E Two 0
# 在Device B上显示设备的PTP时钟信息。
[DeviceA] display ptp clock
PTP global state : Enabled
PTP profile : IEEE 1588 Version 2
PTP mode : BC
Slave only : No
Lock status : Locked
Clock ID : 000FE2-FFFE-FF0001
Clock type : ToD0
ToD direction : In
ToD delay time : 1000 (ns)
Clock domain : 0
Number of PTP ports : 1
Priority1 : 0
Priority2 : 128
Clock quality :
Class : 6
Accuracy : 32
Offset (log variance) : 65535
Offset from master : 12 (ns)
Mean path delay : 323 (ns)
Steps removed : 1
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device B上显示PTP的简要运行信息。
[DeviceB] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
GE1/0/1 0 Slave E2E Two 0
GE1/0/2 0 Master E2E Two 0
# 在Device C上显示设备的PTP时钟信息。
[DeviceC] display ptp clock
PTP global state : Enabled
PTP profile : IEEE 1588 Version 2
PTP mode : BC
Slave only : No
Lock status : Locked
Clock ID : 000FE2-FFFE-FF0001
Clock type : Local
Clock domain : 0
Number of PTP ports : 2
Priority1 : 128
Priority2 : 128
Clock quality :
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Offset from master : 25 (ns)
Mean path delay : 2791000 (ns)
Steps removed : 2
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device C上显示PTP的简要运行信息。
[DeviceC] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
GE1/0/1 0 Slave E2E Two 0
GE1/0/2 0 Master E2E Two 0
· Device A
#
clock protocol ptp
#
ptp profile IEEE 1588 Version 2
ptp mode bc
ptp domain 0
ptp global enable
ptp tod0 input delay 1000
ptp priority clock-source tod0 priority1 0
#
interface GigabitEthernet 1/0/1
ptp transport-protocol
ptp unicast-destination 10.10.10.2
ptp enable
#
· Device B
#
clock protocol ptp
#
ptp profile IEEE 1588 Version 2
ptp mode bc
ptp domain 0
ptp global enable
#
interface GigabitEthernet 1/0/1
ptp transport-protocol
ptp unicast-destination 10.10.10.1
ptp enable
#
interface GigabitEthernet 1/0/2
ptp enable
#
· Device C
#
clock protocol ptp
#
ptp profile IEEE 1588 Version 2
ptp mode bc
ptp domain 0
ptp global enable
#
interface GigabitEthernet 1/0/1
ptp transport-protocol
ptp unicast-destination 11.10.10.2
ptp enable
#
interface GigabitEthernet 1/0/2
ptp transport-protocol
ptp unicast-destination 12.10.10.1
ptp enable
#
Device A、Device B和Device C采用IEEE 802.1AS协议标准。
在由Device A、Device B和Device C组成的PTP域中,Device A和Device C的时钟节点类型都为OC,Device B的时钟节点类型为P2PTC。所有时钟节点都按照各自默认的最优时钟属性通过BMC协议动态选举最优时钟。
PTP域所有时钟节点的延时测量机制都采用缺省的端延时机制。
图6-1 PTP组网图
表6-1 适用产品及版本
产品 |
软件版本 |
S6812系列 S6813系列 |
不支持 |
S6550XE-HI系列 |
Release 6008及以上版本、Release 8106Pxx |
S6526XE-HI[EI]系列 |
Release 8340P02及以上版本 |
S6510系列 |
不支持 |
S6525XE-HI系列 |
Release 6008及以上版本、Release 8106Pxx |
S5850系列 |
不支持 |
S5560X-EI系列 |
不支持 |
S5560X-HI系列 |
不支持 |
S5570S-EI系列 |
不支持 |
S5500V2-EI系列 |
不支持 |
MS4520V2-30F |
不支持 |
MS4520V2-30C MS4520V2-54C |
不支持 |
MS4520V2-28S MS4520V2-24TP |
不支持 |
ES5500系列 |
不支持 |
S6520X-HI系列 S6520X-EI系列 |
不支持 |
S6520X-SI系列 S6520-SI系列 |
不支持 |
S5000-EI系列 |
不支持 |
MS4600系列 |
不支持 |
S5560S-EI系列 S5560S-SI系列 |
不支持 |
S5500V3-24P-SI S5500V3-48P-SI |
不支持 |
S5500V3-SI系列(除S5500V3-24P-SI、S5500V3-48P-SI) |
不支持 |
S5170-EI系列 |
不支持 |
S5130S-HI系列 S5130S-EI[-R]系列 S5130S-SI系列 S5130S-LI系列 |
不支持 |
S5120V2-SI系列 S5120V2-LI系列 |
不支持 |
S5120V3-EI系列 |
不支持 |
S5120V3-36F-SI S5120V3-28P-HPWR-SI S5120V3-54P-PWR-SI |
不支持 |
S5120V3-SI系列(除S5120V3-36F-SI、S5120V3-28P-HPWR-SI、S5120V3-54P-PWR-SI) |
不支持 |
S5120V3-LI系列 |
不支持 |
S3600V3-EI系列 |
不支持 |
S3600V3-SI系列 |
不支持 |
S3100V3-EI系列 S3100V3-SI系列 |
不支持 |
S5110V2系列 |
不支持 |
S5110V2-SI系列 |
不支持 |
S5000V3-EI系列 S5000V5-EI系列 |
不支持 |
S5000E-X系列 S5000X-EI系列 |
不支持 |
E128C E152C E500C系列 E500D系列 |
不支持 |
MS4320V2系列 MS4320V3系列 MS4300V2系列 MS4320系列 MS4200系列 |
不支持 |
WS5850-WiNet系列 |
不支持 |
WS5820-WiNet系列 WS5810-WiNet系列 |
不支持 |
WAS6000系列 |
不支持 |
IE4300-12P-AC & IE4300-12P-PWR IE4300-M系列(除IE4300-28P-M) IE4320系列(除IE4320-28P) |
不支持 |
IE4300-28P-M IE4320-28P |
不支持 |
IE4520系列 |
不支持 |
S5135S-EI系列 |
不支持 |
# 配置协议标准为IEEE 802.1AS。
<DeviceA> system-view
[DeviceA] ptp profile 8021as
# 配置时钟节点类型为OC。
[DeviceA] ptp mode oc
# 配置PTP域。
[DeviceA] ptp domain 0
# 开启全局PTP功能。
[DeviceA] ptp global enable
# 配置通过PTP协议获取系统时间。
[DeviceA] clock protocol ptp
# 在接口Twenty-FiveGigE1/0/1上开启PTP功能。
[DeviceA] interface twenty-fivegige 1/0/1
[DeviceA-Twenty-FiveGigE1/0/1] ptp enable
[DeviceA-Twenty-FiveGigE1/0/1] quit
# 配置协议标准为IEEE 802.1AS。
<DeviceB> system-view
[DeviceB] ptp profile 8021as
# 配置时钟节点类型为P2PTC。
[DeviceB] ptp mode p2ptc
# 配置PTP域。
[DeviceA] ptp domain 0
# 开启全局PTP功能。
[DeviceB] ptp global enable
# 配置通过PTP协议获取系统时间。
[DeviceB] clock protocol ptp
# 在接口Twenty-FiveGigE1/0/1上开启PTP功能。
[DeviceB] interface twenty-fivegige 1/0/1
[DeviceB-Twenty-FiveGigE1/0/1] ptp enable
[DeviceB-Twenty-FiveGigE1/0/1] quit
# 在接口Twenty-FiveGigE1/0/2上开启PTP功能。
[DeviceB] interface twenty-fivegige 1/0/2
[DeviceB-Twenty-FiveGigE1/0/2] ptp enable
[DeviceB-Twenty-FiveGigE1/0/2] quit
# 配置协议标准为IEEE 802.1AS。
<DeviceC> system-view
[DeviceC] ptp profile 8021as
# 配置时钟节点类型为OC。
[DeviceC] ptp mode oc
# 配置PTP域。
[DeviceC] ptp domain 0
# 开启全局PTP功能。
[DeviceC] ptp global enable
# 配置通过PTP协议获取系统时间。
[DeviceC] clock protocol ptp
# 在接口Twenty-FiveGigE1/0/1上开启PTP功能。
[DeviceC] interface twenty-fivegige 1/0/1
[DeviceC-Twenty-FiveGigE1/0/1] ptp enable
[DeviceC-Twenty-FiveGigE1/0/1] quit
· 对于display ptp clock命令的显示信息,仅S6550XE-HI系列和S6525XE-HI系列支持"Lock status"字段。
· 对于display ptp interface brief命令的显示信息,仅S6550XE-HI系列和S6525XE-HI系列支持"InstID"字段。
当网络拓扑稳定后,通过使用display ptp clock命令可以查看设备上PTP时钟信息,display ptp interface brief命令显示简要运行信息。例如:
# 在Device A上显示设备的PTP时钟信息。
[DeviceA] display ptp clock
PTP global state : Enabled
PTP profile : IEEE 802.1AS
PTP mode : OC
Slave only : No
Lock status : Unlocked
Clock ID : 000FE2-FFFE-FF0000
Clock type : Local
Clock domain : 0
Number of PTP ports : 1
Priority1 : 246
Priority2 : 248
Clock quality :
Class : 248
Accuracy : 254
Offset (log variance) : 16640
Offset from master : 0 (ns)
Mean path delay : 0 (ns)
Steps removed : 0
Local clock time : Sun Jan 15 20:57:29 2011
# 在Device A上显示PTP的简要运行信息。
[DeviceA] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
WGE1/0/1 0 Master P2P Two 0
# 在Device B上显示设备的PTP时钟信息。
[DeviceB] display ptp clock
PTP global state : Enabled
PTP profile : IEEE 802.1AS
PTP mode : P2PTC
Slave only : No
Lock status : Unlocked
Clock ID : 000FE2-FFFE-FF0001
Clock type : Local
Clock domain : 0
Number of PTP ports : 2
Priority1 : 246
Priority2 : 248
Clock quality :
Class : 248
Accuracy : 254
Offset (log variance) : 16640
Offset from master : N/A
Mean path delay : N/A
Steps removed : N/A
Local clock time : Sun Jan 15 20:57:29 2011
# 在Device B上显示PTP的简要运行信息。
[DeviceB] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
WGE1/0/1 0 N/A P2P Two 0
WGE1/0/2 0 N/A P2P Two 0
# 在Device C上显示设备的PTP时钟信息。
[DeviceC] display ptp clock
PTP global state : Enabled
PTP profile : IEEE 802.1AS
PTP mode : OC
Slave only : No
Lock status : Locked
Clock ID : 000FE2-FFFE-FF0002
Clock type : Local
Clock domain : 0
Number of PTP ports : 1
Priority1 : 128
Priority2 : 128
Clock quality :
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Offset from master : 25 (ns)
Mean path delay : 0 (ns)
Steps removed : 2
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device C上显示PTP的简要运行信息。
[DeviceC] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
WGE1/0/1 0 Slave P2P Two 0
通过显示信息可以看出,Device A被选为最优时钟,其接口Twenty-FiveGigE1/0/1为主接口,对外发布同步时间。
· Device A和Device C
#
ptp profile 8021as
ptp mode oc
ptp domain 0
ptp global enable
#
interface Twenty-FiveGigE 1/0/1
ptp enable
#
· Device B
#
ptp profile 8021as
ptp mode p2ptc
ptp domain 0
ptp global enable
#
interface Twenty-FiveGigE 1/0/1
ptp enable
#
interface Twenty-FiveGigE 1/0/2
ptp enable
#
Device A、Device B和Device C采用SMPTE ST 2059-2协议标准以及组播UDP(IPv4)封装格式。
在由Device A、Device B和Device C组成的PTP域中,Device A和Device C的时钟节点类型都为OC,Device B的时钟节点类型为P2PTC。所有时钟节点都按照各自默认的最优时钟属性通过BMC协议动态选举最优时钟。
Device A和Device C的延时测量机制都采用端延时机制。
图7-1 PTP组网图
表7-1 适用产品及版本
产品 |
软件版本 |
S6812系列 S6813系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S6550XE-HI系列 |
Release 6008及以上版本、Release 8106Pxx |
S6526XE-HI[EI]系列 |
Release 8340P02及以上版本 |
S6510系列 |
不支持 |
S6525XE-HI系列 |
Release 6008及以上版本、Release 8106Pxx |
S5850系列 |
不支持 |
S5560X-EI系列 |
不支持 |
S5560X-HI系列 |
Release 6615Pxx系列、Release 6628Pxx |
S5570S-EI系列 |
不支持 |
S5500V2-EI系列 |
不支持 |
MS4520V2-30F |
不支持 |
MS4520V2-30C MS4520V2-54C |
不支持 |
MS4520V2-28S MS4520V2-24TP |
不支持 |
ES5500系列 |
不支持 |
S6520X-HI系列 S6520X-EI系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S6520X-SI系列 S6520-SI系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S5000-EI系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
MS4600系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S5560S-EI系列 S5560S-SI系列 |
不支持 |
S5500V3-24P-SI S5500V3-48P-SI |
不支持 |
S5500V3-SI系列(除S5500V3-24P-SI、S5500V3-48P-SI) |
不支持 |
S5170-EI系列 |
不支持 |
S5130S-HI系列 S5130S-EI[-R]系列 S5130S-SI系列 S5130S-LI系列 |
不支持 |
S5120V2-SI系列 S5120V2-LI系列 |
不支持 |
S5120V3-EI系列 |
不支持 |
S5120V3-36F-SI S5120V3-28P-HPWR-SI S5120V3-54P-PWR-SI |
不支持 |
S5120V3-SI系列(除S5120V3-36F-SI、S5120V3-28P-HPWR-SI、S5120V3-54P-PWR-SI) |
不支持 |
S5120V3-LI系列 |
不支持 |
S3600V3-EI系列 |
不支持 |
S3600V3-SI系列 |
不支持 |
S3100V3-EI系列 S3100V3-SI系列 |
不支持 |
S5110V2系列 |
不支持 |
S5110V2-SI系列 |
不支持 |
S5000V3-EI系列 S5000V5-EI系列 |
不支持 |
S5000E-X系列 S5000X-EI系列 |
不支持 |
E128C E152C E500C系列 E500D系列 |
不支持 |
MS4320V2系列 MS4320V3系列 MS4300V2系列 MS4320系列 MS4200系列 |
不支持 |
WS5850-WiNet系列 |
不支持 |
WS5820-WiNet系列 WS5810-WiNet系列 |
不支持 |
WAS6000系列 |
不支持 |
IE4300-12P-AC & IE4300-12P-PWR IE4300-M系列(除IE4300-28P-M) IE4320系列(除IE4320-28P) |
不支持 |
IE4300-28P-M IE4320-28P |
Release 63xx系列 |
IE4520系列 |
Release 66xx系列 |
S5135S-EI系列 |
不支持 |
# 配置协议标准为SMPTE ST 2059-2。
<DeviceA> system-view
[DeviceA] ptp profile st2059-2
# 配置时钟节点类型为OC。
[DeviceA] ptp mode oc
# 配置PTP域。
[DeviceA] ptp domain 0
# 开启全局PTP功能。
[DeviceA] ptp global enable
# 配置组播UDP(IPv4)封装的源IP地址。
[DeviceA] ptp source 10.10.10.1
# 配置通过PTP协议获取系统时间。
[DeviceA] clock protocol ptp
# 在接口GigabitEthernet1/0/1上配置延时测量机制为端延时机制,并开启PTP功能。
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] ptp delay-mechanism p2p
[DeviceA-GigabitEthernet1/0/1] ptp enable
[DeviceA-GigabitEthernet1/0/1] quit
# 配置协议标准为SMPTE ST 2059-2。
<DeviceB> system-view
[DeviceB] ptp profile st2059-2
# 配置时钟节点类型为P2PTC。
[DeviceB] ptp mode p2ptc
# 配置PTP域。
[DeviceB] ptp domain 0
# 开启全局PTP功能。
[DeviceB] ptp global enable
# 配置组播UDP(IPv4)封装的源IP地址。
[DeviceB] ptp source 10.10.10.2
# 配置通过PTP协议获取系统时间。
[DeviceB] clock protocol ptp
# 在接口GigabitEthernet1/0/1上开启PTP功能。
[DeviceB] interface gigabitethernet 1/0/1
[DeviceB-GigabitEthernet1/0/1] ptp enable
[DeviceB-GigabitEthernet1/0/1] quit
# 在接口GigabitEthernet1/0/2上开启PTP功能。
[DeviceB] interface gigabitethernet 1/0/2
[DeviceB-GigabitEthernet1/0/2] ptp enable
[DeviceB-GigabitEthernet1/0/2] quit
# 配置协议标准为SMPTE ST 2059-2。
<DeviceC> system-view
[DeviceC] ptp profile st2059-2
# 配置时钟节点类型为OC。
[DeviceC] ptp mode oc
# 配置PTP域。
[DeviceC] ptp domain 0
# 开启全局PTP功能。
[DeviceC] ptp global enable
# 配置组播UDP(IPv4)封装的源IP地址。
[DeviceC] ptp source 11.10.10.1
# 配置通过PTP协议获取系统时间。
[DeviceC] clock protocol ptp
# 在接口GigabitEthernet1/0/1上配置延时测量机制为端延时机制,并开启PTP功能。
[DeviceC] interface gigabitethernet 1/0/1
[DeviceC-GigabitEthernet1/0/1] ptp delay-mechanism p2p
[DeviceC-GigabitEthernet1/0/1] ptp enable
[DeviceC-GigabitEthernet1/0/1] quit
· 对于display ptp clock命令的显示信息,仅S6550XE-HI系列和S6525XE-HI系列支持"Lock status"字段。
· 对于display ptp interface brief命令的显示信息,仅S6550XE-HI系列和S6525XE-HI系列支持"InstID"字段。
当网络拓扑稳定后,通过使用display ptp clock命令可以查看设备上PTP时钟信息,display ptp interface brief命令显示简要运行信息。例如:
# 在Device A上显示设备的PTP时钟信息。
[DeviceA] display ptp clock
PTP global state : Enabled
PTP profile : SMPTE ST 2059-2
PTP mode : OC
Slave only : No
Lock status : Unlocked
Clock ID : 000FE2-FFFE-FF0000
Clock type : Local
Clock domain : 0
Number of PTP ports : 1
Priority1 : 128
Priority2 : 128
Clock quality :
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Offset from master : 0 (ns)
Mean path delay : 0 (ns)
Steps removed : 0
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device A上显示PTP的简要运行信息。
[DeviceA] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
GE1/0/1 0 Master P2P Two 0
# 在Device B上显示设备的PTP时钟信息。
[DeviceB] display ptp clock
PTP global state : Enabled
PTP profile : SMPTE ST 2059-2
PTP mode : P2PTC
Slave only : No
Lock status : Unlocked
Clock ID : 000FE2-FFFE-FF0001
Clock type : Local
Clock domain : 0
Number of PTP ports : 2
Priority1 : 128
Priority2 : 128
Clock quality :
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Offset from master : N/A
Mean path delay : N/A
Steps removed : N/A
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device B上显示PTP的简要运行信息。
[DeviceB] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
GE1/0/1 0 N/A P2P Two 0
GE1/0/2 0 N/A P2P Two 0
# 在Device C上显示设备的PTP时钟信息。
[DeviceC] display ptp clock
PTP global state : Enabled
PTP profile : SMPTE ST 2059-2
PTP mode : OC
Slave only : No
Lock status : Locked
Clock ID : 000FE2-FFFE-FF0002
Clock type : Local
Clock domain : 0
Number of PTP ports : 1
Priority1 : 128
Priority2 : 128
Clock quality :
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Offset from master : 25 (ns)
Mean path delay : 0 (ns)
Steps removed : 2
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device C上显示PTP的简要运行信息。
[DeviceC] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
GE1/0/1 0 Slave P2P Two 0
通过显示信息可以看出,Device A被选为最优时钟,其接口GigabitEthernet1/0/1为主接口,对外发布同步时间。
· Device A
#
clock protocol ptp
#
ptp profile st2059-2
ptp mode oc
ptp domain 0
ptp global enable
ptp source 10.10.10.1
#
interface GigabitEthernet 1/0/1
ptp delay-mechanism p2p
ptp enable
#
· Device B
#
clock protocol ptp
#
ptp profile st2059-2
ptp mode p2ptc
ptp domain 0
ptp global enable
ptp source 10.10.10.2
#
interface GigabitEthernet 1/0/1
ptp enable
#
interface GigabitEthernet 1/0/2
ptp enable
#
· Device C
#
clock protocol ptp
#
ptp profile st2059-2
ptp mode oc
ptp domain 0
ptp global enable
ptp source 11.10.10.1
#
interface GigabitEthernet 1/0/1
ptp delay-mechanism p2p
ptp enable
#
Device A、Device B和Device C采用SMPTE ST 2059-2协议标准以及单播IPv4 UDP封装格式。
在由Device A、Device B、Device C和基站组成的PTP域中,Device A、Device B和Device C的时钟节点类型都为BC,Device A外接ToD时钟源,Device C通过以太网接口连接基站,最终使得Device A、Device B、Device C、基站都和ToD时钟源的时间保持同步。
PTP域所有时钟节点的延时测量机制都采用缺省的请求应答机制。
图8-1 PTP组网图
表8-1 适用产品及版本
产品 |
软件版本 |
S6812系列 S6813系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S6550XE-HI系列 |
Release 6008及以上版本、Release 8106Pxx |
S6526XE-HI[EI]系列 |
不支持 |
S6510系列 |
不支持 |
S6525XE-HI系列 |
Release 6008及以上版本、Release 8106Pxx |
S5850系列 |
不支持 |
S5570S-EI系列 |
不支持 |
S5560X-EI系列 |
不支持 |
S5560X-HI系列 |
Release 6615Pxx系列、Release 6628Pxx |
S5500V2-EI系列 |
不支持 |
MS4520V2-30F |
不支持 |
MS4520V2-30C MS4520V2-54C |
不支持 |
MS4520V2-28S MS4520V2-24TP |
不支持 |
ES5500系列 |
不支持 |
S6520X-HI系列 S6520X-EI系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S6520X-SI系列 S6520-SI系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S5000-EI系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
MS4600系列 |
Release 6615Pxx系列、Release 6628Pxx系列 |
S5560S-EI系列 S5560S-SI系列 |
不支持 |
S5500V3-24P-SI S5500V3-48P-SI |
不支持 |
S5500V3-SI系列(除S5500V3-24P-SI、S5500V3-48P-SI) |
不支持 |
S5170-EI系列 |
不支持 |
S5130S-HI系列 S5130S-EI[-R]系列 S5130S-SI系列 S5130S-LI系列 |
不支持 |
S5120V2-SI系列 S5120V2-LI系列 |
不支持 |
S5120V3-EI系列 |
不支持 |
S5120V3-36F-SI S5120V3-28P-HPWR-SI S5120V3-54P-PWR-SI |
不支持 |
S5120V3-SI系列(除S5120V3-36F-SI、S5120V3-28P-HPWR-SI、S5120V3-54P-PWR-SI) |
不支持 |
S5120V3-LI系列 |
不支持 |
S3600V3-EI系列 |
不支持 |
S3600V3-SI系列 |
不支持 |
S3100V3-EI系列 S3100V3-SI系列 |
不支持 |
S5110V2系列 |
不支持 |
S5110V2-SI系列 |
不支持 |
S5000V3-EI系列 S5000V5-EI系列 |
不支持 |
S5000E-X系列 S5000X-EI系列 |
不支持 |
E128C E152C E500C系列 E500D系列 |
不支持 |
MS4320V2系列 MS4320V3系列 MS4300V2系列 MS4320系列 MS4200系列 |
不支持 |
WS5850-WiNet系列 |
不支持 |
WS5820-WiNet系列 WS5810-WiNet系列 |
不支持 |
WAS6000系列 |
不支持 |
IE4300-12P-AC & IE4300-12P-PWR IE4300-M系列(除IE4300-28P-M) IE4320系列(除IE4320-28P) |
不支持 |
IE4300-28P-M IE4320-28P |
不支持 |
IE4520系列 |
不支持 |
S5135S-EI系列 |
不支持 |
SMPTE ST 2059-2协议支持IPv4 UDP封装格式,不支持IEEE 802.3/Ethernet封装格式;支持组播通信方式,也支持单播通信方式。
按照上图配置各接口的IP地址,并确保路由可达,具体配置过程略。
本系列交换机不支持ToD接口,不能作为Device A,可以作为Device B或者C。
# 配置协议标准为SMPTE ST 2059-2。
<DeviceA> system-view
[DeviceA] ptp profile st2059-2
# 配置时钟节点类型为BC。
[DeviceA] ptp mode bc
# 配置PTP域。
[DeviceA] ptp domain 0
# 开启全局PTP功能。
[DeviceA] ptp global enable
# 配置第一路ToD时钟信号为入方向、接收时延校正时间为1000纳秒。
[DeviceA] ptp tod0 input delay 1000
# 配置第一路外接ToD时钟源的第一优先级值为0。
[DeviceA] ptp priority clock-source tod0 priority1 0
# 在接口GigabitEthernet1/0/1上配置单播PTP报文的目的IP地址,并开启PTP功能。(SMPTE ST 2059-2的PTP报文封装格式缺省为IPv4 UDP,无需配置)
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] ptp unicast-destination 10.10.10.2
[DeviceA-GigabitEthernet1/0/1] ptp enable
[DeviceA-GigabitEthernet1/0/1] quit
# 配置协议标准为SMPTE ST 2059-2。
<DeviceB> system-view
[DeviceB] ptp profile st2059-2
# 配置时钟节点类型为BC。
[DeviceB] ptp mode bc
# 配置PTP域。
[DeviceB] ptp domain 0
# 开启全局PTP功能。
[DeviceB] ptp global enable
# 配置设备通过PTP协议获取系统时间。
[DeviceA] clock protocol ptp
# 在接口GigabitEthernet1/0/1上配置单播PTP报文的目的IP地址,并开启PTP功能。(SMPTE ST 2059-2的PTP报文封装格式缺省为IPv4 UDP,无需配置)
[DeviceB] interface gigabitethernet 1/0/1
[DeviceB-GigabitEthernet1/0/1] ptp unicast-destination 10.10.10.1
[DeviceB-GigabitEthernet1/0/1] ptp enable
[DeviceB-GigabitEthernet1/0/1] quit
# 在接口GigabitEthernet1/0/2上配置单播PTP报文的目的IP地址,并开启PTP功能。(SMPTE ST 2059-2的PTP报文封装格式缺省为IPv4 UDP,无需配置)
[DeviceB] interface gigabitethernet 1/0/2
[DeviceB-GigabitEthernet1/0/2] ptp unicast-destination 11.10.10.1
[DeviceB-GigabitEthernet1/0/2] ptp enable
[DeviceB-GigabitEthernet1/0/2] quit
# 配置协议标准为SMPTE ST 2059-2。
<DeviceC> system-view
[DeviceC] ptp profile st2059-2
# 配置时钟节点类型为BC。
[DeviceC] ptp mode bc
# 配置PTP域。
[DeviceC] ptp domain 0
# 开启全局PTP功能。
[DeviceC] ptp global enable
# 配置设备通过PTP协议获取系统时间。
[DeviceA] clock protocol ptp
# 在接口GigabitEthernet1/0/1上配置单播PTP报文的目的IP地址,并开启PTP功能。
[DeviceC] interface gigabitethernet 1/0/1
[DeviceC-GigabitEthernet1/0/1] ptp unicast-destination 11.10.10.2
[DeviceC-GigabitEthernet1/0/1] ptp enable
[DeviceC-GigabitEthernet1/0/1] quit
# 在接口GigabitEthernet1/0/2上配置单播PTP报文的目的IP地址,并开启PTP功能。(SMPTE ST 2059-2的PTP报文封装格式缺省为IPv4 UDP,无需配置)
[DeviceC] interface gigabitethernet 1/0/2
[DeviceC-GigabitEthernet1/0/2] ptp unicast-destination 12.10.10.1
[DeviceC-GigabitEthernet1/0/2] ptp enable
[DeviceC-GigabitEthernet1/0/2] quit
请在基站上配置PTP域值为0,PTP报文封装格式为IPv4 UDP,单播PTP报文的目的IP地址为12.10.10.2,延时测量机制为请求应答机制。具体配置请参见基站的相关手册。
· 对于display ptp clock命令的显示信息,仅S6550XE-HI系列和S6525XE-HI系列支持"Lock status"字段。
· 对于display ptp interface brief命令的显示信息,仅S6550XE-HI系列和S6525XE-HI系列支持"InstID"字段。
当网络拓扑稳定后,通过使用display ptp clock命令可以查看设备上PTP时钟信息,display ptp interface brief命令显示简要运行信息。例如:
# 在Device A上显示设备的PTP时钟信息。
[DeviceA] display ptp clock
PTP global state : Enabled
PTP profile : SMPTE ST 2059-2
PTP mode : BC
Slave only : No
Lock status : Unlocked
Clock ID : 000FE2-FFFE-FF0000
Clock type : ToD0
ToD direction : In
ToD delay time : 1000 (ns)
Clock domain : 0
Number of PTP ports : 1
Priority1 : 0
Priority2 : 128
Clock quality :
Class : 6
Accuracy : 32
Offset (log variance) : 65535
Offset from master : 0 (ns)
Mean path delay : 0 (ns)
Steps removed : 0
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device A上显示PTP的简要运行信息。
[DeviceA] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
GE1/0/1 0 Master E2E Two 0
# 在Device B上显示设备的PTP时钟信息。
[DeviceA] display ptp clock
PTP global state : Enabled
PTP profile : SMPTE ST 2059-2
PTP mode : BC
Slave only : No
Lock status : Locked
Clock ID : 000FE2-FFFE-FF0001
Clock type : ToD0
ToD direction : In
ToD delay time : 1000 (ns)
Clock domain : 0
Number of PTP ports : 1
Priority1 : 0
Priority2 : 128
Clock quality :
Class : 6
Accuracy : 32
Offset (log variance) : 65535
Offset from master : 12 (ns)
Mean path delay : 323 (ns)
Steps removed : 1
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device B上显示PTP的简要运行信息。
[DeviceB] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
GE1/0/1 0 Slave E2E Two 0
GE1/0/2 0 Master E2E Two 0
# 在Device C上显示设备的PTP时钟信息。
[DeviceC] display ptp clock
PTP global state : Enabled
PTP profile : SMPTE ST 2059-2
PTP mode : BC
Slave only : No
Lock status : Locked
Clock ID : 000FE2-FFFE-FF0002
Clock type : Local
Clock domain : 0
Number of PTP ports : 2
Priority1 : 128
Priority2 : 128
Clock quality :
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Offset from master : 25 (ns)
Mean path delay : 323 (ns)
Steps removed : 2
Local clock time : Sun Jan 15 20:57:29 2019
# 在Device C上显示PTP的简要运行信息。
[DeviceC] display ptp interface brief
Name InstID State Delay mechanism Clock step Asymmetry correction
GE1/0/1 0 Slave E2E Two 0
GE1/0/2 0 Master E2E Two 0
· Device A
#
clock protocol ptp
#
ptp profile st2059-2
ptp mode bc
ptp domain 0
ptp global enable
ptp tod0 input delay 1000
ptp priority clock-source tod0 priority1 0
#
interface GigabitEthernet 1/0/1
ptp unicast-destination 10.10.10.2
ptp enable
#
· Device B
#
clock protocol ptp
#
ptp profile st2059-2
ptp mode bc
ptp domain 0
ptp global enable
#
interface GigabitEthernet 1/0/1
ptp unicast-destination 10.10.10.1
ptp enable
#
interface GigabitEthernet 1/0/2
ptp enable
#
· Device C
#
clock protocol ptp
#
ptp profile st2059-2
ptp mode bc
ptp domain 0
ptp global enable
#
interface GigabitEthernet 1/0/1
ptp unicast-destination 11.10.10.2
ptp enable
#
interface GigabitEthernet 1/0/2
ptp unicast-destination 12.10.10.1
ptp enable
#
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!