Supported Platforms
Configuring a PTP Slave Clock
The slave port that you configure can be a Precision Time Protocol (PTP) boundary or ordinary clock, depending on the configuration of the clock-mode statement at the [edit protocols ptp] hierarchy level. An ordinary or boundary slave clock performs frequency and phase recovery based on received and requested timestamps from a master clock—a grandmaster or a boundary clock master.
To configure a PTP slave clock, complete the following tasks:
Configuring the PTP Slave Clock Parameters
To configure a PTP slave clock.
- Configure the clock mode:[edit protocols ptp]user@host# set clock-mode (boundary | ordinary)
- Configure the slave clock.[edit protocols ptp]user@host# edit slave
- (Optional) Specify the rate of announce messages that
a PTP slave requests from the master during a unicast-negotiation
session—from 0 through 4. The default value is 1.[edit protocols ptp slave]user@host# set announce-interval announce-interval-value
Note: The configuration of the announce-interval statement is effective only when the unicast-negotiation statement is also configured at the [edit protocols ptp] hierarchy level.
- (Optional) Specify the number of announce messages that
a slave—configured on an ACX Series router—must miss before
an announce timeout is declared—from 2 through 10. The default
value is 3.[edit protocols ptp slave]user@host# set announce-timeout announce-timeout-value
- (Optional) Override the default PTP clock class to Ethernet
Synchronization Message Channel (ESMC) mapping and specify the quality
level for the PTP timing source.[edit protocols ptp slave]user@host# set clock-class-to-quality-level-mapping quality-level (prc | prs |sec | smc | ssu-a | ssu-b | st2 | st3 | st3e | st4 | stu | tnc)
- (Optional) Enable retrieval of ESMC information from the
PTP clock class.[edit protocols ptp slave]user@host# set convert-clock-class-to-quality-level
- (Optional) Specify the logarithmic mean interval in seconds
between the delay request messages sent by the slave to the master—from
–6 through 3. The default value is 0.[edit protocols ptp slave]user@host# set delay-request delay-request-value
- (Optional) Specify the grant duration value. When unicast
negotiation is enabled, the local PTP slave requests announce, synchronization,
and delay-response messages from the master. In each request, the
slave asks for the packets to be sent at a specified rate and the
slave provides a duration for which the rate is valid. The grant-duration
value is specified in seconds. The default grant duration is 300 seconds.[edit protocols ptp slave]user@host# set grant-duration interval
- Configure the interface for the slave.[edit protocols ptp slave]user@host# edit interface interface-name
For details about configuring the slave interface, see Configuring the PTP Slave Clock Interface.
- (Optional) Configure the log mean interval between synchronization
messages—from –6 through -3. The
default value is –6 or 64 synchronous interval messages sent
per second[edit protocols ptp slave]user@host# set sync-interval sync-interval-value
After you have configured the PTP slave clock parameters, enter the commit command from configuration mode. To complete the configuration of the slave clock, complete Configuring the PTP Slave Clock Interface.
Configuring the PTP Slave Clock Interface
The slave clock interface responds to the upstream PTP master clock.
To configure the PTP slave clock interface:
- Configure the interface for the slave clock.[edit protocols ptp slave]user@host# edit interface interface-name
- Configure the upstream unicast PTP master clock source
parameters.[edit protocols ptp slave interface interface-name]user@host# edit unicast-mode
- Configure the IP address of the master, which acts as
a source of time for this slave.[edit protocols ptp slave interface interface-name unicast-mode]user@host# edit clock-source ip-address
Note: To configure additional master clock sources for the slave, include the clock-source statement up to four times. However, synchronization is to only one master clock.
- Specify the IP address of the interface acting as the
local PTP slave port.[edit protocols ptp slave interface interface-name unicast-mode clock-source ip-address]user@host# set local-ip-address local-ip-address
Note: For the configuration to work, the interface you specify must be configured with this IP address at the [edit interfaces interface-name] hierarchy level.
- Configure the encapsulation type for PTP packet transport.
This statement is mandatory.[edit protocols ptp slave interface interface-name unicast-mode]user@host# set transport ipv4
After you have configured the PTP slave clock interface, enter the commit command from configuration mode.