The ptp tcoc-clock-id command specifies the ID of a clock source that an OC interface on a TCOC tracks.
The undo ptp tcoc-clock-id command cancels the configured ID of a clock source that an OC interface on a TCOC tracks.
By default, the clock source ID is not configured.
Parameter | Description | Value |
---|---|---|
clock-source-id |
Specifies a clock source ID of the peer clock source (static clock source). |
The value is in the format of HHHHHHHH. Each H is a 2-bit hexadecimal number, such as E0 and FC. All 0s are not supported. |
port-num port-num |
Specifies the number of the master interface. |
The value is an integer ranging from 0 to 65535. To view the port number of the peer master clock, run the display ptp interface interface-type interface-number command. The port number is displayed in the Parent portnumber field. |
Usage Scenario
Unlike a TC, a TCOC has an OC interface to implement frequency synchronization. The TCOC also has TC interfaces to transparently transmit 1588v2 packets. To specify a clock source that the OC interface on the TCOC tracks, run the ptp tcoc-clock-id command. The OC interface can then receive 1588v2 packets to synchronize frequencies with the master clock interface.
This command applies only to 1588v2 and SMPTE-2059-2.Prerequisites
The TCOC clock type has been configured using the ptp device-type { e2etcoc | p2ptcoc } command.
1588v2 has been enabled on an interface using the ptp enable command.Precautions
The default clock ID of the peer clock source is generated by padding fffe in the hexadecimal system MAC address. You can also run the ptp virtual-clock-id clock-id-value command on the peer device to configure a virtual clock ID to replace the default clock ID. To view the clock ID, run the display ptp all command.
If the ptp tcoc-clock-id command is not run on the TCOC interface, the default clock type of the TCOC interface is TC. The TCOC interface only transparently transmits packets and does not perform frequency synchronization. The GPS 3.0 module does not support this command.<HUAWEI> system-view [~HUAWEI] ptp enable [~HUAWEI] ptp device-type e2etcoc [~HUAWEI] interface GigabitEthernet 0/1/0 [~HUAWEI-GigabitEthernet0/1/0] ptp tcoc-clock-id 122323FFFE122110 port-num 7937