# Building a 10 Gbit Traffic Generator using PF_RING and Ostinato | ntop

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

# Building a 10 Gbit Traffic Generator using PF\_RING and Ostinato

August 18, 20112 min read

Whoever has developed network applications, soon or later had to buy or rent a traffic generator. Years ago I have purchased my 1 Gbit IXIA 400T on ebay for 2500$, and I wanted to buy a 10 Gbit traffic generator when I started to develop DNA. Unfortunately I could not afford the price of those useful yet costly devices, and I have spent over 10K $ for a 10 Gbit FPGA-based NIC (manufactured by one of the leading companies, guess who, that on my PC can’t now keep up with the 10g PF\_RING DNA) able to generate synthetic packets after coding an application. I missed so much my IXIA traffic generator that after developing DNA I have said to myself: it’s time to create one.

PF\_RING (and in particular DNA) users know that PF\_RING comes with an utility named [pfsend](https://github.com/ntop/PF_RING) that is able to reproduce a pcap file at wire rate (e.g. 14.88 Mpps) using DNA. The tool is great but you need a pcap file to reproduce, so I needed a flexible traffic generator. I recently came across the [Ostinato](http://www.ostinato.org/) project aimed at creating an open-source traffic generator “inspired” to the IXIA user interface. The nice thing about ostinato is that is a client/server application, so you can run the server (named drone) onto your Linux box running PF\_RING DNA, and the GUI on your Mac or Windows box. In order to make things simple, I have enhanced the PF\_RING-libpcap and the DNA driver so that in order to use ostinato with DNA you just have to link the drone application with the PF\_RING-libpcap. In order to do that you just have to [download](http://code.google.com/p/ostinato/wiki/Downloads?tm=2) ostinato from source and edit the file ostinato/server/drone.pro changing the line “LIBS += -lpcap” into “LIBS += ~/PF\_RING/userland/libpcap/libpcap.a -lpfring #-lpcap” and then compile ostinato [from source](http://code.google.com/p/ostinato/wiki/BuildingFromSource).

Below you can see how ostinato looks when running on top of PF\_RING.

Like I have said, I limited the changes to libpcap, thus no patches to ostinato are necessary beside pointing it to the PF\_RING-libpcap library. The drawback is that on this configuration, ostinato can’t generate more than (on my PC) 6.6 Mpps, that is less than half of what pfsend on the same host can do. In order to increase the performance we need to put ostinato directly on top of PF\_RING creating a native PF\_RING port. This is something left to future activities. For those who need wire speed, can use ostinato to generate a pcap file with the traffic pattern they like, and transmit it using pfcount.

You now have a powerful yet inexpensive 10 Gbit traffic generator. No excuse now for not testing your apps at 10 Gbit!

Credits: many thanks to [Francesco Cocchia for having told me of Ostinato a couple of months ago.](mailto:francesco.cocchia@rcslab.it)

## 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/building-a-10-gbit-traffic-generator-using-pf_ring-and-ostinato/