T-BC Time Error Metrics

Testing a Boundary Clock requires a Master to provide the reference time to the BC slave. The BC Slave then recovers time from PTP, optionally generates a 1pps signal, transfers time to the BC Master which then transmits this time to any connected slaves.

The performance of the BC is measured using the PTP generated by the BC Master and so verifies all of the above processing steps.

Measuring the 1pps output from the BC provides some insight into the BC Slave performance i.e. measures whether the BC is correctly recovering time from the reference Master. This is useful so as to determine whether any error is caused by clock recovery or in the transfer of time to the BC Master and the subsequent transmission of that time.

Test Configuration

1pps Measurements

1pps time error is the difference between the rising edge of the reference 1pps pulse and the rising edge of the pulse to be measured.

The test equipment ensures that the reference 1pps pulse is aligned with PTP top-of-second so as to provide an accurate measurement of the DUT’s ability to recover time from PTP and correctly generate a 1pps output.

 

The 1pps pulse from the DUT is measured at the time at which it exits the DUT. So the time error calculation is:

  • 1ppsTE = T1ppsMeasEgress - TRef

However, the test equipment can only timestamp the pulse when it arrives at the instrument. This is later than the exit from the DUT due to the delay through the measurement cable. So:

  • TS1ppsMeasEgress = TS1ppsMeasIngress – Dcable

So we have:

  • 1ppsTE = (T1ppsMeasIngress – Dcable) - TRef

If the DUT time lags (is behind) the reference, then TRef will be later than T1ppsMeasEgress and the time error will negative; if the DUT leads (is ahead of) the reference, then TRef will be earlier than T1ppsMeasEgress and the time error will be positive.

PTP Measurements

PTP time error is calculated from 4 timestamps:

  • T1 and T4 are from the DUT. These are the measured timestamps

  • T2 and T3 are from the test equipment. These are the reference timestamps

To make an accurate time error measurement, the test equipment must know the delay to the DUT – the cable delay Dcable.

So, T1 Time Error is calculated using measured minus reference with a correction for the cable delay:

  • T1TE = (T1 + Dcable) - T2

T4 Time Error is calculated using:

  • T4TE = (T4 – Dcable) – T3

2-way Time Error is calculated by adding the T1 and T4 Time Error results and dividing by 2:

  • 2WayTE = (T1TE + T4TE) / 2

If the DUT time lags (is behind) the reference, then both T1 and T4 will be smaller than T2 and T3 and the time error will negative; if the DUT leads (is ahead of) the reference, then both T1 and T4 will be greater than T2 and T3 and the time error will be positive.

The cable delay compensation could be applied to the T2 / T3 timestamps. In the example above, the T1 / T4 timestamps are adjusted so that all calculations are performed at the Reference Plane.

Effect of measurement cable delay

Conceptually, the effect of the cable delay can be visualised as:

A measured value (shown as a Red number here) includes the time taken for the signal to pass through the measurement cable i.e. the cable delay (shown as a Green line).

Therefore, the actual value (shown as a Green value) is represented by the sum of the measured value and the cable delay i.e. the cable delay is added to the measured value to give correct measurement.

Related Articles