ptp port-type

Function

The ptp port-type command sets a clock mode for a TCandBC device.

The undo ptp port-type command deletes the configured 1588v2 clock mode for a TCandBC device.

No 1588v2 clock mode is set by default.

Format

ptp port-type { tc | bc }

undo ptp port-type

Parameters

Parameter Description Value
tc

Configures a TCandBC interface to work as a TC.

-

bc

Configures a TCandBC interface to work as a BC.

-

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

A TCandBC device combines the advantages of both a TC and a BC. The TCandBC device uses TC interfaces and BC interfaces to communicate with other 1588v2 devices. A TCandBC independently transmits 1588v2 packets between 1588v2 domains.

The undo ptp port-type command must be run to specify TC and BC interfaces on the device that is configured as a TCandBC before the interfaces support 1588v2 functions.

  • BC interface: sends and receives PTP messages to determine the synchronization hierarchy. Specifically, a BC interface can function as a master clock to distribute clock synchronization information to downstream devices and at the same time can function as a slave clock to receive clock synchronization information from upstream devices.
  • TC interface: forwards PTP packets and corrects time in PTP event messages. TC interfaces do not participate in BMC source selection, and therefore do not determine the master/slave hierarchy.

    This command applies only to 1588v2 and SMPTE-2059-2.

Prerequisites

The clock mode of the device has been set to TCandBC using the ptp device-type tcandbc command.

Precautions

This command is supported only by the admin VS.

Example

# Configure a TCandBC interface to work as a BC.
<HUAWEI> system-view
[~HUAWEI] ptp enable
[~HUAWEI] ptp device-type tcandbc
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] ptp port-type bc
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >