# Using Hardware Timestamps with PF_RING | ntop

[Blog](https://www.ntop.org/blog/)[PF\_RING](https://www.ntop.org/category/pf_ring/)

# Using Hardware Timestamps with PF\_RING

February 11, 20112 min read

Up to some years ago, hardware timestamps were available only on costly FPGA-based NICs. Slowly, NIC manufactures started to consider hw timestamps as an important feature, and they started to introduce them in new cards. As of today Silicom [PE2Gi80](https://web.archive.org/web/20110611092644/http://www.silicom-usa.com:80/default.asp?contentID=2458), Intel 1 Gbit Ethernet Server Adapter [i340](http://www.intel.com/Products/Server/Adapters/esa-i340/esa-i340-overview.htm) (1 Gbit) and Neterion [X3110/X3120](https://web.archive.org/web/20240527164746/https://neterion.com/products/x3100.html) (10 Gbit) offer off-the-shelf hardware timestamps. These cards do not feature a GPS connector, but support [IEEE 1588](http://www.nist.gov/el/isd/ieee/ieee1588.cfm) for clock synchronization. The accuracy of the hw timestamps of these cards ranges from 3 to 7 ns.

PF\_RING has been enhanced to support hw timestamps, whatever is their source. PF\_RING 4.6.1 introduced hw timestamp support in both the PF\_RING kernel module, applications (e.g. pfcount), and even libpcap. The user-space pfring library via ioctl()’s call with SIOCSHWTSTAMP, informs the NIC that received packets must be timestamped. The new PF\_RING module does the magic by exploiting and passing to userland all the hw timestamps present in packets. Using them is pretty simple

-   Intel 1Gbit
    -   cd PF\_RING
    -   insmod ./drivers/intel/igb/igb-2.4.12/src/igb.ko
-   Neterion X3110/X3210
    -   cd PF\_RING
    -   insmod ./drivers/neterion/vxge.ko pf\_ring\_en=1 lro=0 func\_mode=0

Supposing to access you card as ethX, you can access hw timestamps using pfcount.

Example:  
`pfcount -i ethX 00:07:14.230020938 [00:1B:ED:26:A9:4F -> 00:16:9C:6E:FD:80][eth_type=0x0800] [77.95.141.6:1637 -> 62.149.128.203:25] [tos=0][tcp_seq_num=2571580375][caplen=128][len=1514][parsed_header_len=0][eth_offset=0][l3_offset=14][l4_offset=34][payload_offset=54]`

generated packet with ns timestamp accuracy.

The libpcap library present under PF\_RING/userland and it companion product tcpdump, demonstrate hw timestamps

root@ubuntu:/home/deri/PF\_RING/userland/tcpdump-4.1.1# ./tcpdump -i eth0 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 8192 bytes 23:49:37.155010242 IP 10.211.55.10.ssh > 10.211.55.2.63850: Flags \[P.\], seq 3954409477:3954409669, ack 1206887258, win 239, options \[nop,nop,TS val 34171550 ecr 663605968\], length 192 23:49:37.155272286 IP 10.211.55.2.63850 > 10.211.55.10.ssh: Flags \[.\], ack 192, win 65535, options \[nop,nop,TS val 663605974 ecr 34171550\], length 0 23:49:37.202867182 ARP, Request who-has 10.211.55.1 tell 10.211.55.10, length 28 Applications based on hw timestamps can be manyfold. You can use it to measure network delay or reorder packets hitting different adapter ports. The author would like to than [Silicom](http://www.silicom-usa.com), [Exar](http://www.exar.com), and [Intel](http://www.intel.com) for their support during this project.

## Keep reading

centoJan 25, 2026

### [nProbe Cento at Scale: Flow Offload Acceleration on Napatech](https://www.ntop.org/nprobe-cento-at-scale-flow-offload-acceleration-on-napatech/)

High-speed networks continue to push the limits of software-based monitoring and security applications. As link speeds grow and traffic patterns become more complex, efficiently analyzing packets while maintaining per-flow state, for updating…

AnnounceApr 28, 2025

### [Released PF\_RING 9.0.0: Fully Fledged Hardware Flow Tracking](https://www.ntop.org/released-pf_ring-9-0-0-fully-fledged-hardware-flow-tracking/)

This is to announce a new PF\_RING release 9.0.0! This release brings significant improvements for a deeper flow tracking integrations, making PF\_RING even more powerful for building high-performance flow processing networking applications…

PF\_RINGAug 6, 2024

### [Released PF\_RING 8.8.0: Flow Table Offload and nVidia BlueField Support](https://www.ntop.org/released-pf_ring-8-8-flow-table-offload-and-nvidia-bluefield-support/)

This is to announce a new PF\_RING release 8.8.0! This release adds generic support for flow table offload, which is currently supported on Napatech adapters with Flow Manager enabled. This new technology…

## 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/hardware-timestamps-with-pf_ring/