Using the HTTP tool from the Statistics menu

In this recipe we will learn how to use HTTP statistical information of the data that runs over the network.

Getting ready

Start Wireshark, click on Statistics.

How to do it...

To view the HTTP statistics follow these steps:

From the Statistics menu, select HTTP. The following window will appear:

How to do it...

In the HTTP submenu, we have the following:

  • Packet Counter (marked as 1 in the preceding screenshot): This provides us with the number of packets to each website. This will help us to identify how many requests and responses we have had.
  • Requests (marked as 2 in the preceding screenshot): This is used to see request distribution to websites.
  • Load Distribution (marked as 3 in the preceding screenshot): This is used to see load distribution between websites.

We will perform the following steps to view the Packet Counter statistics:

  1. Navigate to Statistics | HTTP | Packet Counter.
  2. The following filter window will open:
    How to do it...
  3. In this window, you configure a filter to see the statistics that are applied to these filters. If you want to see statistics over the whole captured file, leave it blank. This will show you statistics over IP, that is, all the HTTP packets.
  4. Click on the Create Stat button, and you will get the following window:
    How to do it...

    In order to see the HTTP statistics for a specific node, you can configure a filter for it using a display filter format.

We will perform the following steps to view HTTP Requests statistics:

  1. Navigate to Statistics | HTTP | Requests. The following window will appear:
    How to do it...
  2. Choose the filter you need. For all data, leave blank.
  3. Click on the Create Stat button and the following window will come up:
    How to do it...
  4. To get statistics for a specific HTTP host, you can set a filter http.host contains <host_name> or http.host==<host_name> (depends on whether you need a hostname with a specific name or a hostname that contains a specific string), and you will see statistics to this specific host.
  5. For example, by configuring the filter http.host contains ndi-com.com, you will get the statistics for the website www.ndi-com.com (shown in the following screenshot):
    How to do it...
  6. What you will get is:
    How to do it...

To see Load Distribution on the Web or a specific website:

  1. Navigate to Statistics | HTTP | Packet Counter.
  2. The following window will appear:
    How to do it...
  3. Choose the filter you need. For all data, leave it blank.
  4. Click on the Create Stat button and the following window will come up:
    How to do it...

How it works...

When we open a website, it usually sends requests to several URLs. In this example, one of the websites we opened was www.cnn.com, which took us to edition.cnn.com, where we have sent several requests: to the root URL, to the breaking_news URL, and to two other locations on the home page.

There's more...

For deeper HTTP analysis, you can use purpose-specific tools. One of the most common ones is Fiddler. You can find it at http://www.fiddler2.com/fiddler2/

Fiddler is a software tool developed for HTTP troubleshooting and therefore it provides more data with a better user interface for HTTP.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.42.149