Configuring the Precision Time Protocol G.8275.2 Enhanced Profile (Telecom Profile)
When you enable the G.8275.2 enhanced profile, you cannot enable any other 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 both master and client must be configured. The ordinary option signifies that only the master, or only the client, must be configured.
[edit protocols ptp]user@host# set clock-mode (boundary | ordinary) - Configure the profile type as g.8275.2.enh (the G.8275.2.enh
profile type provides the telecom profile). This attribute is mandatory.[edit protocols ptp]user@host# set profile-type g.8275.2.enh
- (Optional) Configure the PTP domain option with a value
from 44 through 63. The default value is 44.[edit protocols ptp]user@host# set domain domain-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 - Configure the unicast-negotiation option.
Unicast negotiation is a method by which the announce, sync, and delay response packet rates are negotiated between the master clock and the client clock before a PTP session is established.
[edit protocols ptp]user@host# set unicast-negotiationNote Unicast negotiation, when enabled, does not allow you to commit any packet rate–related configuration.
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. The range is -7 to -3 seconds, and the default
values are -6 for the master and -7 for the client.
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
Note You can configure an aggregated Ethernet interface and its configured IP address for PTP streams acting as slaves or masters.
For example, to configure a client using an aggregated Ethernet interface:
user@switch# set protocols ptp slave interface ae0.0Note You can configure a loopback interface (there is only one loopback interface, and it is lo0.0) and its corresponding IP addresses for PTP streams acting as slaves or masters. Although the loopback interface is the same for both masters and slaves, the IP addresses must be unique.
For example, to configure a client using the loopback interface:
user@switch# set protocols ptp slave interface lo0.0 - Configure the unicast-mode option for the client.[edit protocols ptp slave interface interface-name]user@host# set unicast-mode
- Configure the transport option in unicast mode
as IPv4 or IPv6.[edit protocols ptp slave interface interface-name unicast-mode]user@host# set transport (ipv4 | ipv6)
- Configure the clock source and the IP address of the
interface acting as the local PTP client port.[edit protocols ptp slave interface interface-name unicast-mode]user@host# set clock-source ip-address local-ip-address local-ip-address
Note You must configure this IP address at the [edit interfaces interface-name] hierarchy level.
- (Optional) Configure the priority assigned to the interface
acting as the local PTP client port.[edit protocols ptp slave interface interface-name unicast-mode]user@host# set local-priority number
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
- Configure the interface for the master.[edit protocols ptp master]user@host# set interface interface-name
Note You can configure an aggregated Ethernet interface and its configured IP address for PTP streams acting as slaves or masters.
For example, to configure a master using an aggregated Ethernet interface:
user@switch# set protocols ptp master interface ae0.0Note You can configure a loopback interface (there is only one loopback interface, and it is lo0.0) and its corresponding IP addresses for PTP streams acting as slaves or masters. Although the loopback interface is the same for both masters and slaves, the IP addresses must be unique.
For example, to configure a master using the loopback interface:
user@switch# set protocols ptp master interface lo0.0 - Configure the unicast mode option for the master.[edit protocols ptp master interface interface-name]user@host# edit unicast-mode
- Configure the transport option in unicast mode
as IPv4 or IPv6.[edit protocols ptp master interface interface-name unicast-mode]user@host# set transport (ipv4 | ipv6)
- Configure the remote clock source and the IP address of
the interface acting as the master.[edit protocols ptp master interface interface-name unicast-mode transport type]user@host# set clock-client ip-address local-ip-address ip-address