Symptom
Without PTP, TWAMP will produce the correct timestamps when the command ?platform time-source ntp time-scale epoch-1900? is configured.
However, PTP and NTP are mutually exclusive so the above command cannot be used when PTP is enabled.
With PTP, the TWAMP packets are marked with the wrong timestamp for received and transmitted test packet:TwoWay Active Measurement Test Protocol
Sequence Number: 0
Timestamp: Sep 23, 2088 21:30:44.616472753 CEST
Error Estimate: 37045 (0x90b5), S
1... .... .... .... = S: Synchronized to UTC using an external source
.0.. .... .... .... = Z: False
..01 0000 .... .... = Scale: 16
.... .... 1011 0101 = Multiplier: 181
MBZ: 0 (0x00)
Receive Timestamp: Sep 23, 2088 21:30:44.612876733 CEST
Sender Sequence Number: 0
Sender Timestamp: Aug 18, 2022 15:01:51.482608079 CEST
Sender Error Estimate: 16383 (0x3fff)
MBZ: 0 (0x00)
Sender TTL: 255
Conditions
TWAMP SLA configured in combination with PTP