# PF_RING FT: Flow Table & Packet Processing Library | ntop

> PF_RING FT is a flow-aware packet processing library that adds flow tracking and L7 classification to high-speed network applications.

[Home](https://www.ntop.org/)[Products](https://www.ntop.org/products/)[Packet Capture](https://www.ntop.org/products/packet-capture/)

![PF\_RING FT logo](/images/2025/06/pf_ring-ft-icon.webp)

# PF\_RING FT

Fast, Assisted Flow Processing and L7 Classification

[Get a license](https://shop.ntop.org)

![Pf ring ft hooks 768x571 1](/images/2025/06/pf_ring-ft-hooks-768x571-1.webp)

nDPI

Layer-7 built in

Shop

licenses and pricing in the ntop shop

OverviewUse casesAlternativesTrade-offsFeaturesSpecificationsEditionsDocumentationFAQKeep exploring

## Who should choose PF\_RING FT

**PF\_RING FT** is a flow table library for developers who build flow-based monitoring or security applications. Choose it when you want flow records, nDPI classification and Layer-7 filtering from a clean API instead of writing packet decoding and flow handling yourself.

-   You build a high-speed NetFlow-like probe.
-   You need Layer-7 classification, categories, metadata and flow risks out of the box.
-   You want to shunt elephant flows to relieve Suricata, Snort or Bro.

## Ideal use case for PF\_RING FT

Environment

x86 64-bit systems, multi-core and NUMA, with libpcap, PF\_RING, PF\_RING ZC or DPDK capture.

Team

developers of monitoring and security products.

Technical requirements

C API, low CPU and memory footprint, flows exportable in any format.

Problem solved

programmable flow aging, DPI and filtering without handling nDPI directly.

## Deployment scenarios

-   ### Develop a High-Speed NetFlow Probe
    
    Designing and implementing a flow processing application on top of PF\_RING FT is quite straightforward as it provides a clean API that can be used to do complex things in a few lines of code. The following code snippet shows how it is easy to capture traffic and export flow informations with PF\_RING FT. For a full code example have a look at the [demo applications](https://github.com/ntop/PF_RING/blob/dev/userland/examples_ft/) available in PF\_RING. For more information please refer to the [guide](https://www.ntop.org/guides/pf_ring/ft.html) and [API](https://www.ntop.org/guides/pf_ring/api/pfring_ft.html) documentation.
    
    ![PF\_RING FT API](/images/2025/06/pfring-ft-api.webp)
    
-   ### Layer-7 Traffic Classification with nDPI
    
    PF\_RING FT is natively integrated with [nDPI](https://www.ntop.org/products/deep-packet-inspection/ndpi/) for providing L7 protocol informations out of the box. The application itself does not need to deal with the nDPI library directly as everything happens behind the scenes, getting the L7 protocol is just as easy as enabling L7 detection through the API and reading the L7 protocol from the flow metadata. In addition to protocol detection, PF\_RING FT also categorizes the traffic leveraging the nDPI categories, extracts metadata, detects flow risks.
    
    ![PF\_RING FT nDPI](/images/2025/06/pf_ring-ft-ndpi-768x571-1.webp)
    
-   ### Application Filtering and Shunting
    
    PF\_RING FT features a L7 filtering engine that can be used by inline applications for filtering flows based on the application protocol. In addition to the built-in filtering engine, the application can mark flows for filtering or shunting them based on custom policies.
    
    ![PF\_RING FT inline](/images/2025/06/pf_ring-ft-inline-768x573-1.webp)
    
-   ### IDS/IPS Acceleration
    
    The PF\_RING FT Layer-7 filtering engine can also be used for accelerating CPU-bound applications, such as IDS/IPSs including Suricata, Bro and Snort, shunting flows based on the application protocol. Discarding elephant flows is becoming a common yet effective practice for reducing the amount of traffic an IDS/IPS need to inspect (typically multimedia traffic), dramatically reducing packet loss and improving the system performance.  
    Suricata has native support (bypass) for shunting elephant flows using eBPF, this means that the application is injecting filtering rules (5-tuples) in kernel space as soon as an elephant flow is detected. This approach has come limitations: it requires a ruleset in Suricata able to detect all multimedia protocols, packet parsing is not flexible as eBPF programs cannot loop (it does not work with encapsulations, including vlan and QinQ), it cannot keep flow state (making it complicated to handle flows expiration).  
    Leveraging on PF\_RING FT, a PF\_RING-based or Libpcap-based application can take advantage of L7 shunting without changing a single line of code. Since PF\_RING FT is based on nDPI for protocols detection, filtering multimedia traffic mens just listing the protocol names in a configuration file. More information for accelerating Suricata or other IDSs can be found in the User’s Guide.
    

## PF\_RING FT alternatives, compared

Same criteria for each option: role, when to choose it, limits and cost.

-   ### nProbe and nProbe Cento
    
    -   **Role:** Ready-made flow probes.
    -   **Choose it when:** You want a finished probe, not a library.
    -   **Limits:** Fixed feature set.
    -   **Cost:** See the [ntop shop](https://shop.ntop.org) for pricing.
    
-   ### PF\_RING ZC
    
    -   **Role:** Packet capture and distribution.
    -   **Choose it when:** You need packets, not flows.
    -   **Limits:** No flow table or DPI.
    -   **Cost:** See the [ntop shop](https://shop.ntop.org) for pricing.
    

## When PF\_RING FT is not the right choice

-   It is a library: there is no interface. You must write the application.
-   x86 64-bit only.
-   If a ready probe fits, nProbe or Cento is faster to deploy.

## Key Features

-   High-performance generation of flow records (NetFlow/IPFIX-like) directly from live traffic
-   Programmable flow processing with configurable flow aging
-   Built-in Deep Packet Inspection (DPI) via nDPI to classify protocols and applications
-   Flexible export format, flows can be exported in any format
-   Efficient use of multi-core systems with NUMA awareness
-   Easy integration with zero-copy packet processing frameworks like PF\_RING ZC
-   Low resource footprint, designed for high-throughput with minimal CPU and memory usage

Try PF\_RING FT on your own traffic.

[Get a license](https://shop.ntop.org)

## Tech Specs

### Platforms

-   Linux

### UI/API

-   C API compatible with PF\_RING, PF\_RING ZC, libpcap, DPDK

### Requirements

x86 64-bit CPU (Intel and AMD)

### Protocols

-   Ethernet
-   IPv4/IPv6
-   TCP/UDP/ICMP
-   GTP/GRE/MPLS/VXLAN/PPP
-   450+ Layer-7 application protocols supported by nDPI

## Choose Your Model

PF\_RING FT library is part of PF\_RING. Download it from GitHub.

Get a license to unlock it.

See the [ntop shop](https://shop.ntop.org) for pricing.

-   Compatible with PF\_RING/libpcap/DPDK
-   Network traffic classification
-   DPI support with nDPI
-   Inline support with filtering and shunting

-   Up to 100 Gbit

[Buy](https://shop.ntop.org)

[GitHub](http://github.com/ntop/pf_ring/)

## Documentation

-   [**Programming API**](https://www.ntop.org/guides/pf_ring/api/)
-   [**Code Examples**](https://github.com/ntop/PF_RING/tree/dev/userland/examples_ft)

## Frequently asked questions

Develop a High-Speed NetFlow Probe

Designing and implementing a flow processing application on top of PF\_RING FT is quite straightforward as it provides a clean API that can be used to do complex things in a few lines of code. The following code snippet shows how it is easy to capture traffic and export flow informations with PF\_RING FT. For a full code example have a look at the [demo applications](https://github.com/ntop/PF_RING/blob/dev/userland/examples_ft/) available in PF\_RING. For more information please refer to the [guide](https://www.ntop.org/guides/pf_ring/ft.html) and [API](https://www.ntop.org/guides/pf_ring/api/pfring_ft.html) documentation.

![PF\_RING FT API](/images/2025/06/pfring-ft-api.webp)

Layer-7 Traffic Classification with nDPI

PF\_RING FT is natively integrated with [nDPI](https://www.ntop.org/products/deep-packet-inspection/ndpi/) for providing L7 protocol informations out of the box. The application itself does not need to deal with the nDPI library directly as everything happens behind the scenes, getting the L7 protocol is just as easy as enabling L7 detection through the API and reading the L7 protocol from the flow metadata. In addition to protocol detection, PF\_RING FT also categorizes the traffic leveraging the nDPI categories, extracts metadata, detects flow risks.

![PF\_RING FT nDPI](/images/2025/06/pf_ring-ft-ndpi-768x571-1.webp)

Application Filtering and Shunting

PF\_RING FT features a L7 filtering engine that can be used by inline applications for filtering flows based on the application protocol. In addition to the built-in filtering engine, the application can mark flows for filtering or shunting them based on custom policies.

![PF\_RING FT inline](/images/2025/06/pf_ring-ft-inline-768x573-1.webp)

IDS/IPS Acceleration

The PF\_RING FT Layer-7 filtering engine can also be used for accelerating CPU-bound applications, such as IDS/IPSs including Suricata, Bro and Snort, shunting flows based on the application protocol. Discarding elephant flows is becoming a common yet effective practice for reducing the amount of traffic an IDS/IPS need to inspect (typically multimedia traffic), dramatically reducing packet loss and improving the system performance.  
Suricata has native support (bypass) for shunting elephant flows using eBPF, this means that the application is injecting filtering rules (5-tuples) in kernel space as soon as an elephant flow is detected. This approach has come limitations: it requires a ruleset in Suricata able to detect all multimedia protocols, packet parsing is not flexible as eBPF programs cannot loop (it does not work with encapsulations, including vlan and QinQ), it cannot keep flow state (making it complicated to handle flows expiration).  
Leveraging on PF\_RING FT, a PF\_RING-based or Libpcap-based application can take advantage of L7 shunting without changing a single line of code. Since PF\_RING FT is based on nDPI for protocols detection, filtering multimedia traffic mens just listing the protocol names in a configuration file. More information for accelerating Suricata or other IDSs can be found in the User’s Guide.

nProbe and nProbe Cento

-   **Role:** Ready-made flow probes.
-   **Choose it when:** You want a finished probe, not a library.
-   **Limits:** Fixed feature set.
-   **Cost:** See the [ntop shop](https://shop.ntop.org) for pricing.

PF\_RING ZC

-   **Role:** Packet capture and distribution.
-   **Choose it when:** You need packets, not flows.
-   **Limits:** No flow table or DPI.
-   **Cost:** See the [ntop shop](https://shop.ntop.org) for pricing.

## Keep exploring

### [Pricing and editions](https://www.ntop.org/pricing/)

Compare editions and ways to buy.

### [Solutions](https://www.ntop.org/solutions/)

By use case and industry.

### [User guide](https://www.ntop.org/support/documentation/users-guides/)

Installation and configuration.

## Ready to see PF\_RING FT on your network?

Download the free Community edition, compare editions and buy in the shop, or talk to the ntop team about your requirements.

[Download free](https://www.ntop.org/support/documentation/software-installation/)[Compare editions](https://www.ntop.org/pricing/)[Talk to us](https://www.ntop.org/support/need-help/contacts/)
Source: https://www.ntop.org/products/packet-capture/pf_ring-ft/