Project on packet analyzer covers details about how to develop a network packet sniffer . This is a simple software application which can monitor packet flow in a network. Normally we can track packets which are received from source but using this tool we can track each packet in our network and unpack packet and know packet data, source and destination address.  This can be used for check packet traffic and hack information.

This software is divided in to three main modules GUI module, Stats module and Analysis module.

In graphic user interface module use can easy know about what type of functions we can perform using this tool with buttons to check different features.  Using analysis and statistic module we can track packets in the network and check information on incoming and outgoing packets. Using stats module we can calculate and come to conformation.

 

Test Cases:

1.      Test case  :Jpcap Installed

  Input                  : Initialize Network Packet Sniffer.

  Process               : Run the Network Packet Sniffer Software.

      Output                : Displays an error dialog box if Jpcap is not installed else displays the main window.

 

2.      Test case: Capture Dialog Display

    Input                  : Capture Button Click.

          Process               : Click on the capture button on the main windows toolbar.

       Output                : Dispalys a dialog box that shows the network interface cards and also the capture length to capture the packets and to put the Network Interface Card in promiscuous mode.

.

3.      Test case: NIC Installed

    Input                  : Capture Button Click

          Process               : Click on the capture button on the main windows toolbar.

       Output                 : Displays a error dialog box that shows the network interface                                                                                                                                                                                             

card is not installed on the computer or if the network  driver is not installed. Captures data if NIC is found.

 

4.      Test case: New Window Display

    Input                 : Click the New Window menu item in the system menu.

          Process              : Click the New Window menu item in the system menu on the menu bar.

        Output               : Displays a new main window which is also capable of capturing the data.

5.      Test case: Captured information display

    Input                 : Click on the table rows.

          Process              : Click on the table rows on the main window.

        Output               : Displays the captured data in hexadecimal format in the text area on the main window.

6.       Test case:   Save data 

    Input                 : Click on the save button.

          Process              : Click on the save button on the toolbar on the main window.

        Output               : Displays a File chooser window on which the user can select the path for the data to be saved.

7.      Test case:   Open File 

    Input                 : Click on the open button.

          Process              : Click on the open button on the toolbar on the main window.

        Output               : Displays a File chooser window on which the user can select the path for the file to be opened.

8.       Test case:    Statistics Display 

    Input                 : Click on the continuous or cumulative menuitems.

          Process              : Click on the continuous or cumulative menu item on the statistics menu on the main window.

        Output               : Displays a window showing the graphical information on the captured data. Also displays the free memory status of the system.

9.       Test case:    Close window 

    Input                 : Click on the close window.

          Process              : Click on the close button on the tool bar of the main window.

        Output               : Displays a dialog whether to save the captured data. If clicked  yes file chooser dialog will be opened else exits the system.

 Download  Packet Analyzer Project source code in java with project report.