Improvement of libpcap for lossless packet capturing in Linux using PF_RING kernel patch | Linux Today

Improvement of libpcap for lossless packet capturing in Linux using PF_RING kernel patch

Written By
Web Webster
Web Webster
Oct 8, 2009

“These applications can be network analyzers (also known as
network monitors) or an intrusion prevention/detection system. Such
common open source applications are tcpdump [1], snort [2],
wireshark [3] (previously known as ethereal) , ntop [4] etc.

“As the packet propagates from Network Interface Controller
(NIC) to the kernel and then to the userspace application, it
creates some overhead. Under heavy traffic conditions the
percentage of the captured packets over the total number can
decrease.

“The size of the frame does play a significant factor, as the
smaller the packet size the higher the negative impact in the
packet capture percentage. The reason for this is that for same
throughput the amount of smaller packets is greater then for bigger
packet sizes, having as result more need for processing power.

“In this article we will describe how one can improve lossless
network packet capturing with libpcap by using the PF_RING kernel
patch. Libpcap[1] is one of the more vastly open source library for
packet capturing and uses by default PF_PACKET protocol in order to
transfer the packets from the driver to the userspace.”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.