The Arista 7150S enables highly accurate timestamps (3ns granularity, 10ns accuracy) to be applied to all traffic flowing through the switch.
In this post we are presenting how you can quickly display hardware timestamps imposed by the Arista 7150S platform. This method does not need any special software to convert the frames. You simply need to run a live capture with Wireshark, or load a PCAP file.
If you need more details on hardware timstamping on the Arista 7150S, then please refer to this article:
Here is an example of the timestamps being displayed in hex as a column in Wireshark:
Setting up Wireshark
To enable the display of timestamp in a Wireshark column, follow the instructions below:
- Right-click the column header and click ‘Column Preferences’
- Click ‘+ Add’
- For Field Type, choose ‘Custom’
- Enter in Field Name, ‘vlan.trailer’
- Give the column a title, i.e. ‘Timestamp’
- You will now see the Timestamp column to the far right of the pane.
For more convenient timestamp consumption, some commercial software such as Corvil, TS Associates, and Packet2Disk provide the ability to decode the timestamps in hardware on the fly, at line rate.
If you have much lower performance requirements, or if you don’t need to decode timestamps on the fly but could be satisfied with a post-processing mechanism, then you could use a script to resolve the hardware timestamps into a high precision PCAP timestamp.
Such solution employs a script, provided by Arista. For more details regarding this please review this article:
Classical libpcap format only supports microsecond precision, therefore the decoding of the hardware timestamp was losing some precision in the decoding process. The recent version uses an enhanced timestamp format which has nanosecond granularity. This format is only available in relatively recent versions of Wireshark (e.g. 1.10.5+), which allows the ability to see the PCAP timestamps in nanoseconds.
Once a pcap file has been recorded with high precision pcap timestamps, it can be viewed in Wireshark, as per the below capture