• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 关于我们

11-网络管理和监控配置举例

目录

03-PTP典型配置举例

本章节下载 03-PTP典型配置举例  (318.19 KB)

03-PTP典型配置举例


1  简介

本章介绍了与PTP有关的各种典型配置举例。

2  配置前提

本文档不严格与具体软、硬件版本对应,如果使用过程中与产品实际情况有差异,请参考相关产品手册,或以设备实际情况为准。

本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。

本文档假设您已了解PTP特性。

3  二层环境下使用IEEE 1588 version 2协议的PTP典型配置举例

3.1  组网需求

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协议动态选举最优时钟。

3.2  组网图

图1 PTP组网图

3.3  适用产品及版本

表1 适用产品及版本

产品

软件版本

S9850-G系列

Release 6010P03及以上版本、Release 8307P10及以上版本

S6850-G系列

S6805-G系列

Release 6010P03及以上版本、Release 8307P10及以上版本

S6530X系列

Release 8108P22及以上版本、Release 8307P10及以上版本

S6530X-G系列

Release 8307P24及以上版本

S5590-HI系列

Release 8307P10及以上版本

S5590-EI系列

S5500V3-HI系列

Release 8307P10及以上版本

FS5500-EI系列

Release 8108P11及以上版本、Release 8307P10及以上版本

FS5500V2-EI系列

Release 8108P11及以上版本

FS6300V2-EI系列

Release 8307P53及以上版本

S6520X-EI-G系列

S6520XP-EI-G系列

Release 7748及以上版本

S5590XP-HI-G系列

不支持

S5560-EI-G系列

不支持

S5500-D-G系列

S5100-D-G系列

不支持

FS5300-EI系列

不支持

S5130S-HI-G系列

不支持

S5130S-EI-G系列(除S5130S-30C-EI-G、S5130S-54C-EI-G)

不支持

S5130S-30C-EI-G

S5130S-54C-EI-G

不支持

 

3.4  配置步骤

3.4.1  配置Device A

# 配置协议标准为IEEE 1588 version 2。

<DeviceA> system-view

[DeviceA] ptp profile 1588v2

# 配置时钟节点类型为OC。

[DeviceA] ptp mode oc

# 配置PTP域。

[DeviceA] ptp domain 0

# 开启全局PTP功能。

[DeviceC] ptp global enable

# 配置通过PTP协议获取系统时间。

[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

3.4.2  配置Device B

# 配置协议标准为IEEE 1588 version 2。

<DeviceB> system-view

[DeviceB] ptp profile 1588v2

# 配置时钟节点类型为E2ETC。

[DeviceB] ptp mode e2etc

# 配置PTP域。

[DeviceB] ptp domain 0

# 开启全局PTP功能。

[DeviceC] 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

3.4.3  配置Device C

# 配置协议标准为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

3.5  验证配置

当网络拓扑稳定后,通过使用display ptp clock命令可以查看设备上PTP时钟信息,display ptp interface brief命令显示简要运行信息。例如:

# 在Device A上显示设备的PTP时钟信息。

[DeviceA] display ptp clock

PTP profile         : IEEE 1588 Version 2

PTP mode            : OC

Slave only          : No

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 2011

# 在Device A上显示PTP的简要运行信息。

[DeviceA] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

GE1/0/1      Master        E2E              Two         0

# 在Device B上显示设备的PTP时钟信息。

[DeviceB] display ptp clock

PTP profile         : IEEE 1588 Version 2

PTP mode            : E2ETC

Slave only          : No

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 2011

# 在Device B上显示PTP的简要运行信息。

[DeviceB] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

GE1/0/1      N/A           E2E              Two         0

GE1/0/2      N/A           E2E              Two         0

# 在Device C上显示设备的PTP时钟信息。

[DeviceC] display ptp clock

PTP profile         : IEEE 1588 Version 2

PTP mode            : OC

Slave only          : No

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         State         Delay mechanism  Clock step  Asymmetry correction

GE1/0/1      Slave           E2E              Two         0

通过显示信息可以看出,Device A被选为最优时钟,其接口GigabitEthernet1/0/1为主接口,对外发布同步时间。

3.6  配置文件

·     Device A和Device C的配置文件:

#

 clock protocol ptp

#

 ptp profile 1588v2

 ptp mode oc

 ptp domain 0

 ptp global enable

#

interface GigabitEthernet 1/0/1

 ptp enable

#

·     Device B的配置文件:

#

 clock protocol ptp

#

 ptp profile 1588v2

 ptp mode e2etc

 ptp domain 0

 ptp global enable

#

interface GigabitEthernet 1/0/1

 ptp enable

#

interface GigabitEthernet 1/0/2

 ptp enable

#

4  三层组播环境下使用IEEE 1588 version 2协议的PTP典型配置举例

4.1  组网需求

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.2  组网图

图2 PTP组网图

4.3  适用产品及版本

表2 适用产品及版本

产品

软件版本

S9850-G系列

Release 6010P03及以上版本、Release 8307P10及以上版本

S6850-G系列

S6805-G系列

Release 6010P03及以上版本、Release 8307P10及以上版本

S6530X系列

Release 8108P22及以上版本、Release 8307P10及以上版本

S6530X-G系列

Release 8307P24及以上版本

S5590-HI系列

Release 8307P10及以上版本

S5590-EI系列

S5500V3-HI系列

Release 8307P10及以上版本

FS5500-EI系列

Release 8108P11及以上版本、Release 8307P10及以上版本

FS5500V2-EI系列

Release 8108P11及以上版本

FS6300V2-EI系列

Release 8307P53及以上版本

S6520X-EI-G系列

S6520XP-EI-G系列

Release 7748及以上版本

S5590XP-HI-G系列

不支持

S5560-EI-G系列

不支持

S5500-D-G系列

S5100-D-G系列

不支持

FS5300-EI系列

不支持

S5130S-HI-G系列

不支持

S5130S-EI-G系列(除S5130S-30C-EI-G、S5130S-54C-EI-G)

不支持

S5130S-30C-EI-G

S5130S-54C-EI-G

不支持

 

4.4  配置步骤

4.4.1  配置Device A

# 配置协议标准为IEEE 1588 Version 2。

<DeviceA> system-view

[DeviceA] ptp profile 1588v2

# 配置时钟节点类型为OC。

[DeviceA] ptp mode oc

# 配置PTP域。

[DeviceA] ptp domain 0

# 开启全局PTP功能。

[DeviceC] 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

4.4.2  配置Device B

# 配置协议标准为IEEE 1588 Version 2。

<DeviceB> system-view

[DeviceB] ptp profile 1588v2

# 配置时钟节点类型为P2PTC。

[DeviceB] ptp mode p2ptc

# 配置PTP域。

[DeviceB] ptp domain 0

# 开启全局PTP功能。

[DeviceC] 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

4.4.3  配置Device C

# 配置协议标准为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

4.5  验证配置

当网络拓扑稳定后,通过使用display ptp clock命令可以查看设备上PTP时钟信息,display ptp interface brief命令显示简要运行信息。例如:

# 在Device A上显示设备的PTP时钟信息。

[DeviceA] display ptp clock

PTP profile         : IEEE 1588 Version 2

PTP mode            : OC

Slave only          : No

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 2011

# 在Device A上显示PTP的简要运行信息。

[DeviceA] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

GE1/0/1      Master        P2P              Two         0

# 在Device B上显示设备的PTP时钟信息。

[DeviceB] display ptp clock

PTP profile         : IEEE 1588 Version 2

PTP mode            : P2PTC

Slave only          : No

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 2011

# 在Device B上显示PTP的简要运行信息。

[DeviceB] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

GE1/0/1      N/A           P2P              Two         0

GE1/0/2      N/A           P2P              Two         0

# 在Device C上显示设备的PTP时钟信息。

[DeviceC] display ptp clock

PTP profile         : IEEE 1588 Version 2

PTP mode            : OC

Slave only          : No

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         State         Delay mechanism  Clock step  Asymmetry correction

GE1/0/1      Slave           P2P              Two         0

通过显示信息可以看出,Device A被选为最优时钟,其接口GigabitEthernet1/0/1为主接口,对外发布同步时间。

4.6  配置文件

·     Device A

#

 clock protocol ptp

#

 ptp profile 1588v2

 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 transport-protocol udp

 ptp enable

#

·     Device B

#

 clock protocol ptp

#

 ptp profile 1588v2

 ptp mode p2ptc

 ptp domain 0

 ptp global enable

 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 domain 0

 ptp global enable

 ptp source 11.10.10.1

#

interface GigabitEthernet 1/0/1

 ptp delay-mechanism p2p

 ptp transport-protocol udp

 ptp enable

#

5  使用IEEE 802.1AS协议的PTP典型配置举例

5.1  组网需求

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协议动态选举最优时钟。

5.2  组网图

图3 PTP组网图

5.3  适用产品及版本

表3 适用产品及版本

产品

软件版本

S9850-G系列

Release 6010P03及以上版本、Release 8307P10及以上版本

S6850-G系列

S6805-G系列

Release 6010P03及以上版本、Release 8307P10及以上版本

S6530X系列

Release 8108P22及以上版本、Release 8307P10及以上版本

S6530X-G系列

Release 8307P24及以上版本

S5590-HI系列

不支持

S5590-EI系列

S5500V3-HI系列

不支持

FS5500-EI系列

不支持

FS5500V2-EI系列

不支持

FS6300V2-EI系列

Release 8307P53及以上版本

S6520X-EI-G系列

S6520XP-EI-G系列

Release 7748及以上版本

S5590XP-HI-G系列

不支持

S5560-EI-G系列

不支持

S5500-D-G系列

S5100-D-G系列

不支持

FS5300-EI系列

不支持

S5130S-HI-G系列

不支持

S5130S-EI-G系列(除S5130S-30C-EI-G、S5130S-54C-EI-G)

不支持

S5130S-30C-EI-G

S5130S-54C-EI-G

不支持

 

5.4  配置步骤

5.4.1  配置Device A

# 配置协议标准为IEEE 802.1AS。

<DeviceA> system-view

[DeviceA] ptp profile 8021as

# 配置时钟节点类型为OC。

[DeviceA] ptp mode oc

# 配置PTP域。

[DeviceA] ptp domain 0

# 开启全局PTP功能。

[DeviceC] ptp global enable

# 配置通过PTP协议获取系统时间。

[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

5.4.2  配置Device B

# 配置协议标准为IEEE 802.1AS。

<DeviceB> system-view

[DeviceB] ptp profile 8021as

# 配置时钟节点类型为P2PTC。

[DeviceB] ptp mode p2ptc

# 配置PTP域。

[DeviceB] ptp domain 0

# 开启全局PTP功能。

[DeviceC] 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

5.4.3  配置Device C

# 配置协议标准为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

# 在接口GigabitEthernet1/0/1上开启PTP功能。

[DeviceC] interface gigabitethernet 1/0/1

[DeviceC-GigabitEthernet1/0/1] ptp enable

[DeviceC-GigabitEthernet1/0/1] quit

5.5  验证配置

当网络拓扑稳定后,通过使用display ptp clock命令可以查看设备上PTP时钟信息,display ptp interface brief命令显示简要运行信息。例如:

# 在Device A上显示设备的PTP时钟信息。

[DeviceA] display ptp clock

PTP profile         : IEEE 802.1AS

PTP mode            : OC

Slave only          : No

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         State         Delay mechanism  Clock step  Asymmetry correction

GE1/0/1      Master        P2P              Two         0

# 在Device B上显示设备的PTP时钟信息。

[DeviceB] display ptp clock

PTP profile         : IEEE 802.1AS

PTP mode            : P2PTC

Slave only          : No

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         State         Delay mechanism  Clock step  Asymmetry correction

GE1/0/1      N/A           P2P              Two         0

GE1/0/2      N/A           P2P              Two         0

# 在Device C上显示设备的PTP时钟信息。

[DeviceC] display ptp clock

PTP profile         : IEEE 802.1AS

PTP mode            : OC

Slave only          : No

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         State         Delay mechanism  Clock step  Asymmetry correction

GE1/0/1      Slave           P2P              Two         0

通过显示信息可以看出,Device A被选为最优时钟,其接口GigabitEthernet1/0/1为主接口,对外发布同步时间。

5.6  配置文件

·     Device A和Device C

#

 clock protocol ptp

#

 ptp profile 8021as

 ptp mode oc

 ptp domain 0

 ptp global enable

#

interface GigabitEthernet 1/0/1

 ptp enable

#

·     Device B

#

 clock protocol ptp

#

 ptp profile 8021as

 ptp mode p2ptc

 ptp domain 0

 ptp global enable

#

interface GigabitEthernet 1/0/1

 ptp enable

#

interface GigabitEthernet 1/0/2

 ptp enable

#

6  组播环境下使用SMPTE ST 2059-2协议的PTP典型配置举例

6.1  组网需求

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的延时测量机制都采用端延时机制。

6.2  组网图

图4 PTP组网图

6.3  适用产品及版本

表4 适用产品及版本

产品

软件版本

S9850-G系列

Release 6010P03及以上版本、Release 8307P10及以上版本

S6850-G系列

S6805-G系列

Release 6010P03及以上版本、Release 8307P10及以上版本

S6530X系列

Release 8108P22及以上版本、Release 8307P10及以上版本

S6530X-G系列

Release 8307P24及以上版本

S5590-HI系列

Release 8307P10及以上版本

S5590-EI系列

S5500V3-HI系列

Release 8307P10及以上版本

FS5500-EI系列

Release 8108P11及以上版本、Release 8307P10及以上版本

FS5500V2-EI系列

Release 8108P11及以上版本

FS6300V2-EI系列

Release 8307P53及以上版本

S6520X-EI-G系列

S6520XP-EI-G系列

Release 7748及以上版本

S5590XP-HI-G系列

不支持

S5560-EI-G系列

不支持

S5500-D-G系列

S5100-D-G系列

不支持

FS5300-EI系列

不支持

S5130S-HI-G系列

不支持

S5130S-EI-G系列(除S5130S-30C-EI-G、S5130S-54C-EI-G)

不支持

S5130S-30C-EI-G

S5130S-54C-EI-G

不支持

 

6.4  配置步骤

6.4.1  配置Device A

# 配置协议标准为SMPTE ST 2059-2。

<DeviceA> system-view

[DeviceA] ptp profile st2059-2

# 配置时钟节点类型为OC。

[DeviceA] ptp mode oc

# 配置PTP域。

[DeviceA] ptp domain 0

# 开启全局PTP功能。

[DeviceC] 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

6.4.2  配置Device B

# 配置协议标准为SMPTE ST 2059-2。

<DeviceB> system-view

[DeviceB] ptp profile st2059-2

# 配置时钟节点类型为P2PTC。

[DeviceB] ptp mode p2ptc

# 配置PTP域。

[DeviceB] ptp domain 0

# 开启全局PTP功能。

[DeviceC] 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

6.4.3  配置Device C

# 配置协议标准为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

6.5  验证配置

当网络拓扑稳定后,通过使用display ptp clock命令可以查看设备上PTP时钟信息,display ptp interface brief命令显示简要运行信息。例如:

# 在Device A上显示设备的PTP时钟信息。

[DeviceA] display ptp clock

PTP profile         : SMPTE ST 2059-2

PTP mode            : OC

Slave only          : No

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 2011

# 在Device A上显示PTP的简要运行信息。

[DeviceA] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

GE1/0/1      Master        P2P              Two         0

# 在Device B上显示设备的PTP时钟信息。

[DeviceB] display ptp clock

PTP profile         : SMPTE ST 2059-2

PTP mode            : P2PTC

Slave only          : No

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 2011

# 在Device B上显示PTP的简要运行信息。

[DeviceB] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

GE1/0/1      N/A           P2P              Two         0

GE1/0/2      N/A           P2P              Two         0

# 在Device C上显示设备的PTP时钟信息。

[DeviceC] display ptp clock

PTP profile         : SMPTE ST 2059-2

PTP mode            : OC

Slave only          : No

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         State         Delay mechanism  Clock step  Asymmetry correction

GE1/0/1      Slave           P2P              Two         0

通过显示信息可以看出,Device A被选为最优时钟,其接口GigabitEthernet1/0/1为主接口,对外发布同步时间。

6.6  配置文件

·     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

#

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们