The ptp device-type command sets a clock mode for a PTP device.
The undo ptp device-type command deletes the configured clock mode for a PTP device.
No PTP clock mode is set by default.
Parameter | Description | Value |
---|---|---|
t-bc |
Configures the device type as telecom boundary clock. |
- |
t-tc |
Configures the device type as telecom transparent clock. |
- |
oc |
Configures a 1588v2 device as an ordinary clock (OC). Only a single interface on an OC is in a 1588v2 domain. The interface synchronizes time signals with its upstream clock and advertises the time to downstream clocks. |
- |
bc |
Configures a 1588v2 device as a boundary clock (BC). A BC has multiple 1588v2 clock interfaces. One interface of a BC synchronizes time signals with its upstream clock, and other interfaces distribute the time to downstream clocks. |
- |
e2etc |
Configures a 1588v2 device as an end-to-end transparent clock (E2ETC). A TC only transparently transmits 1588v2 packets, but does not participate in 1588v2 clock synchronization. |
- |
p2ptc |
Configures a 1588v2 device as a peer-to-peer transparent clock (P2PTC). |
- |
tcandbc |
Configures a 1588v2 device as a transparent clock and boundary clock (TCandBC). |
- |
e2etcoc |
Configures a 1588v2 device as an end-to-end transparent clock and an ordinary clock (E2ETCOC). A TCOC is a specific TC, which is an ordinary TC in terms of time synchronization but has an additional function of frequency recovery implemented by exchanging 1588v2 packets an upstream clock. |
- |
p2ptcoc |
Configures a 1588v2 device as a peer-to-peer transparent clock and an ordinary clock (P2PTCOC). |
- |
Usage Scenario
A device must be configured with a clock type based on network planning before PTP is used for clock synchronization.
When the 1588v2 protocol is used, the following device types are supported: oc, bc, e2etc, e2etcoc, p2ptc, p2ptcoc, and tcandbc. After the protocol is switched to G.8275.1 or CU106, the supported device types are telecom boundary clock (t-bc) and telecom transparent clock (t-tc). In both protocols, the device type can be set to none, indicating that no clock device type is configured.Precautions
Each 1588v2 device can be configured with only one of the preceding device types. After 1588v2 is enabled on a device, you can use either of the following methods to change the device type:
To change the device type, disable the following configurations:To simplify the configuration, the device supports fast switching of the device type. That is, you can directly run this command to change the device type. The operation of changing the device type does not affect the 1588v2 function and parameters configured on the interface.