• Configuring PTP Dynamic Ports for Ethernet Encapsulation on page 280
• Example: Configuring PTP over Ethernet for Multicast Master, Slave, and Dynamic
Ports on page 281
Configuring Precision Time Protocol Clocking
In a distributed network, you can configure Precision Time Protocol (PTP) master and
slave clocks to help synchronize the timing across the network. The synchronization is
achieved through packets that are transmitted and received in a session between the
master clock and the slave clock or clock client.
To configure Precision Time Protocol (PTP) options:
1. In configuration mode, go to the [edit protocols ptp] hierarchy level.
[edit]
user@host# edit protocols ptp
2. Specify the clock as a boundary or ordinary clock. The boundary option signifies that
the clock can be both a master clock and a slave clock. The ordinary option signifies
that the clock is a slave clock.
[edit protocols ptp]
user@host# set clock-mode (boundary | ordinary)
3. (Optional) Enable PHY Timestamping. The PHY timestamping is disabled by default.
[edit protocols ptp]
user@host# set transparent-clock
4. (Optional) Configure the PTP domain with values from 0 through 127. The default
value is 0.
[edit protocols ptp]
user@host# set domain domain-value
5. (Optional) Specify the DiffServ code point (DSCP) value (0 through 63) for all PTP
IPv4 packets originated by the router. The default value is 56.
[edit protocols ptp]
user@host# set ipv4-dscp number
6. Specify the master clock parameters.
[edit protocols ptp]
user@host# set master
For details about configuring the master clock parameters, see “Configuring a PTP
Master Boundary Clock” on page 244.
243Copyright © 2017, Juniper Networks, Inc.
Chapter 9: Configuring Timing and Synchronization