# Exploiting Arista MetaWatch with n2disk and ntopng: HighRes Timestamping and Analytics | ntop

> Precise packet timestamping is a key feature for network traffic analysis and troubleshooting. Traditionally many people use FPGA-based NICs with precise time

[Blog](https://www.ntop.org/blog/)[n2disk](https://www.ntop.org/category/n2disk/)[ntop](https://www.ntop.org/category/ntop/)

# Exploiting Arista MetaWatch with n2disk and ntopng: HighRes Timestamping and Analytics

December 2, 20202 min read

[Precise packet timestamping](https://en.wikipedia.org/wiki/Low_latency_(capital_markets)) is a key feature for network traffic analysis and troubleshooting. Traditionally many people use FPGA-based NICs with precise timestamping (e.g. [Napatech](http://napatech.com), [Silicom](http://silicom-usa.com)) even though a good precision can be obtained with [PTP](https://en.wikipedia.org/wiki/Precision_Time_Protocol)\-based NICs such as many Intel network adapters. A better alternative to this practice is to avoid ad all using specialised adapters and rely on existing network devices to timestamp packets.

[Arista](https://www.arista.com/) packet brokers with [MetaWatch](https://www.arista.com/en/products/metawatch-network-application)  can be configured to add an extra trailer (Metamako) with metadata to every captured packet. In fact [Arista 7150 Series](https://www.arista.com/en/products/7150-series) devices are able to add packet trailers and generate keyframes to provide high-resolution timestamping, allowing for advanced network analysis and precise latency measurements. Arista MetaWatch devices are also able to include device information such as the Device ID and the incoming Port ID for captured packets and thus identify packet source that is then propagated to packet consumers. Below you can see an example of the packet trailer containing this information.

![](/images/2020/12/metamako_trailer.webp)

[**n2disk**](https://www.ntop.org/products/traffic-recording/n2disk/), ntop’s software tool for packet recording, is able to dump traffic and build an index on the fly, for enabling quick traffic retrieval by specifying the time interval and a BPF-like criteria. In addition to the 5-tuple, n2disk is able to index extended metadata, including those provided by MetaWatch devices and use the timestamp reported in the packet trailer. n2disk stores the ***device <ID>*** and ***interface <ID>*** in the packet index and it allows to use then when running traffic extractions.  A typical use case is the ability to retrieve traffic that went through a specific port and at a specific time in our network, this in addition to traditional IP address, port and layer-7 based filters.

This can be enabled in n2disk by adding *–extended-index 4* and *–hw-timestamp metawatch* to the configuration (for further information please read the [documentation](https://www.ntop.org/guides/n2disk/filters.html)). Example:

\--interface=eth1
--dump-directory=/storage
--timeline-dir=/storage
--disk-limit=90%
--index
--extended-index=4
--hw-timestamp=metawatch
--index-on-compressor-threads
--reader-cpu-affinity=0
--compressor-cpu-affinity=1
--writer-cpu-affinity=2

![](/images/2020/12/Screen-Shot-2020-12-02-at-10.45.46.webp)

n2disk is also able to [export flow metadata](https://www.ntop.org/guides/n2disk/using_with_ntopng.html#flows-export) to **[ntopng](https://www.ntop.org/products/traffic-analysis/ntopng/)**, acting as a flow probe, similar to [what nProbe or nProbe Cento do](https://www.ntop.org/guides/ntopng/using_with_other_tools/nprobe.html). In this configuration, when support for MetaWatch devices is enabled with *–hw-timestamp metawatch*, n2disk also exports device and port information by populating *%INPUT\_SNMP %OUTPUT\_SNMP %OBSERVATION\_POINT\_ID* Information Elements. Example n2disk configuration file:

\--interface=eth1
--dump-directory=/storage
--timeline-dir=/storage
--disk-limit=90%
--index
--extended-index=4
--hw-timestamp=metawatch
--index-on-compressor-threads
--reader-cpu-affinity=0
--compressor-cpu-affinity=1
--writer-cpu-affinity=2
--zmq=tcp://127.0.0.1:5556
--zmq-export-flows

ntopng configuration file example:

\-i=tcp://\*:5556c

In this configuration, device and ingress/egress port information are collected by ntopng and displayer in the flow details page as depicted below as well hardware timestamps are used in dumped pcaps.

![](/images/2020/12/ntopng_matawatch_device_id-e1606902940635.webp)

In summary, thanks to Metamako support in ntop tools it is possible to combine precise timestamping as well packet-to-disk with real-time monitoring capabilities. This is an improvement with respect to hardware-based timestamping NICs that provide just timestamping and offer no device visibility and match on the actual network topology, very useful feature to locate and troubleshoot network issues.

Enjoy!

## Keep reading

nDPINov 7, 2026

### [Detecting CVE-2026-98432 using nDPI/ntopng](https://www.ntop.org/detecting-cve-2026-98432-using-ndpi-ntopng/)

CVE-2026-98432 is a critical, 9.8-severity use-after-free (UAF) vulnerability in the Linux kernel’s IPv4 TCP networking stack. It allows an unauthenticated remote attacker to potentially cause system crashes, memory corruption, or execute arbitrary commands with root privileges. From a network stand

[![](/images/2026/09/Screenshot-2026-09-09-151028-1.webp)](https://www.ntop.org/october-20th-join-us-for-the-ntopng-7-0-webinar/)

AnnounceOct 5, 2026

### [October 20th: Join us for the ntopng 7.0 Webinar](https://www.ntop.org/october-20th-join-us-for-the-ntopng-7-0-webinar/)

Is your network monitoring keeping pace with AI, larger infrastructures, and the growing need for real observability? We’re excited to introduce ntopng 7.0, alongside new releases of the rest of the ntop…

[![](/images/2026/09/Screenshot-2026-09-09-163410-1.webp)](https://www.ntop.org/ntopng-user-interface-introducing-the-new-navigation-bar/)

ntopngSep 21, 2026

### [ntopng User Interface: Introducing the New Navigation Bar](https://www.ntop.org/ntopng-user-interface-introducing-the-new-navigation-bar/)

In our continuous effort to improve user experience and make network monitoring more intuitive, we have completely redesigned the ntopng Navigation Bar. As our feature set expands—with crucial additions like the nAnalyst…

## Try it on your own network

Download the free Community edition and see your first flows in five minutes.

[Download ntopng free](https://www.ntop.org/support/documentation/software-installation/)[Talk to an engineer](https://www.ntop.org/support/need-help/contacts/)
Source: https://www.ntop.org/arista-metawatch-n2disk-ntopng/