The PTP offset value is the measured offset of the clock from the time source clock, in nanoseconds. The mean path delay is the average time, in nanoseconds, taken by PTP frames to travel between time source and time recipient. You can display the historical maximum and minimum values for the offset from the time source and mean path delay when the switch operates in GMC-BC (Grandmaster Boundary Clock) or BC (Boundary Clock) modes. You can also display a histogram of offset, delay, and time errors, where the historical values of the field specified are divided into bins to show the data distribution.
High offset and delay values can indicate a problem. For example, these values may increase when a device goes down in the network and the link to the time source is available but not viable. Ideally, offset and delay values should be as small as possible. Some PTP modes or profiles might cause higher offset values. Offsets can be negative.
Offset and delay values are shown for these periods: the last day, the past 5 seconds, 15 seconds, 1 minute, 5 minutes, 15 minutes, 1 hour, 5 hours, 15 hours, 1 day (same as last day), 5 days, 15 days, and more than fifteen days.
If the switch is the time source or grandmaster clock, these values are zero.
Note
The commands to show historical maximum and minimum values for the offset from time source and mean path delay are supported for both PTP Default Profile and Power Profile.
The commands to show time error data apply to p2ptransparent or e2etransparent clock modes.
Delay
To display the historical maximum and minimum values for the mean path delay, enter show PTP history delay , as shown in this example:
NAT1#sh ptp history delay
5 seconds 15 seconds 1 minute 5 minutes
Max mean path delay(ns): 0 0 0 0
Min mean path delay(ns): 0 0 0 0
15 minutes 1 hour 5 hours 15 hours
Max mean path delay(ns): 0 0 0 0
Min mean path delay(ns): 0 0 0 0
1 day 5 days 15 days >15 days
Max mean path delay(ns): 12154 12154 12154 12154
Min mean path delay(ns): 0 0 0 0
NAT1#
Time error
To display the historical maximum and minimum values for time error data when the clock mode is p2ptransparent or e2etransparent, enter show PTP history time-error , as shown in this example:
NAT2#sh ptp history time-error
5 seconds 15 seconds 1 minute 5 minutes
Max time error(ns): 0 0 0 0
Min time error(ns): -35260 -36487 -36487 0
15 minutes 1 hour 5 hours 15 hours
Max time error(ns): 0 0 0 0
Min time error(ns): 0 0 0 0
1 day 5 days 15 days >15 days
Max time error(ns): 0 0 0 0
Min time error(ns): 0 0 0 0
NAT2#
Histogram
To display a histogram of PTP offset, delay, or time-error data, enter the show ptp histogram [delay|time-error] command. Data is shown for the last 60 seconds, the last hour, and the last 24 hours. Values are divided into ranges of 0 to 20 nanoseconds, 20 to 50 nanoseconds, 50 to 100 nanoseconds, 100 to 250 nanoseconds, 250 to 500 nanoseconds, 500 to 1000 nanoseconds, 1000 to 10,000 nanoseconds, and greater than 10,000 nanoseconds. Offset and time-error values are further classified as negative or positive.
-
Offset—Available when the clock mode is boundary; displays histogram for offset from time source.
-
Delay—Available when the clock mode is boundary or GMC-boundary; displays histogram of mean path delay data.
-
Time-error—Available when the clock mode is p2ptransparent or e2etransparent; displays histogram of data for time-error (frequency error * residence time).
This example shows the histogram for time error data.
NAT2#sh ptp histogram time-error
Time Error (in nanoseconds)
Last 60 seconds:
286 270 264 240 211 201 172
137 129 105 83 38 -5 -48
-69 -97 -148 -208 -229 -266 -336
-357 -427 -451 -500 -567 -664 -705
-772 -840 -910 -1022 -1071 -1165 -1262
-1435 -1489 -1592 -1757 -1836 -1969 -2199
-2263 -2498 -2578 -2735 -3013 -3106 -3311
-3509 -3718 -3936 -4183 -4596 -4729 -5020
-5338 -5650 -6121 -6282
Time Error range Positive Negative
---------------- -------- --------
0-20ns 0 1
20-50ns 1 1
50-100ns 1 2
100-250ns 7 3
250-500ns 3 6
500-1us 0 6
1-10us 0 29
>10us 0 0
Last 60 minutes:
-208 -3106 -16704 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0
Time Error range Positive Negative
---------------- -------- --------
0-20ns 57 0
20-50ns 0 0
50-100ns 0 0
100-250ns 0 1
250-500ns 0 0
500-1us 0 0
1-10us 0 1
>10us 0 1
Last 24 hours:
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0
Time Error range Positive Negative
---------------- -------- --------
0-20ns 24 0
20-50ns 0 0
50-100ns 0 0
100-250ns 0 0
250-500ns 0 0
500-1us 0 0
1-10us 0 0
>10us 0 0
NAT2#
Clearing statistics
Enter clear ptp history to clear the offset, delay, and time error historical statistics.
Enter clear ptp histogram to clear the offset, delay, and time error histogram statistics.