Twelve years of ntop August 27, 2010 No Comments
The Internet is pretty volatile. As new information become available, the old one disappears. Sometimes we have to look back and see what’s happened in the past years. Shall you be interested in seeing how ntop changed in the past twelve years, you can have a look at this URL, that has several snapshots of the ntop web site.
ntop on Ubuntu July 30, 2010 Comments Off
The ubuntu community has published a post that explains how to compile/use ntop on Ubuntu. This is the URL of the post.
Using Genetic Algorithms for Network Intrusion Detection and Integration into nProbe July 21, 2010 Comments Off
Conference: OSCON 2010
Presentation Link: Ignite Track
Presented by: Brian Lavender
SNORT is popular Network Intrusion Detection System (NIDS) tool that currently uses a custom rule based system to identify attacks. This presentation emphasizes on writing the algorithm to write generate the rules through GA and the integration of them into nProbe, a similar network monitoring tool written by Luca Deri with a plug-in architecture.
Genetic Algorithms are dependent upon identifying attributes to describe a problem and evolving a desired population. In this case, the problem is an attack through the network and identifying the attack through connection property attributes. Genetic Algorithms depends upon training data. DARPA datasets provide training data, in categorized format (attack vs. normal) along with a corresponding raw network recorded format called tcpdump. nProbe has a plug-in architecture allowing for customization.
This presentation explains original code in C to evolve rules. It uses the same chromosome attributes used by Gong. The development verifies and contrasts against the research performed by Gong. It also presents the code for integration into nProbe.
Released ntop 4.0 July 19, 2010 Comments Off
After a few years of work, this is to announce the availability of ntop 4.0. Major changes include:
- Partially rewritten ntop processing engine to address reliability and performance
- Several bugs and stability issues fixed
- Added better support for IPFIX and NetFlow v9, as well as ntop PEN (Private Enterprise Number)
- Added support for Cisco ASA firewalls
- Added ntop engine scriptability via the python programming language
- Added RRDalarm plugin for generating alerts based on thresholds
- Improved google maps integration
- Enhanced sFlow support
ntop is available for both Unix and Windows platforms. The source code can be downloaded from here. Prebuilt Win32 binaries are available here. Many thanks to all code contributors, testers and all those who spread the word.
Creating 3D Maps using ntop Comments Off
Since some time ntop support geolocation. Now courtesy of Ronald W. Henderson it can also display mercator maps and natively integrate with tools such as Google Earth.

These ntop extensions are part of the NST (Network Security Toolkit) toolkit. For more information please visit the NST Wiki page.
Modern Packet Capture and Analysis: Multi-Core, Multi-Gigabit, and Beyond June 29, 2010 Comments Off
Sometimes people ask me a tutorial about PF_RING. Last year I have given a tutorial about it at the IM 2009 conference. I think that everyone interested in using PF_RING for going beyond packet capture acceleration should read this set of slides I used for the tutorial. Today the cost of packet capture is limited with respect to packet analysis. For this reason you should use PF_RING as a framework for creating simple yet powerful traffic monitoring applications.
Interview with Luca Deri June 21, 2010 Comments Off
In this video Luca presents the ntop project and gives an outlook of future activities. It was presented during the OSS conference that took place last May in Bolzano.
Finally this short interview gives an idea of how ntop can benefit when integrated with commercial applications and vendors such as Würth-Phoenix.
nProbe with FastBit database: an innovative flows storage solution June 19, 2010 Comments Off
nProbe, acronym for NetFlow probe, is an open-source probe that supports both NetFlow and sFlow collection. It has been designed to keep up with Gigabit speeds on commodity hardware and it can be used for capturing packets and analyzing networks at full speed with no (or very moderate) packet loss using PF_RING.
Each captured packet is analyzed, associated to a flow record, and periodically, the expired flows are emitted and exported to the specified collectors. nProbe is fully inter-operable with commercial collectors and open source tools such as ntop.
The new version of nProbe (that will be released soon) has been extended and now contains a new storage system designed primarily to answer queries efficiently.
The new storage system
When nProbe is used as probe and collector, it supports flow collection and storage, both on raw files and relational databases such as MySQL and SQLite.
Support of relational databases has always been controversial as nProbe users appreciated the ability to query flow records using SQL, but at the same time flow dump to database could lead to flow records loss due to the database-processing overhead. On the contrary, the speed advantage of dumping flow records in raw format is paid at each search operation in terms of amount of data to read. Furthermore, the query language that can be used is limited when compared to SQL facilities.
In order to overcome the limitations of existing flow-management systems, an extension of nProbe has been developed. The new version of nProbe allows flow records to be stored on disk, using an innovative column-oriented database with an efficient compressed bitmap indexing technology named FastBit.
Conceptually FastBit is a database that stores its content by column, rather than by row (this structure is known as “vertical organization”). Data is represented as tables with rows and columns. A large table may be partitioned into many data partitions and each of them is stored on a distinct directory, with each column stored as a separated file in raw binary form. Users can configure partition duration (in minutes) at runtime and when a partition reaches its maximum duration, a new one is automatically created.
Furthermore, for tasks that demand the fastest possible query processing speed, bitmap indexes perform extremely well. These because the intersection between the search results on each variable is a simple AND operation over the resulting bitmaps. The consequence of this major speed improvement is that it is now possible to query data in real-time.
Additional details
The new extended nProbe creates FastBit partitions depending on the flow templates being configured (in probe mode) or read from incoming flows (in collector mode). Below there is a simple example where nProbe is configured to dump flow records using a temporary directory with a rotation period of 10 minutes:
nprobe -n none -i eth0 --fastbit /tmp/fastbit/ --fastbit-rotation 10 --fastbit-template "%IPV4_SRC_ADDR %IPV4_DST_ADDR %IN_PKTS %IN_BYTES %OUT_PKTS %OUT_BYTES %FIRST_SWITCHED %LAST_SWITCHED %L4_SRC_PORT %L4_DST_PORT %TCP_FLAGS %PROTOCOL"
Flow records can be dumped at full speed with no index-build overhead. Thus, not considering flow receive/decoding overhead, it is possible to save on disk more than one million flow records/sec on a standard Serial ATA (SATA) disk.
Additional advantages of this technology are listed below:
- Ability to save flow records on disk with minimal overhead allowing no-loss on-the-fly flow-to-disk storage, as it happens with tools based on raw files.
- Compact data storage to limit disk usage as this enables users to store months of flow records on a cheap hard-disk with no need to use expensive storage systems.
- Simple data archive structure in order to move ancient data on off-line storage systems, without having to use complex data partitioning solutions.
- On tens of millions of records: sub-second search time when performing cardinality searches (e.g. count the number or records that satisfy a certain criteria) and sub-minute search time when extracting records matching a certain criteria (e.g. top X hosts and their total traffic on TCP port Y).
If you want to know more about this topic or view the results of comparative tests that were performed, you can read the research paper named “Collection and Exploration of Large Data Monitoring Sets Using Bitmap Databases” (Proceedings of TMA 2010, Zurich – April 2010).
To know the new parameters of next release of nProbe allowing to store flow records in the FastBit database and to see some examples of use, you can read this manual.
If you are interested in nProbe, follow this link to know how to get it!
Installation Guide For PF_RING June 15, 2010 Comments Off
Below you can find an installation guide for PF_RING written by Gunjan Bansal.
The original blog entry can be found at this URL.
————-
Hi,
This is my first guide so please bear with me for any disrespencies.
These steps were tested on Intel Core 2 Duo machine with 4 GB Ram and Intel(R) PRO/1000 Network Card , with Ubuntu 9.10 installed.This guide explains the installation procedure for Version 4.3.1
PF_RING implementation by Luca Deri is a great method for efficient Packet Capture on Commodity Hardware.It can be found on http://www.ntop.org/PF_RING.html
I made a clean install,no other packages were installed other than mentioned.
- Uninstall libpcap and other dependent applications/library using syanptic or apt-get
- Install subversion(For fetching latest source codes),flex and bison(Required to recompile pf_ring aware pcap),ethtool(if not preinstalled,required for some basic Nic info of your computer)
- Use Subversion to fetch source codes
svn co https://svn.ntop.org/svn/ntop/trunk/PF_RING/ PF_RING - Check your current network card/driver using ethtool
ethtool -i eth0 #change eth0 to your ethernet card Sample
driver: e1000e
version: 1.0.2-k2
firmware-version: 0.4-3
bus-info: 0000:00:19.0 use man ethtool for more information on how to use ethtool As of version 4.3.1 PF_RING can be fully exploited only on the PF_RING aware device drivers.The modified device drivers for some of the popular network cards can be found in PF_RING/drivers .
These are modified version of the drivers supplied from respective companies.(Might be a bit older sometimes but will work) - Unload the ethernet card driver (this is shown in the first line of output of above command
sudo rmmod e1000e - Change current working directory to kernel cd PF_RING/kernel
- Make the source codes
make
Here i had observed that many a times people(even I on first attempt)use sudo make or sudo -s , make . The former is not a correct method and will give you errors such as bounds.c missing , etc.
Latter is also wrong but will do the job . The reason for such a thing is better explained by the difference in the command “sudo” and “sudo -s” . This can be found at http://ubuntuforums.org/showthread.php?t=983645 , or searching for “difference between sudo and sudo -s” on our favorite google - Now install the newly build source
sudo make install - Change the working directory to PF_RING/userland/lib cd ../userland/lib
- Again build the source codes make
- Install the library (This include pfring.h) sudo make install
- One bizarre thing that I observed is that the make install copies pfring.h to /usr/local/include but leaves the other dependent files these are :-
- pfring_e1000e_dna.c
- pfring_e1000e_dna.h
- Although the function in these files are not required in much of the program, they are include in pfring.h and i don’t want to mess up with that.So we copy this to /usr/local/include . Please check this in later versions .
cp pfring_e1000e_dna.c /usr/local/include
cp pfring_e1000e_dna.h /usr/local/include - Now we have to compile PF_RING aware pcap library . Change the working directory to userland/libpcap-1.0.0-ring cd ../libpcap-1.0.0-ring/
- Configure ./configure
- Build the sources make
- Install pf_ring aware libpcap sudo make install
- Now we need to install the device driver(pf_ring aware).Change the working directory to drivers///src
In my case it is “drivers/intel/e1000e-1.0.15/src“ cd ../../drivers/intel/e1000e-1.0.15/src - Build the source make
- Install the driver sudo make install
- Now we need to activate PF_RING if its not already activated . You can use lsmod to check if pf_ring is started or not.Change the working diectory to /lib/modules//kernel/net/pf_ring .
cd /lib/modules/2.6.31-14-generic/kernel/net/pf_ring
Use uname -r to get the kernel version - Enable PF_RING(if already enabled you can disable it using sudo rmmod pf_ring)
sudo insmod pf_ring.ko transparent_mode=1 More on transparent mode can be found at http://www.ntop.org/blog/?p=56 - Now enable to enable your driver go to /lib/modules//kernel/drivers/net/e100e cd /lib/modules/2.6.31-14-generic/kernel/drivers/net/e1000e
- Enable the driver sudo insmod e1000e.ko
- Now you can start working on your PF_RING application.You will have to recompile many applications such as tcpdump(modified included),network manager etc. Google for doing so
ntop and Plixer Partnered for Advanced Flow-based Monitoring May 17, 2010 Comments Off
May 17th 2010
Plixer International, Inc., a leading global provider of network traffic monitoring and analysis tools, today announced that it has partnered with NTOP of Italy to launch Scrutinizer 7.7 with nProbe™ support for advanced flow-based monitoring to analyze client, server and application latency. If the flow involves HTTP, the URL information can also be exported.
With its unique software-based nProbe™ support, Scrutinizer 7.7 is the first-of-its-kind NetFlow analyzer to enable affordable remote probe deployment on individual PCs or servers to track and pinpoint traffic and application issues. While traditional NetFlow reporting involves displaying top IP addresses, ports and data volume, Scrutinizer v7.7 when receiving IPFIX from the nProbe, can deliver details generally only available via packet analysis. For example, if the flow exported by the nProbe involves HTTP, the exact URL and corresponding client, server and application latency experienced by the end systems is displayed. More detail means more awareness and shorter network troubleshoots.
“The ability to deploy this unique open source nProbe™ monitor makes this a powerful combination that is extensible and customizable for other applications, such as monitoring for VoIP and e-mail traffic,” said Michael Patterson, Scrutinizer product manager with Plixer. “This integration takes application performance analysis with NetFlow or IPFIX to a whole new level.”
By expanding flow monitoring deeper into the actual packets, Scrutinizer 7.7 with nProbe™ can provide greater detail on database performance, latency, e-mail and URL activities. The nProbe collects the data and transfers it to Scrutinizer via NetFlow v9 or IPFIX for reporting and archiving. The system also stores historical data for baseline trend analysis.
The combined solution allows customers to drill down on conversations to determine client round-trip time and server processing latency. If the communication involves HTTP, the complete URL is provided, as well as the ability to click and actually view the page accessed by the client. E-mail details include mail sender and recipient.
The result is much more detailed network traffic data with a primary focus on ensuring optimum application availability, troubleshooting and analysis far beyond traditional NetFlow analysis.
“Without Scrutinizer 7.7 with nProbe™ support, the only other way to get this kind of data is to use packet analyzer technology,” said Luca Deri, founder of NTOP and developer of the nProbe™ technology. “But if the problem is in an off-site location, this can be costly and time consuming. With remote deployment of our nProbe technology, you can analyze traffic at any location and have it report back to Scrutinizer for more efficient, network-wide troubleshooting and analysis.”
The nProbe™ integration for Scrutinizer 7.7 is remarkably affordable at just $195 for an unlimited server site license. Existing Scrutinizer customers under maintenance will receive a free upgrade to version 7.7, with just $195 required for the nProbe™ functionality.
Plixer and NTOP have partnered with Ravica for U.S. distribution of nBox, the nProbe™-powered hardware appliance.
For more information on Scrutinizer 7.7 with nProbe™ integration, visit www.plixer.com.
Jon Mills
Marketing & Public Relations Manager


Plixer International
Würth-Phoenix