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

H3C S12500R系列交换路由器 典型配置举例-Release 36xx系列-6W100

目录

60-PTP典型配置举例

本章节下载: 60-PTP典型配置举例  (305.81 KB)

60-PTP典型配置举例

H3C S12500R产品PTP典型配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2021 新华三技术有限公司 版权所有,保留一切权利。

非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。

除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。

本文档中的信息可能变动,恕不另行通知。

目  录

1 简介

2 配置前提

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

3.1 组网需求

3.2 组网图

3.3 使用版本

3.4 配置注意事项

3.5 配置步骤

3.5.1 配置Device A

3.5.2 配置Device B

3.5.3 配置Device C

3.6 验证配置

3.7 配置文件

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

4.1 组网需求

4.2 组网图

4.3 使用版本

4.4 配置注意事项

4.5 配置步骤

4.5.1 配置Device A

4.5.2 配置Device B

4.5.3 配置Device C

4.6 验证配置

4.7 配置文件

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

5.1 组网需求

5.2 组网图

5.3 配置准备

5.4 使用版本

5.5 配置注意事项

5.6 配置步骤

5.6.1 配置Device A

5.6.2 配置Device B

5.6.3 配置Device C

5.7 验证配置

5.8 配置文件

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

6.1 组网需求

6.2 组网图

6.3 使用版本

6.4 配置注意事项

6.5 配置步骤

6.5.1 配置Device A

6.5.2 配置Device B

6.5.3 配置Device C

6.6 验证配置

6.7 配置文件

7

8 相关资料

 


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  使用版本

本举例是在R3606版本上进行配置和验证的。

3.4  配置注意事项

缺省情况下,接口处于ADM(Administratively Down)状态,请根据实际需要在对应接口视图下使用undo shutdown命令开启接口。

3.5  配置步骤

3.5.1  配置Device A

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

<DeviceA> system-view

[DeviceA] ptp profile 1588v2

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

[DeviceA] ptp mode oc

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

[DeviceA] clock protocol ptp mdc 1

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

[DeviceA] interface hundredgige 1/0/1

[DeviceA-HundredGigE1/0/1] ptp enable

[DeviceA-HundredGigE1/0/1] quit

3.5.2  配置Device B

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

<DeviceB> system-view

[DeviceB] ptp profile 1588v2

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

[DeviceB] ptp mode e2etc

# 配置在缺省MDC通过PTP协议获取系统时间。

[DeviceB] clock protocol ptp mdc 1

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

[DeviceB] interface hundredgige 1/0/1

[DeviceB-HundredGigE1/0/1] ptp enable

[DeviceB-HundredGigE1/0/1] quit

# 在接口HundredGigE1/0/2上开启PTP功能。

[DeviceB] interface hundredgige 1/0/2

[DeviceB-HundredGigE1/0/2] ptp enable

[DeviceB-HundredGigE1/0/2] quit

3.5.3  配置Device C

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

<DeviceC> system-view

[DeviceC] ptp profile 1588v2

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

[DeviceC] ptp mode oc

# 配置在缺省MDC通过PTP协议获取系统时间。

[DeviceC] clock protocol ptp mdc 1

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

[DeviceC] interface hundredgige 1/0/1

[DeviceC-HundredGigE1/0/1] ptp enable

[DeviceC-HundredGigE1/0/1] quit

3.6  验证配置

当网络拓扑稳定后,通过使用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

Sync uncertain      : Disabled

Clock state         : Disabled

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              : 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 2011

Clock source info:

Clock Pri1 Pri2 Accuracy Class TimeSrc Direction In-Status Offset(log variance)

-------------------------------------------------------------------

Local 128  128  32       248   160     N/A       N/A          65535

ToD0  128  128  32       6     32      N/A       Inactive     65535

ToD1  128  128 32        6     32      N/A       Inactive     65535

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

[DeviceA] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

HGE1/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

Sync uncertain      : Disabled

Clock state         : Disabled

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              : 32

 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

Clock source info:

Clock  Pri1 Pri2 Accuracy Class TimeSrc Direction In-Status Offset(log variance)

-------------------------------------------------------------------

Local   128  128 32       248   160     N/A       N/A       65535    

ToD0    128  128 32       6     32      N/A       Inactive  65535    

ToD1    128  128 32       6     32      N/A       Inactive  65535     

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

[DeviceB] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

HGE1/0/1     N/A           E2E              Two         0

HGE1/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

Sync uncertain      : Disabled

Clock state         : Disabled

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              : 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

Clock source info:

 Clock   Pri1 Pri2 Accuracy Class TimeSrc Direction In-Status Offset(log variance)

 -------------------------------------------------------------------

 Local   128  128  32       248   160     N/A       N/A       65535    

 ToD0    128  128  32       6     32      N/A       Inactive  65535    

 ToD1    128  128  32       6     32      N/A       Inactive  65535  

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

[DeviceC] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

HGE1/0/1     Slave           E2E              Two         0

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

3.7  配置文件

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

#

 clock protocol ptp mdc 1

#

 ptp profile 1588v2

 ptp mode oc

#

interface hundredgige 1/0/1

 ptp enable

#

·     Device B的配置文件:

#

 clock protocol ptp mdc 1

#

 ptp profile 1588v2

 ptp mode e2etc

#

interface hundredgige 1/0/1

 ptp enable

#

interface hundredgige 1/0/1

 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  使用版本

本举例是在R3606版本上进行配置和验证的。

4.4  配置注意事项

缺省情况下,接口处于ADM(Administratively Down)状态,请根据实际需要在对应接口视图下使用undo shutdown命令开启接口。

4.5  配置步骤

4.5.1  配置Device A

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

<DeviceA> system-view

[DeviceA] ptp profile 1588v2

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

[DeviceA] ptp mode oc

# 配置组播UDP(IPv4)封装的源IP地址。

[DeviceA] ptp source 10.10.10.1

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

[DeviceA] clock protocol ptp mdc 1

# 在接口HundredGigE1/0/1上配置PTP报文封装格式为UDP(IPv4)、延时测量机制为端延时机制,并开启PTP功能。

[DeviceA] interface hundredgige 1/0/1

[DeviceA-HundredGigE1/0/1] ptp transport-protocol udp

[DeviceA-HundredGigE1/0/1] ptp delay-mechanism p2p

[DeviceA-HundredGigE1/0/1] ptp enable

[DeviceA-HundredGigE1/0/1] quit

4.5.2  配置Device B

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

<DeviceB> system-view

[DeviceB] ptp profile 1588v2

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

[DeviceB] ptp mode p2ptc

# 配置组播UDP(IPv4)封装的源IP地址。

[DeviceB] ptp source 10.10.2.1

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

[DeviceB] clock protocol ptp mdc 1

# 在接口HundredGigE1/0/1上配置PTP报文封装格式为UDP(IPv4),并开启PTP功能。

[DeviceB] interface hundredgige 1/0/1

[DeviceB-HundredGigE1/0/1] ptp transport-protocol udp

[DeviceB-HundredGigE1/0/1] ptp enable

[DeviceB-HundredGigE1/0/1] quit

# 在接口HundredGigE1/0/2上配置PTP报文封装格式为UDP(IPv4),并开启PTP功能。

[DeviceB] interface hundredgige 1/0/2

[DeviceB-HundredGigE1/0/2] ptp transport-protocol udp

[DeviceB-HundredGigE1/0/2] ptp enable

[DeviceB-HundredGigE1/0/2] quit

4.5.3  配置Device C

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

<DeviceC> system-view

[DeviceC] ptp profile 1588v2

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

[DeviceC] ptp mode oc

# 配置组播UDP(IPv4)封装的源IP地址。

[DeviceC] ptp source 10.10.3.1

# 配置在缺省MDC通过PTP协议获取系统时间。

[DeviceC] clock protocol ptp mdc 1

# 在接口HundredGigE1/0/1上配置PTP报文封装格式为UDP(IPv4)、延时测量机制为端延时机制,并开启PTP功能。

[DeviceC] interface hundredgige 1/0/1

[DeviceC-HundredGigE1/0/1] ptp transport-protocol udp

[DeviceC-HundredGigE1/0/1] ptp delay-mechanism p2p

[DeviceC-HundredGigE1/0/1] ptp enable

[DeviceC-HundredGigE1/0/1] quit

4.6  验证配置

当网络拓扑稳定后,通过使用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

Sync uncertain      : Disabled

Clock state         : Disabled

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              : 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 2011

Clock source info:

 Clock   Pri1 Pri2 Accuracy Class TimeSrc Direction In-Status Offset(log variance)

 -------------------------------------------------------------------

 Local   128  128  32       248   160     N/A       N/A       65535    

 ToD0    128  128  32       6     32      N/A       Inactive  65535    

 ToD1    128  128  32       6     32      N/A       Inactive  65535  

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

[DeviceA] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

HGE1/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

Sync uncertain      : Disabled

Clock state         : Disabled

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              : 32

 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

Clock source info:

 Clock   Pri1 Pri2 Accuracy Class TimeSrc Direction In-Status Offset(log variance)

 -------------------------------------------------------------------

 Local   128  128  32       248   160     N/A       N/A       65535    

 ToD0    128  128  32       6     32      N/A       Inactive  65535    

 ToD1    128  128  32       6     32      N/A       Inactive  65535  

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

[DeviceB] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

HGE1/0/1     N/A           P2P              Two         0

HGE1/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

Sync uncertain      : Disabled

Clock state         : Disabled

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              : 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

Clock source info:

 Clock   Pri1 Pri2 Accuracy Class TimeSrc Direction In-Status Offset(log variance)

 -------------------------------------------------------------------

 Local   128  128  32       248   160     N/A       N/A       65535    

 ToD0    128  128  32       6     32      N/A       Inactive  65535    

 ToD1    128  128  32       6     32      N/A       Inactive  65535  

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

[DeviceC] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

HGE1/0/1     Slave           P2P              Two         0

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

4.7  配置文件

·     Device A

#

 clock protocol ptp mdc 1

#

 ptp profile 1588v2

 ptp mode oc

 ptp source 10.10.10.1

#

interface hundredgige 1/0/1

 ptp delay-mechanism p2p

 ptp transport-protocol udp

 ptp enable

#

·     Device B

#

 clock protocol ptp mdc 1

#

 ptp profile 1588v2

 ptp mode p2ptc

 ptp source 10.10.10.2

#

interface hundredgige 1/0/1

 ptp transport-protocol udp

 ptp enable

#

interface hundredgige 1/0/1

 ptp transport-protocol udp

 ptp enable

#

·     Device C

#

 clock protocol ptp mdc 1

#

 ptp profile 1588v2

 ptp mode oc

 ptp source 11.10.10.1

#

interface hundredgige 1/0/1

 ptp delay-mechanism p2p

 ptp transport-protocol udp

 ptp enable

#

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

5.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的时钟节点类型为E2ETC。Device A为最优时钟设备,引入外接ToD时钟源的时间信号。Device C通过ToD接口连接基站来同步时间信号到基站。

Device A和Device C的延时测量机制都采用端延时机制。

5.2  组网图

图3 PTP组网图

‌

5.3  配置准备

按照上图配置各接口的IP地址,并确保路由可达,具体配置过程略。

5.4  使用版本

本举例是在R3606版本上进行配置和验证的。

5.5  配置注意事项

缺省情况下,接口处于ADM(Administratively Down)状态,请根据实际需要在对应接口视图下使用undo shutdown命令开启接口。

5.6  配置步骤

5.6.1  配置Device A

本系列设备不支持ToD接口,不能作为Device A,可以作为Device B或者C。

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

<DeviceA> system-view

[DeviceA] ptp profile 1588v2

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

[DeviceA] ptp mode oc

# 配置第一路ToD时钟信号为入方向、接收时延校正时间为1000纳秒。

[DeviceA] ptp tod0 input delay 1000

# 配置第一路外接ToD时钟源的第一优先级值为0。

[DeviceA] ptp priority clock-source tod0 priority1 0

# 在接口HundredGigE1/0/1上配置采用UDP(IPv4)封装格式的单播PTP报文的目的IP地址,并开启PTP功能。

[DeviceA] interface hundredgige 1/0/1

[DeviceA-HundredGigE1/0/1] ptp transport-protocol udp

[DeviceA-HundredGigE1/0/1] ptp unicast-destination 10.10.10.2

[DeviceA-HundredGigE1/0/1] ptp enable

[DeviceA-HundredGigE1/0/1] quit

5.6.2  配置Device B

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

<DeviceB> system-view

[DeviceB] ptp profile 1588v2

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

[DeviceB] ptp mode e2etc

# 配置在缺省MDC通过PTP协议获取系统时间。

[DeviceB] clock protocol ptp mdc 1

# 在接口HundredGigE1/0/1上配置采用UDP(IPv4)封装格式的单播PTP报文的目的IP地址,并开启PTP功能。

[DeviceB] interface hundredgige 1/0/1

[DeviceB-HundredGigE1/0/1] ptp transport-protocol udp

[DeviceB-HundredGigE1/0/1] ptp unicast-destination 10.10.10.1

[DeviceB-HundredGigE1/0/1] ptp enable

[DeviceB-HundredGigE1/0/1] quit

# 在接口HundredGigE1/0/2上配置采用UDP(IPv4)封装格式的单播PTP报文的目的IP地址,并开启PTP功能。

[DeviceB] interface hundredgige 1/0/2

[DeviceB-HundredGigE1/0/2] ptp transport-protocol udp

[DeviceB-HundredGigE1/0/2] ptp unicast-destination 11.10.10.1

[DeviceB-HundredGigE1/0/2] ptp enable

[DeviceB-HundredGigE1/0/2] quit

5.6.3  配置Device C

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

<DeviceC> system-view

[DeviceC] ptp profile 1588v2

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

[DeviceC] ptp mode oc

# 配置在缺省MDC通过PTP协议获取系统时间。

[DeviceC] clock protocol ptp mdc 1

# 在接口HundredGigE1/0/1上配置采用UDP(IPv4)封装格式的单播PTP报文的目的IP地址,并开启PTP功能。

[DeviceC] interface hundredgige 1/0/1

[DeviceC-HundredGigE1/0/1] ptp transport-protocol udp

[DeviceC-HundredGigE1/0/1] ptp unicast-destination 11.10.10.2

[DeviceC-HundredGigE1/0/1] ptp enable

[DeviceC-HundredGigE1/0/1] quit

5.7  验证配置

当网络拓扑稳定后,通过使用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

Sync uncertain      : Disabled

Clock state         : Disabled

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 2011

Clock source info:

 Clock   Pri1 Pri2 Accuracy Class TimeSrc Direction In-Status Offset(log variance)

 -------------------------------------------------------------------

 Local   128  128  32       248   160     N/A       N/A       65535    

 ToD0    128  128  32       6     32      N/A       Inactive  65535    

 ToD1    128  128  32       6     32      N/A       Inactive  65535  

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

[DeviceA] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

HGE1/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

Sync uncertain      : Disabled

Clock state         : Disabled

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              : 32

 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

Clock source info:

 Clock   Pri1 Pri2 Accuracy Class TimeSrc Direction In-Status Offset(log variance)

 -------------------------------------------------------------------

 Local   128  128  32       248   160     N/A       N/A       65535    

 ToD0    128  128  32       6     32      N/A       Inactive  65535    

 ToD1    128  128  32       6     32      N/A       Inactive  65535  

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

[DeviceB] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

HGE1/0/1     N/A           E2E              Two         0

HGE1/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

Sync uncertain      : Disabled

Clock state         : Disabled

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              : 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

Clock source info:

 Clock   Pri1 Pri2 Accuracy Class TimeSrc Direction In-Status Offset(log variance)

 -------------------------------------------------------------------

 Local   128  128  32       248   160     N/A       N/A       65535    

 ToD0    128  128  32       6     32      N/A       Inactive  65535    

 ToD1    128  128  32       6     32      N/A       Inactive  65535  

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

[DeviceC] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

HGE1/0/1     Slave           E2E              Two         0

5.8  配置文件

·     Device A

#

 ptp profile 1588v2

 ptp mode oc

 ptp tod0 input delay 1000

 ptp priority clock-source tod0 priority1 0

#

interface hundredgige 1/0/1

 ptp transport-protocol udp

 ptp unicast-destination 10.10.10.2

 ptp enable

#

·     Device B

#

 clock protocol ptp mdc 1

#

 ptp profile 1588v2

 ptp mode e2etc

#

interface hundredgige 1/0/1

 ptp transport-protocol udp

 ptp unicast-destination 10.10.10.1

 ptp enable

#

interface hundredgige 1/0/1

 ptp transport-protocol udp

 ptp unicast-destination 11.10.10.1

 ptp enable

#

·     Device C

#

 clock protocol ptp mdc 1

#

ptp profile 1588v2

 ptp mode oc

 ptp tod0 input delay 100

#

interface hundredgige 1/0/1

 ptp transport-protocol udp

 ptp unicast-destination 11.10.10.2

 ptp enable

#

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

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

6.2  组网图

图4 PTP组网图

‌

6.3  使用版本

本举例是在R3606版本上进行配置和验证的。

6.4  配置注意事项

缺省情况下,接口处于ADM(Administratively Down)状态,请根据实际需要在对应接口视图下使用undo shutdown命令开启接口。

6.5  配置步骤

6.5.1  配置Device A

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

<DeviceA> system-view

[DeviceA] ptp profile 8021as

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

[DeviceA] ptp mode oc

# 配置在缺省MDC通过PTP协议获取系统时间。

[DeviceA] clock protocol ptp mdc 1

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

[DeviceA] interface hundredgige 1/0/1

[DeviceA-HundredGigE1/0/1] ptp enable

[DeviceA-HundredGigE1/0/1] quit

6.5.2  配置Device B

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

<DeviceB> system-view

[DeviceB] ptp profile 8021as

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

[DeviceB] ptp mode p2ptc

# 配置在缺省MDC通过PTP协议获取系统时间。

[DeviceB] clock protocol ptp mdc 1

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

[DeviceB] interface hundredgige 1/0/1

[DeviceB-HundredGigE1/0/1] ptp enable

[DeviceB-HundredGigE1/0/1] quit

# 在接口HundredGigE1/0/2上开启PTP功能。

[DeviceB] interface hundredgige 1/0/2

[DeviceB-HundredGigE1/0/2] ptp enable

[DeviceB-HundredGigE1/0/2] quit

6.5.3  配置Device C

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

<DeviceC> system-view

[DeviceC] ptp profile 8021as

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

[DeviceC] ptp mode oc

# 配置在缺省MDC通过PTP协议获取系统时间。

[DeviceC] clock protocol ptp mdc 1

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

[DeviceC] interface hundredgige 1/0/1

[DeviceC-HundredGigE1/0/1] ptp enable

[DeviceC-HundredGigE1/0/1] quit

6.6  验证配置

当网络拓扑稳定后,通过使用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

Sync uncertain      : Disabled

Clock state         : Disabled

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              : 32

 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

Clock source info:

 Clock   Pri1 Pri2 Accuracy Class TimeSrc Direction In-Status Offset(log variance)

 -------------------------------------------------------------------

 Local   128  128  32       248   160     N/A       N/A       65535    

 ToD0    128  128  32       6     32      N/A       Inactive  65535    

 ToD1    128  128  32       6     32      N/A       Inactive  65535  

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

[DeviceA] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

HGE1/0/1     Master        P2P              Two         0

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

[DeviceB] display ptp clock

PTP profile         : IEEE 802.1AS

PTP mode            : P2PTC

Slave only          : No

Sync uncertain      : Disabled

Clock state         : Disabled

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              : 32

 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

Clock source info:

 Clock   Pri1 Pri2 Accuracy Class TimeSrc Direction In-Status Offset(log variance)

 -------------------------------------------------------------------

 Local   128  128  32       248   160     N/A       N/A       65535    

 ToD0    128  128  32       6     32      N/A       Inactive  65535    

 ToD1    128  128  32       6     32      N/A       Inactive  65535  

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

[DeviceB] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

HGE1/0/1     N/A           P2P              Two         0

HGE1/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

Sync uncertain      : Disabled

Clock state         : Disabled

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              : 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

Clock source info:

 Clock   Pri1 Pri2 Accuracy Class TimeSrc Direction In-Status Offset(log variance)

 -------------------------------------------------------------------

 Local   128  128  32       248   160     N/A       N/A       65535    

 ToD0    128  128  32       6     32      N/A       Inactive  65535    

 ToD1    128  128  32       6     32      N/A       Inactive  65535  

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

[DeviceC] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

HGE1/0/1     Slave           P2P              Two         0

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

6.7  配置文件

·     Device A和Device C

#

 clock protocol ptp mdc 1

#

 ptp profile 8021as

 ptp mode oc

#

interface hundredgige 1/0/1

 ptp enable

#

·     Device B

#

 clock protocol ptp mdc 1

#

 ptp profile 8021as

 ptp mode p2ptc

#

interface hundredgige 1/0/1

 ptp enable

#

interface hundredgige 1/0/1

 ptp enable

#

7   

8  相关资料

·     H3C S12500R系列交换路由器 网络管理和监控配置指导-R3606

·     H3C S12500R系列交换路由器 网络管理和监控命令参考-R3606

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

新华三官网
联系我们