# Hardware Traffic Duplication on Intel Adapters Using PF_RING | ntop

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

# Hardware Traffic Duplication on Intel Adapters Using PF\_RING

March 9, 20232 min read

Those of you who are familiar with kernel-bypass drivers like PF\_RING ZC know that it is not possible to run multiple applications on top of the same Network interface and capture the same traffic twice. This is the case of Intel and most FPGA adapters. In fact, since the application takes full control of the adapter and configures it to copy packets directly to the application’s memory in hardware, access to the device must be exclusive. This unless the adapter natively support multiple consumers: this is the case of [Mellanox/NVIDIA](https://www.ntop.org/introducing-pf_ring-zc-support-for-mellanox-adapters/) and [Fiberblaze/Silicom](https://www.ntop.org/guides/pf_ring/modules/fiberblaze.html) adapters.

Last autumn we have introduced the **iavf** ZC driver, which adds support for a new range of (virtual) adapters from Intel: i40e (X710/XL710) and ice (E810) SR-IOV Virtual Functions. As we announced in the latest PF\_RING [changelog](https://github.com/ntop/PF_RING/blob/dev/CHANGELOG.md), this new driver paves the way for new packet capture architectures as it enables traffic duplication on Intel!

You are probable wondering what [Virtual Functions](https://www.techtarget.com/searchnetworking/definition/virtual-network-functions-VNF) have to do with [traffic duplication](https://wiki.wireshark.org/DuplicatePackets). Well, SR-IOV on X710/XL710 adapters supports a working mode called *trust mode* which has been introduced to enable promiscuous capture on Virtual Functions, to allow multiple virtual interfaces to see all traffic hitting the physical interface. This means that it is now possible to **duplicate** (i.e. capture the packet once and resent it multiple times) and capture all traffic hitting a physical (Intel) interface from multiple Virtual Functions, in promiscuous mode, at high speed, using a ZC driver. And, in addition to this, it is possible to optionally filter traffic in hardware based on VLAN or MAC address.

[![](/images/2023/03/intel-vf-dup.webp)](https://www.ntop.org/images/2023/03/intel-vf-dup.webp)

A typical use case for traffic duplication is traffic analysis combined with traffic recording at high speed. In this case you would setup two virtual interfaces (Virtual Functions), each receiving a full copy of the traffic, and you would run [nProbe](https://www.ntop.org/products/netflow-probes/nprobe/) or [ntopng](https://www.ntop.org/products/traffic-analysis/ntopng/) on one of them for traffic analysis, and [n2disk](https://www.ntop.org/products/traffic-recording/n2disk/) on the other for traffic recording.

In order to configure the adapter to achieve this, you need to:

1\. Enable SR-IOV support

Change the kernel parameters in /etc/default/grub as below.

GRUB\_CMDLINE\_LINUX\_DEFAULT="iommu=1 msi=1 pci=assign-busses intel\_iommu=on"

Note: pci=assign-busses is required to fix failures reported in dmesg as below.

i40e 0000:02:00.0 enp2s0f0: SR-IOV enabled with 1 VFs
i40e 0000:02:00.0: can't enable 1 VFs (bus 03 out of range of \[bus 02\])
i40e 0000:02:00.0: Failed to enable PCI sriov: -12

Apply the changes and reboot.

update-grub && reboot

2\. Configure the iavf ZC driver as reported in the [guide](https://www.ntop.org/guides/pf_ring/get_started/packages_installation.html#), similar to any other PF\_RING ZC driver.

3\. Enable 2 Virtual Functions per interface.

echo '2' > /sys/bus/pci/devices/$(ethtool -i $IF | grep bus-info | cut -d ' ' -f2)/sriov\_numvfs

4\. Set the trust mode to enable promiscuous capture (and optionally filter traffic based on VLAN ID)

ip link set $IF vf $VF\_ID vlan $VLAN\_ID
ip link set dev $IF vf $VF\_ID trust on

Note: 3. and 4. can be automated by using a *pre* script as described in the [guide](https://www.ntop.org/guides/pf_ring/get_started/packages_installation.html#virtual-functions-configuration)

At this point you are ready to run two applications and capture the same traffic from both virtual interfaces using ZC without having to purchase a costly packet broker.

nprobe -i zc:eno0v0 \[...\]
n2disk -i zc:eno0v1 \[...\]

Enjoy!

## Keep reading

centoMay 18, 2026

### [Post-Quantum Cryptography (PQC) Analysis](https://www.ntop.org/post-quantum-cryptography-pqc-analysis/)

Modern digital security relies on public-key encryption (like RSA and ECC) to protect global data. The future arrival of a Cryptographically Relevant Quantum Computer (CRQC) will completely break these mathematical foundations. To…

ntopJul 11, 2025

### [New, Fast, Scalable ClickHouse Integration for High-Volume Networks](https://www.ntop.org/new-fast-scalable-clickhouse-integration-for-high-volume-networks/)

When it comes to monitoring very large networks and the flows’ cardinality reaches into the billions, the performance of historical data storage and query systems becomes a critical bottleneck. Network operators, analysts,…

ntopJun 30, 2025

### [Network Visibility and Observability: ntopng vs SNMP+](https://www.ntop.org/network-visibility-and-observability-ntopng-vs-snmp/)

Recently, we’ve encountered users with high monitoring requirements. Some users need to monitor 1,000 routers and want to know who are the top talkers or top protocols. Others have a network with…

## 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-traffic-duplication-on-intel-adapters-using-pf_ring/