Setting the PTP Transport Type
- This command configures the PTP transport type for the interface to IPv4.
switch(config-if-Et5)# ptp transport ipv4 switch(config-if-Et5)#
- This command configures the PTP transport type for the interface to IPv6.
switch(config-if)# ptp transport ipv6 switch(config-if)#
Setting the Local Priority of the Clock and Interfaces
switch(config)# ptp local-priority 1
switch(config-if)# ptp local-priority 255
Setting up as a Slave to another PTP Device
Each interface may be configured with a candidate grantor IP address to send requests and potentially become slave to another PTP device. Once configured, the switch starts negotiating with the IP and depending on the Announce messages it receives, it may start requesting Sync and Delay Response to sync its clock. Each grantor may be associated with a unicast negotiation profile. If the profile is omitted, the default interval of one second and duration of 60 seconds for all message types is used. If the profile does not exist, the switch uses the default values until the profile gets added.
switch(config-if)# ptp unicast-negotiation candidate-grantor 10.0.0.1
switch(config-if)# ptp unicast-negotiation candidate-grantor 10.0.0.1 profile fastProfile
Setting up as a Master to another PTP Device
Each interface may be configured with a range of IP addresses of remote grantees to grant incoming requests and potentially become a master to another PTP device. By default, incoming requests outside the configured range of IP addresses will be denied. Each grantee may be associated with a unicast negotiation profile. If the profile is omitted, incoming requests with interval of 0 or longer for all message types are granted. If a profile is specified, it will compare with the configured interval. If the profile does not exist, the switch uses the default values until the profile gets added.
switch(config-if)# ptp unicast-negotiation remote-grantee 10.0.0.1/24
switch(config-if)# ptp unicast-negotiation remote-grantee 10.0.0.1/24 profile fastProfile
Setting the masterOnly Flag
switch(config-if)# ptp role master
Configuring the Unicast Profile
A Unicast negotiation profile may be configured to change message rates and durations. The default value and the configurable range of each value are shown in the table below.
Field | Range | Default |
Announce interval | [-3, 0] | 0 |
Announce duration | [60, 1000] | 60 |
Sync interval | [-7, 0] | 0 |
Sync duration | [60, 1000] | 60 |
Delay Response interval | [-7, 0] | 0 |
Delay Response duration | [60, 1000] | 60 |
When a profile is applied to a remote grantee on a Grant port, it will use the values to determine whether the given request should be granted or denied. If the requested interval is shorter than the profile, it will be denied; otherwise, it will be granted. When a profile is applied to a candidate grantor on a Request port, it will be requested to the candidate grantor using the values in the profile.
switch(config)# ptp unicast-negotiation profile fastProfile
switch(config-unicast-negotiation-profile-fastProfile)# announce interval -2
switch(config-unicast-negotiation-profile-fastProfile)# announce duration 500
switch(config-unicast-negotiation-profile-fastProfile)# sync interval -3
switch(config-unicast-negotiation-profile-fastProfile)# sync duration 300
switch(config-unicast-negotiation-profile-fastProfile)# delay-resp interval -3
switch(config-unicast-negotiation-profile-fastProfile)# delay-resp duration 300
Displaying Unicast Negotiation Configurations
(switch)# show ptp unicast-negotiation profile
Unicast Negotiation Profile fastProfile
Announce interval: 0.25 seconds
Announce duration: 500 seconds
Sync interval: 0.125 seconds
Sync duration: 300 seconds
Delay Response interval: 0.125 seconds
Delay Response duration: 300 seconds
(switch)# show ptp unicast-negotiation candidate-grantor
Interface Address Profile Grantor Status
----------- ---------- -------------- ------------------
Ethernet1 4::1 fastProfile Master
Ethernet1 4::2 fastProfile Candidate Master
Ethernet2 4::2 fastProfile Blacklisted
(switch)# show ptp unicast-negotiation remote-grantee
Interface Address Profile
------------ ---------- -------------
Ethernet1 4::1/96 fastProfile
Ethernet1 4::2/96 fastProfile
Ethernet2 4::2/96 fastProfile
(switch)# show ptp unicast-negotiation granted
Interface Address Message Interval Duration Expires In
----------- ---------- ------------ -------------- -------------- -------------
Ethernet2 4::1 Announce 0.25 seconds 300 seconds 30 seconds
Ethernet2 4::1 Sync 2.0 seconds 300 seconds 30 seconds
(switch)# show ptp unicast-negotiation requested
Interface Address Message Interval Duration Expires In
------------ --------- ----------- --------------- -------------- -------------
Ethernet2 4::2 Announce 0.25 seconds 600 seconds 250 seconds
Ethernet2 4::2 Sync 2.0 seconds 300 seconds denied
(switch)# show ptp local-clock
PTP Mode: Boundary Clock
Clock Identity: 0x00:1c:73:ff:ff:00:72:40
Clock Domain: 44
Number of PTP ports: 64
Priority1: 128
Priority2: 128
Local Priority: 128
Clock Quality:
Class: 248
Accuracy: 0x30
OffsetScaledLogVariance: 0xffff
Offset From Master: -5
Mean Path Delay: 416 nanoseconds
Steps Removed: 1
Skew: 1.00000006399
Last Sync Time: 23:42:33 UTC Nov 01 2018
Current PTP System Time: 23:42:33 UTC Nov 01 2018
The show ptp interface command displays the interface local priority in G8275.2 mode.
(switch)# show ptp interface Ethernet 42 | nz Interface Ethernet42
PTP: Enabled
Port state: Slave
Sync interval: 1.0 seconds
Announce interval: 2.0 seconds
Announce interval timeout multiplier: 3
Delay mechanism: end to end
Delay request message interval: 0.25 seconds
Local Priority: 128
Transport mode: ipv4
Announce messages received: 2964
Sync messages received: 2558
Follow up messages received: 2558
Delay request messages sent: 2540
Delay response messages received: 2540
Signaling messages sent: 98
Signaling messages received: 101