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

H3C S6300系列以太网交换机 典型配置举例-6W100

32-PTP典型配置举例

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

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/S6300/S6300/Configure/Typical_Configuration_Example/H3C_S6300_CE-6W100/201411/844384_30005_0.htm

32-PTP典型配置举例

H3C S6300 PTP典型配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2014 杭州华三通信技术有限公司 版权所有,保留一切权利。

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

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

H3C_彩色.emf

 



1  简介

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

2  配置前提

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

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

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

3  PTP(IEEE 1588 version 2)典型配置举例

3.1  组网需求

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

图1 PTP(IEEE 1588 version 2)典型配置举例组网图

 

3.2  配置思路

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

3.3  使用版本

本举例是在S6300-CMW710-R2310版本上进行配置和验证的。

3.4  配置步骤

3.4.1  Device A的配置

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

<DeviceA> system-view

[DeviceA] clock protocol ptp

# 配置协议标准为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-GigabitEthernet1/0/1上使能PTP功能。

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

[DeviceA-Ten-GigabitEthernet1/0/1] ptp enable

[DeviceA-Ten-GigabitEthernet1/0/1] quit

# 在接口Ten-GigabitEthernet1/0/2上使能PTP功能。

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

[DeviceA-Ten-GigabitEthernet1/0/2] ptp enable

[DeviceA-Ten-GigabitEthernet1/0/2] quit

3.4.2  Device B的配置

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

<DeviceB> system-view

[DeviceB] clock protocol ptp

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

[DeviceB] ptp profile 1588v2

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

[DeviceB] ptp mode bc

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

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

[DeviceB-Ten-GigabitEthernet1/0/1] ptp enable

[DeviceB-Ten-GigabitEthernet1/0/1] quit

# 在接口Ten-GigabitEthernet1/0/2上使能PTP功能。

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

[DeviceB-Ten-GigabitEthernet1/0/2] ptp enable

[DeviceB-Ten-GigabitEthernet1/0/2] quit

3.4.3  Device C的配置

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

<DeviceC> system-view

[DeviceC] clock protocol ptp

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

[DeviceC] ptp profile 1588v2

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

[DeviceC] ptp mode oc

# 在接口Ten-GigabitEthernet1/0/2上使能PTP功能。

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

[DeviceC-Ten-GigabitEthernet1/0/2] ptp enable

[DeviceC-Ten-GigabitEthernet1/0/2] quit

3.4.4  Device D的配置

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

<DeviceD> system-view

[DeviceD] clock protocol ptp

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

[DeviceD] ptp profile 1588v2

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

[DeviceD] ptp mode oc

# 在接口Ten-GigabitEthernet1/0/2上使能PTP功能。

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

[DeviceD-Ten-GigabitEthernet1/0/2] ptp enable

[DeviceD-Ten-GigabitEthernet1/0/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 2011

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

[DeviceA] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

XGE1/0/1      Master        E2E              Two         0

XGE1/0/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 2011

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

[DeviceB] display ptp interface brief

Name         State         Delay mechanism  Clock step  Asymmetry correction

XGE1/0/1     Slave         E2E              Two         0

XGE1/0/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

#

 ptp profile 1588v2

 ptp mode bc

 ptp priority clock-source local priority1 10

 ptp priority clock-source local priority2 10

#

interface ten-gigabitethernet 1/0/1

 ptp enable

#

interface ten-gigabitethernet 1/0/2

 ptp enable

#

·     Device B上的配置

#

clock protocol ptp

#

 ptp profile 1588v2

 ptp mode bc

#

interface ten-gigabitethernet 1/0/1

 ptp enable

#

interface ten-gigabitethernet 1/0/2

 ptp enable

#

·     Device C上的配置

#

clock protocol ptp

#

 ptp profile 1588v2

 ptp mode oc

#

interface ten-gigabitethernet 1/0/2

 ptp enable

#

·     Device D上的配置

#

clock protocol ptp

#

 ptp profile 1588v2

 ptp mode oc

#

interface ten-gigabitethernet 1/0/2

 ptp enable

#

4  PTP(IEEE 802.1AS)典型配置举例

4.1  组网需求

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

图2 PTP(IEEE 802.1AS)典型配置举例组网图

 

4.2  配置思路

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

4.3  使用版本

本举例是在S6300-CMW710-R2310版本上进行配置和验证的。

4.4  配置步骤

4.4.1  Device A的配置

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

<DeviceA> system-view

[DeviceA] clock protocol ptp

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

[DeviceA] ptp profile 8021as

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

[DeviceA] ptp mode bc

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

[DeviceA] ptp priority clock-source local priority1 10

[DeviceA] ptp priority clock-source local priority2 10

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

[DeviceA] interface Ten-gigabitethernet 1/0/1

[DeviceA-Ten-GigabitEthernet1/0/1] ptp enable

[DeviceA-Ten-GigabitEthernet1/0/1] quit

# 在接口Ten-GigabitEthernet1/0/2上使能PTP功能。

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

[DeviceA-Ten-GigabitEthernet1/0/2] ptp enable

[DeviceA-Ten-GigabitEthernet1/0/2] quit

4.4.2  Device B的配置

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

<DeviceB> system-view

[DeviceB] clock protocol ptp

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

[DeviceB] ptp profile 8021as

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

[DeviceB] ptp mode bc

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

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

[DeviceB-Ten-GigabitEthernet1/0/1] ptp enable

[DeviceB-Ten-GigabitEthernet1/0/1] quit

# 在接口Ten-GigabitEthernet1/0/2上使能PTP功能。

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

[DeviceB-Ten-GigabitEthernet1/0/2] ptp enable

[DeviceB-Ten-GigabitEthernet1/0/2] quit

4.4.3  Device C的配置

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

<DeviceC> system-view

[DeviceC] clock protocol ptp

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

[DeviceC] ptp profile 8021as

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

[DeviceC] ptp mode oc

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

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

[DeviceC-Ten-GigabitEthernet1/0/1] ptp enable

[DeviceC-Ten-GigabitEthernet1/0/1] quit

4.4.4  Device D的配置

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

<DeviceD> system-view

[DeviceD] clock protocol ptp

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

[DeviceD] ptp profile 8021as

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

[DeviceD] ptp mode oc

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

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

[DeviceD-Ten-GigabitEthernet1/0/1] ptp enable

[DeviceD-Ten-GigabitEthernet1/0/1] quit

4.5  验证配置

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

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

[DeviceA] display ptp clock

PTP profile         : IEEE 802.1AS

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

XGE1/0/1     Master        P2P              Two         0

XGE1/0/2     Master        P2P              Two         0

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

[DeviceB] display ptp clock

PTP profile         : IEEE 802.1AS

PTP mode            : BC

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

 Offset (log variance) : 16640

Offset from master : -1 (ns)

Mean path delay    : 473 (ns)

Steps removed      : 1

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

XGE1/0/1     Slave         P2P              Two         0

XGE1/0/2     Master        P2P              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) : 16640

  Priority1             : 10

  Priority2             : 10

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

4.6  配置文件

·     设备Device A

#

clock protocol ptp

#

 ptp profile 8021as

 ptp mode bc

 ptp priority clock-source local priority1 10

 ptp priority clock-source local priority2 10

#

interface ten-gigabitethernet 1/0/1

 ptp enable

#

interface ten-gigabitethernet 1/0/2

 ptp enable

#

·     设备Device B

#

clock protocol ptp

#

 ptp profile 8021as

 ptp mode bc

#

interface ten-gigabitethernet 1/0/1

 ptp enable

#

interface ten-gigabitethernet 1/0/2

 ptp enable

#

·     设备Device C

#

clock protocol ptp

#

 ptp profile 8021as

 ptp mode oc

#

interface ten-gigabitethernet 1/0/2

 ptp enable

#

·     设备Device D

#

clock protocol ptp

#

 ptp profile 8021as

 ptp mode oc

#

interface ten-gigabitethernet 1/0/2

 ptp enable

#

5  相关资料

·     H3C S6300系列以太网交换机 网络管理和监控配置指导-Release 2310

·     H3C S6300系列以太网交换机 网络管理和监控命令参考-Release 2310

 

 

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

新华三官网
联系我们