Configuring the Precision Time Protocol Enterprise Profile
When you enable the enterprise profile, you cannot enable any other profile. Also, unicast negotiation is disabled when you enable the enterprise profile.
Configuring Precision Time Protocol and its Options
This topic includes the following tasks:
Configuring PTP Options
To configure PTP options:
- In configuration mode, go to the [edit protocols
ptp] hierarchy level:[edit]user@host# edit protocols ptp
- Configure the clock mode as either boundary or ordinary.
This attribute is mandatory and has no default value.
The boundary option signifies that the clock can be both a master clock and a client clock. The ordinary option signifies that the clock is either a master clock or a client clock.
[edit protocols ptp]user@host# set clock-mode (boundary | ordinary) - Configure the profile type as enterprise. This attribute
is mandatory.[edit protocols ptp]user@host# set profile-type enterprise-profile
- (Optional) Configure the PTP domain option with values
from 0 through 127. The default value is 0.[edit protocols ptp]user@host# set domain domain-value
- (Optional) Configure the priority1 option with
values from 0 through 255. The default value is 128.
The priority1 value determines the best master clock. The priority1-value is also advertised in the master clock’s announce message to other slaves.
[edit protocols ptp]user@host# set priority1 priority1-value - (Optional) Configure the priority2 option with
values from 0 through 255. The default value is 128.
The priority2 value differentiates and prioritizes the master clock to avoid confusion when priority1-value is the same for different master clocks in a network.
[edit protocols ptp]user@host# set priority2 priority2-value
Configuring Slave Clock Options
Configure the following options after the aforementioned PTP options have been set.
- Configure the client clock.[edit protocols ptp]user@host# edit slave
- (Optional) Configure the delay-request option
in the client node with values from –7 through 7. The default
value is 0.
The delay request value is the logarithmic mean interval in seconds between the delay request messages sent by the client to the master.
[edit protocols ptp slave]user@host# set delay-request delay-request-value - Configure the interface for the client.[edit protocols ptp slave]user@host# set interface interface-name
- Configure the multicast-mode option for the
client. You can set this option when PTP multicast mode of messaging
is needed.[edit protocols ptp slave interface interface-name]user@host# set multicast-mode
- Configure the transport option in multicast
mode as IPv4.
The encapsulation type for PTP packet transport is IPv4.
[edit protocols ptp slave interface interface-name multicast-mode]user@host# set transport ipv4 - Configure the IP address of the local logical interface.[edit protocols ptp slave interface interface-name multicast-mode]user@host# set local-ip-address IP address
Configuring Master Clock Options
Configure the following options after the aforementioned PTP options and client clock options have been set.
- Configure the master clock.[edit protocols ptp]user@host# edit master
- (Optional) Configure the delay-req-timeout option
for the master.
The maximum timeout for delay request messages is between 30 and 300 seconds. We recommend 30 seconds.
[edit protocols ptp master]user@host# set delay-req-timeout seconds - Configure the interface for the master.[edit protocols ptp master]user@host# set interface interface-name
- Configure the multicast-mode option for the
master. You can set this option when PTP multicast mode of messaging
is needed.[edit protocols ptp master interface interface-name]user@host# set multicast-mode
- Configure the transport option in multicast
mode as IPv4.
The encapsulation type for PTP packet transport is IPv4.
[edit protocols ptp master interface interface-name multicast-mode]user@host# set transport ipv4 - Configure the IP address of the interface acting as the
local PTP master port.[edit protocols ptp master interface interface-name multicast-mode clock-client ip-address]user@host# set local-ip-address local-ip-address
If the master clock connection is through a 1-Gigabit Ethernet interface, configure the interface named ptp0 interface.
This interface is named ptp0 by default.