• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

H3C SR6600-F路由器 典型配置举例-R7607-6W101

目录

20-H3C SR6600-F路由器 PTP典型配置举例

本章节下载 20-H3C SR6600-F路由器 PTP典型配置举例  (143.98 KB)

docurl=/cn/Service/Document_Software/Document_Center/Routers/Catalog/IPRAN_Converge/IPRAN_Converge/Configure/Typical_Configuration_Example/H3C_SR6600-F_CE-R7607-6W101/201804/1076038_30005_0.htm

20-H3C SR6600-F路由器 PTP典型配置举例

H3C SR6600-F 路由器PTP典型配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

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

并不得以任何形式传播。本文档中的信息可能变动,恕不另行通知。

H3C_彩色.emf

 



1 简介

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

2 配置前提

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

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

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

3 PTP典型配置举例

3.1  组网需求

图3-1所示,网络中Device A的时钟为最优时钟,为网络中的其他设备提供时间服务。现要求在各设备上配置IEEE 1588 version 2类型的PTP协议,使各设备能从Device A上获得时钟同步,以保证网络中所有设备的时间保持一致。

图3-1 PTP典型配置举例组网图

 

 

3.2  配置思路

最优时钟即为PTP网络中的时钟源,向其他设备提供PTP时钟同步,因此,该设备需要配置最高的PTP优先级。

3.3  使用版本

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

3.4  配置步骤

3.4.1  Device A的配置

# 配置获取系统时间的方式为PTP。

<DeviceA> system-view

[DeviceA] clock protocol ptp mdc 1

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

[DeviceA] ptp profile 1588v2

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

[DeviceA] ptp mode bc

# 配置设备本地时钟的优先级为10。

[DeviceA] ptp priority clock-source local priority1 10

[DeviceA] ptp priority clock-source local priority2 10

# 在接口Ten-GigabitEthernet2/1/1上使能PTP功能。

[DeviceA] interface ten-gigabitethernet 2/1/1

[DeviceA-Ten-GigabitEthernet2/1/1] ptp enable

[DeviceA-Ten-GigabitEthernet2/1/1] quit

# 在接口Ten-GigabitEthernet2/1/2上使能PTP功能。

[DeviceA] interface ten-gigabitethernet 2/1/2

[DeviceA-Ten-GigabitEthernet2/1/2] ptp enable

[DeviceA-Ten-GigabitEthernet2/1/2] quit

3.4.2  Device B的配置

# 配置获取系统时间的方式为PTP。

<DeviceB> system-view

[DeviceB] clock protocol ptp mdc 1

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

[DeviceB] ptp profile 1588v2

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

[DeviceB] ptp mode bc

# 在接口Ten-GigabitEthernet2/1/1上使能PTP功能。

[DeviceB] interface ten-gigabitethernet 2/1/1

[DeviceB-Ten-GigabitEthernet2/1/1] ptp enable

[DeviceB-Ten-GigabitEthernet2/1/1] quit

# 在接口Ten-GigabitEthernet2/1/2上使能PTP功能。

[DeviceB] interface ten-gigabitethernet 2/1/2

[DeviceB-Ten-GigabitEthernet2/1/2] ptp enable

[DeviceB-Ten-GigabitEthernet2/1/2] quit

3.4.3  Device C的配置

# 配置获取系统时间的方式为PTP。

<DeviceC> system-view

[DeviceC] clock protocol ptp mdc 1

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

[DeviceC] ptp profile 1588v2

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

[DeviceC] ptp mode oc

# 在接口Ten-GigabitEthernet2/1/2上使能PTP功能。

[DeviceC] interface ten-gigabitethernet 2/1/2

[DeviceC-Ten-GigabitEthernet2/1/2] ptp enable

[DeviceC-Ten-GigabitEthernet2/1/2] quit

3.4.4  Device D的配置

# 配置获取系统时间的方式为PTP。

<DeviceD> system-view

[DeviceD] clock protocol ptp mdc 1

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

[DeviceD] ptp profile 1588v2

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

[DeviceD] ptp mode oc

# 在接口Ten-GigabitEthernet2/1/2上使能PTP功能。

[DeviceD] interface ten-gigabitethernet 2/1/2

[DeviceD-Ten-GigabitEthernet2/1/2] ptp enable

[DeviceD-Ten-GigabitEthernet2/1/2] 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            : BC

Slave only          : No

Clock ID            : 00A0FC-FFFE-005800

Clock type          : Local

Clock domain        : 0

Number of PTP ports : 2

Priority1     : 10

Priority2     : 10

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 2017

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

[DeviceA] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

XGE2/1/1      Master        E2E              Two         0

XGE2/1/2      Master        E2E              Two         0

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

[DeviceB] display ptp clock

PTP profile         : IEEE 1588 Version 2

PTP mode            : BC

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

 Offset (log variance) : 65535

Offset from master : -6 (ns)

Mean path delay    : 471 (ns)

Steps removed      : 1

Local clock time   : Sun Jan 15 20:57:29 2017

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

[DeviceB] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

XGE2/1/1     Slave         E2E              Two         0

XGE2/1/2     Master        E2E              Two         0

# 在Device B上显示设备父节点信息。

[DeviceB] display ptp parent

Parent clock:

 Parent clock ID                         : 00A0FC-FFFE-005800

 Parent port number                      : 1

 Observed parent offset (log variance)   : N/A

 Observed parent clock phase change rate : N/A

Grandmaster clock:

 Grandmaster clock ID: 00A0FC-FFFE-005800

 Grandmaster clock quality:

  Class                 : 248

  Accuracy              : 32

  Offset (log variance) : 65535

  Priority1             : 10

  Priority2             : 10

以上信息表明DeviceB与DeviceA进行了时钟同步。

3.6  配置文件

·     Device A上的配置

#

clock protocol ptp mdc 1

#

 ptp profile 1588v2

 ptp mode bc

 ptp priority clock-source local priority1 10

 ptp priority clock-source local priority2 10

#

interface Ten-GigabitEthernet2/1/1

 ptp enable

#

interface Ten-GigabitEthernet2/1/2

 ptp enable

#

·     Device B上的配置

#

clock protocol ptp mdc 1

#

 ptp profile 1588v2

 ptp mode bc

#

interface Ten-GigabitEthernet2/1/1

 ptp enable

#

interface Ten-GigabitEthernet2/1/2

 ptp enable

#

·     Device C上的配置

#

clock protocol ptp mdc 1

#

 ptp profile 1588v2

 ptp mode oc

#

interface Ten-GigabitEthernet2/1/2

 ptp enable

#

·     Device D上的配置

#

clock protocol ptp mdc 1

#

 ptp profile 1588v2

 ptp mode oc

#

interface Ten-GigabitEthernet2/1/2

 ptp enable

#

4 相关资料

·     H3C SR6600-F 路由器 网络管理和监控配置指导-R7607

·     H3C SR6600-F 路由器 网络管理和监控命令参考-R7607

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

新华三官网
联系我们