Network Performance Measurment:

Introduction:
=============

Java Program, which uses JPCAP methods and captures Ethernet/IP packets. 
Perform analysis on captured packets. Uses JDBC and stores captured packets' details of 
analysis on MySQL Database.

This Java Program Uses JPCAP and MySQL. Here is Step-by-Step procedure to set up:


1. Installtion of MySQL:
------------------------

1.1 Download and Install MySQL Server/Client from:
http://www.mysql.com/downloads/mysql-3.23.html. 

1.2 Installing MySQL Connector/J
MySQL Connector/J is distributed as a .zip or .tar.gz archive containing the 
sources, the class files and a class-file only "binary" .jar archive named 
"mysql-connector-java-[version]-bin.jar". You will need to use the appropriate 
gui or command-line utility to un-archive the distribution (for example, WinZip 
for the .zip archive, and "tar" for the .tar.gz archive).

Setting the CLASSPATH (For Standalone Use)
Once you have un-archived the distribution archive, you can install the driver 
in one of two ways: Either copy the "com" and "org" subdirectories and all of 
their contents to anywhere you like, and put the directory holding the "com" and 
"org" subdirectories in your classpath, or put mysql-connector-java-[version]-bin.jar 
in your classpath, either by adding the FULL path to it to your CLASSPATH 
enviornment variable, or by copying the .jar file to $JAVA_HOME/jre/lib/ext. 
If you are going to use the driver with the JDBC DriverManager, you would use 
"com.mysql.jdbc.Driver" as the class that implements java.sql.Driver.


Setting the CLASSPATH Under Microsoft Windows 9X

The following is an example of setting the CLASSPATH under Microsoft Windows 
95, 98, ME:

C:\> set CLASSPATH=\path\to\mysql-connector-java-[version]-bin.jar;%CLASSPATH%

This command can be added as the last line in AUTOEXEC.BAT. If this is done the 
MySQL Connector/J driver will be made available to all Java applications that run 
on the Windows 9x system. This setting will require the computer to be rebooted 
before the changes will take effect.

2. Install Winpcap library:
--------------------------------

2.1. download and run the executable from 
http://winpcap.polito.it/install/bin/WinPcap_3_0.exe

2.2. follow the instructions on the screen. The installation applet will automatically 
detect the operating system and install the correct drivers.

2.3. the WinPcap-based applications are now ready to work 
to remove winpcap from the system, go to the control-panel, click on "add/remove 
programs" and then select "WinPcap".

3. Install WinDump:
------------------------
This is a uncompressed executable. It does not need any installation.
It works under Windows 95/98/NT/2000/XP. To run WinDump: 


1. Download WinDump.exe from http://windump.polito.it/install/bin/alpha/WindDump.exe

2. Launch the program from the command line.

4. Installation of JPCAP:
-------------------------

Jpcap ver.0.4

*Introduction

Jpcap is a Java package for LBL libpcap (Packet Capture Library) and
Raw Socket API. 

1.1 Download and install Javatm2 Platform, Standard Edition (J2SEtm) JRE or SDK. 
1.2 Download and install the latest WinPcap.
1.3 Download and extract the latest Jpcap from
http://netresearch.ics.uci.edu/kfujii/jpcap/doc/download.html
1.4 Copy "lib\Jpcap.dll" into "[JRE directory]\bin" or "[JRE directory]\lib\ext\x86" 
1.5 Copy "lib\jpcap.jar" into "[JRE directory]\lib\ext" 

If you installed J2SE SDK, you also need to copy "lib\jpcap.jar" into "[SDK directory]\jre\lib\ext". 

Note: [JRE directory] is usually "C:\Program Files\Java\j2re*".
[SDK directory] is usually "C:\j2sdk*".