Saturday, April 30, 2016

Testing Bandwidth Using Wireshark

Below gives the full steps to do this. 

1. Open a web-browser and navigate to a speedtest.net and start the test
        
        2. Start a packet capture (preferably without capture filters, just in case we miss some traffic) and start the download (or the service you are testing)
        
        In my case I started downloading the ubuntu image from their website, in the background leaving wireshark running. Once the download completes, get back to wireshark.
        
        3. Apply display filters in wireshark to display only the traffic you are interested in. Its usually quite simple. Once you identify a packet belonging to the network flow you are interested in, right click on it > conversation filter > ip / tcp. This will isolate the IP / TCP traffic of interest
        
        The first method of seeing bandwidth used is by selecting the menu items:  Statistics > Protocol Hierarchy
        

        This screen will give you a breakdown of bandwidth by protocol. Since in this test we are observing HTTP, we drill down to TCP, and we observe the Mbits/sec

Note that the Wireshark captures the speed in Average of every packet which makes it low compared to speed test website measurement 

references:

No comments:

Post a Comment