ptp sync-interval

Function

The ptp sync-interval command sets the interval at which a PTP interface sends Sync packets.

The undo ptp sync-interval command restores the default interval at which a PTP interface sends Sync packets.

For details about the default values, see Parameter Description.

Format

ptp sync-interval sync-interval

undo ptp sync-interval

Parameters

Parameter Description Value
sync-interval

Specifies the interval at which a PTP interface sends Sync packets.

The value is an integer ranging from 0 to 20 for Ethernet cards.

  • In 1588v2 mode, the default value is 3, which means 8/1024s.
  • In G.8275.1 mode, the default value is 6.
  • In CU-106 mode, the default value is 6.

The mapping between sync-interval values and actual intervals is as follows:

  • 0 1/1024s
  • 1 2/1024s
  • 2 4/1024s
  • 3 8/1024s
  • 4 16/1024s
  • 5 32/1024s
  • 6 64/1024s
  • 7 128/1024s
  • 8 256/1024s
  • 9 512/1024s
  • 10 1s
  • 11 2s
  • 12 4s
  • 13 8s
  • 14 16s
  • 15 32s
  • 16 64s
  • 17 128s
  • 18 256s
  • 19 512s
  • 20 1024s

Views

100GE interface view, 10G LAN interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, FlexE-100G interface view, FlexE-400G interface view, FlexE-50G interface view, GE optical interface view, GE electrical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
clksync write

Usage Guidelines

Usage Scenario

Two devices exchange Announce packets to determine the master/slave relationship. The master device sends Sync packets to notify the slave device of time signal parameters and uses a delay measurement mechanism to achieve time signals accuracy.

The master interface periodically sends multicast Sync packets. If devices exchange Sync packets frequently and consume a lot of bandwidth resources, increase the sync-interval value. If time synchronization accuracy is low, reduce the sync-interval value.

Prerequisites

PTP has been enabled on the interface using the ptp enable command.

Precautions

The timestamp carried in a Sync message can be carried in a Sync message in one-step clock mode or in a Follow_Up message in two-step clock mode. To specify a timestamping mode, run the ptp clock-step { one-step | two-step } command.

Example

# Set the interval at which GE 0/1/0 sends Sync packets to 128/1024s.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] ptp sync-interval 7
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >