Hack3rcon II 3-3 Jon Schipp Knowing What's Under Your Hood Implementing a Network Monitoring System

24 Oct 2011 · 28 min
27:50

In this talk Jon Schipp, a Unix administrator, walks through the design and implementation of a network monitoring system built on commodity hardware for small‑business environments. He begins by explaining why network monitoring is valuable—for troubleshooting, firewall rule validation, attack detection, and forensic record‑keeping. He then surveys inexpensive traffic‑capture methods (cheap hubs, SPAN/port mirroring, network taps, and IP forwarding) and discusses how to place sensors in the network. The presentation dives deep into the hardware and OS layers that affect capture performance: NIC selection, PCI/PCIe bus limits, DMA and NAPI, kernel buffering structures (FreeBSD mbufs, Linux skbuffs), and the Berkeley Packet Filter (BPF) versus Linux Socket Filter (LSF). Schipp explains the problems of interrupt storms and context‑switch overhead, and shows how device polling, NAPI, and zero‑copy mmap can mitigate them. He details practical tuning steps—raising BPF/rmem buffer sizes, increasing receive descriptor counts, and adjusting kernel parameters—to achieve near‑zero packet loss even at gigabit speeds. High‑performance capture frameworks such as pfRing (Linux) and netmap (FreeBSD) are introduced, along with shared‑memory and direct‑NIC access techniques. The talk includes benchmark results comparing FreeBSD and Linux, highlighting disk I/O as a common bottleneck, and demonstrates how different snap‑length settings affect loss rates. Finally, Schipp lists a suite of analysis tools (tcpdump, ngrep, snort, ntop, netsniff-ng, daemonlogger, etherape, iftop, iptraps, trafshow, TCPick, TCPstat, bmon, etc.), configuration tips (rc.conf, interface bonding, multicast handling), and resources for further reading, including Richard Bejtlich’s The Tao of Network Monitoring and a collection of academic papers.

Chapters

More from Jon

youtube.com

Wrestling with Cybersecurity

4mo ago
youtube.com

What No One Knows the Podcast / Vodcast featuring The Tampa Bay Wave and Jon Schipp

6mo ago
youtube.com

Meeting the Exposure Management Challenge: Key Use Cases for Success | @OfficialRapid7 #SolutionSpotlight

1y ago
youtu.be

Spot Security Control Gaps and Non-Compliant Resources Across Your Attack Surface

2y ago
youtu.be

Maintain a Single Source of Truth for your Digital Estate

2y ago
youtu.be

Identify Accounts Without MFA Enabled Across Your Organization

2y ago
youtu.be

Understand Potential Blast Radius and Attackers' Cloud Network Spot Avenues

2y ago
youtu.be

Measure Security Data Accuracy and Quality with Rapid7 Exposure Command

2y ago
youtube.com

The Netsniff Ng Toolkit Jon Schipp DerbyCon 3

4y ago
youtube.com

OpenNSM (Scaling OSSEC)

10y ago
youtube.com

OpenNSM (Flow Indexer)

10y ago
See all content