H3C S6300 Configuration Examples-6W100

HomeSupportSwitchesS6300 SeriesConfigure & DeployConfiguration ExamplesH3C S6300 Configuration Examples-6W100
32-PTP Configuration Examples
Title Size Download
32-PTP Configuration Examples 98.70 KB

 

H3C S6300 Switch Series

PTP Configuration Examples

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2020 New H3C Technologies Co., Ltd. All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.

Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.

The information in this document is subject to change without notice.



Introduction

This document provides PTP configuration examples.

Prerequisites

This document is not restricted to specific software or hardware versions.

The configuration examples in this document were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

This document assumes that you have basic knowledge of PTP.

Example: Configuring PTP (IEEE 1588 version 2)

Network requirements

As shown in Figure 1, configure all devices to use PTP standard IEEE 1588 version 2 so that they can synchronize to Device A, the grandmaster clock.

Figure 1 Network diagram

 

Configuration considerations

For Device A to synchronize time to other devices, configure the highest PTP priorities for Device A.

Software version used

This configuration example was created and verified on S6300-CMW710-R2310.

Configuration procedures

Configuring Device A

# Specify the system time source as PTP.

<DeviceA> system-view

[DeviceA] clock protocol ptp

# Specify the PTP standard as IEEE 1588 version 2.

[DeviceA] ptp profile 1588v2

# Specify the clock node type as BC.

[DeviceA] ptp mode bc

# Configure both priority 1 and priority 2 as 10 for the local clock.

[DeviceA] ptp priority clock-source local priority1 10

[DeviceA] ptp priority clock-source local priority2 10

# Enable PTP on Ten-GigabitEthernet 1/0/1.

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

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

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

# Enable PTP on Ten-GigabitEthernet 1/0/2.

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

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

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

Configuring Device B

# Specify the system time source as PTP.

<DeviceB> system-view

[DeviceB] clock protocol ptp

# Specify the PTP standard as IEEE 1588 version 2.

[DeviceB] ptp profile 1588v2

# Specify the clock node type as BC.

[DeviceB] ptp mode bc

# Enable PTP on Ten-GigabitEthernet 1/0/1.

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

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

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

# Enable PTP on Ten-GigabitEthernet 1/0/2.

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

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

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

Configuring Device C

# Specify the system time source as PTP.

<DeviceC> system-view

[DeviceC] clock protocol ptp

# Specify the PTP standard as IEEE 1588 version 2.

[DeviceC] ptp profile 1588v2

# Specify the clock node type as OC.

[DeviceC] ptp mode oc

# Enable PTP on Ten-GigabitEthernet 1/0/2.

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

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

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

Configuring Device D

# Specify the system time source as PTP.

<DeviceD> system-view

[DeviceD] clock protocol ptp

# Specify the PTP standard as IEEE 1588 version 2.

[DeviceD] ptp profile 1588v2

# Specify the clock node type as OC.

[DeviceD] ptp mode oc

# Enable PTP on Ten-GigabitEthernet 1/0/2.

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

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

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

Verifying the configuration

When the network is stable, perform the following tasks to verify that Device B has synchronized to Device A:

·     Use the display ptp clock command to display PTP clock information.

·     Use the display ptp interface brief command to display brief PTP statistics on an interface.

# Display PTP clock information on Device A.

[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

# Display brief PTP statistics on Device A.

[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

# Display PTP clock information on Device B.

[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

# Display brief PTP statistics on Device B.

[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

# Display parent node information on 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

Configuration files

·     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

#

Example: Configuring PTP (IEEE 802.1AS)

Network requirements

As shown in Figure 2, configure all devices to use PTP standard IEEE 802.1AS so that they can synchronize to Device A, the grandmaster clock.

Figure 2 Network diagram

 

Configuration considerations

For Device A to synchronize time to other devices, configure the highest PTP priorities for Device A.

Software version used

This configuration example was created and verified on S6300-CMW710-R2310.

Configuration procedures

Configuring Device A

# Specify the system time source as PTP.

<DeviceA> system-view

[DeviceA] clock protocol ptp

# Specify the PTP standard as IEEE 802.1AS.

[DeviceA] ptp profile 802.1AS

# Specify the clock node type as BC.

[DeviceA] ptp mode bc

# Configure both priority 1 and priority 2 as 10 for the local clock.

[DeviceA] ptp priority clock-source local priority1 10

[DeviceA] ptp priority clock-source local priority2 10

# Enable PTP on Ten-GigabitEthernet 1/0/1.

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

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

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

# Enable PTP on Ten-GigabitEthernet 1/0/2.

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

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

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

Configuring Device B

# Specify the system time source as PTP.

<DeviceB> system-view

[DeviceB] clock protocol ptp

# Specify the PTP standard as IEEE 802.1AS.

<DeviceB> system-view

[DeviceB] ptp profile 802.1AS

# Specify the clock node type as BC.

[DeviceB] ptp mode bc

# Enable PTP on Ten-GigabitEthernet 1/0/1.

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

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

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

# Enable PTP on Ten-GigabitEthernet 1/0/2.

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

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

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

Configuring Device C

# Specify the system time source as PTP.

<DeviceC> system-view

[DeviceC] clock protocol ptp

# Specify the PTP standard as IEEE 1588 802.1AS.

<DeviceC> system-view

[DeviceC] ptp profile 802.1AS

# Specify the clock node type as OC.

[DeviceC] ptp mode oc

# Enable PTP on Ten-GigabitEthernet 1/0/1.

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

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

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

Configuring Device D

# Specify the system time source as PTP.

<DeviceD> system-view

[DeviceD] clock protocol ptp

# Specify the PTP standard as IEEE 1588 802.1AS.

<DeviceD> system-view

[DeviceD] ptp profile 802.1AS

# Specify the clock node type as OC.

[DeviceD] ptp mode oc

# Enable PTP on Ten-GigabitEthernet 1/0/1.

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

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

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

Verifying the configuration

When the network is stable, perform the following tasks to verify that Device B has synchronized to Device A:

·     Use the display ptp clock command to display PTP clock information.

·     Use the display ptp interface brief command to display brief PTP statistics on an interface.

# Display PTP clock information on Device A.

[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

# Display brief PTP statistics on Device A.

[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

# Display PTP clock information on Device B.

[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

# Display brief PTP statistics on Device B.

[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

# Display parent node information on 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

Configuration files

·     Device A:

#

 clock protocol ptp

#

 ptp profile 802.1AS

 ptp mode bc

 ptp priority clock-source local priority1 10

 ptp priority clock-source local priority2 10

#                                                                             

interface Ten-GigabitEthernet1/0/1                                             

 port link-mode bridge                                                         

 ptp enable                                                                    

#                                                                              

interface Ten-GigabitEthernet1/0/2                                             

 port link-mode bridge                                                         

 ptp enable                                                                    

#

·     Device B:

#

 clock protocol ptp

#

 ptp profile 802.1AS

 ptp mode bc

#                                                                             

interface Ten-GigabitEthernet1/0/1                                             

 port link-mode bridge                                                          

 ptp enable                                                                    

#                                                                              

interface Ten-GigabitEthernet1/0/2                                              

 port link-mode bridge                                                         

 ptp enable                                                                    

#

·     Device C:

#

 clock protocol ptp

#

 ptp profile 802.1AS

 ptp mode bc

#                                                                             

interface Ten-GigabitEthernet1/0/1                                             

 port link-mode bridge                                                         

 ptp enable                                                                    

#

·     Device D:

#

clock protocol ptp

#

 ptp profile 802.1AS

 ptp mode bc

#                                                                             

interface Ten-GigabitEthernet1/0/1                                             

 port link-mode bridge                                                         

 ptp enable

#

Related documentation

·     H3C S6300 Switch Series Network Management and Monitoring Configuration Guide-Release 23xx

·     H3C S6300 Switch Series Network Management and Monitoring Command Reference-Release 23xx

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网